trunks: added PolicySession implemenation and tests

BUG=chromium:472846
TEST=unit
TEST=trunks_client --regression_test

Change-Id: I18218cefacd0b17234516f641ce4669113aec46c
Reviewed-on: https://chromium-review.googlesource.com/269161
Trybot-Ready: Utkarsh Sanghi <usanghi@chromium.org>
Tested-by: Utkarsh Sanghi <usanghi@chromium.org>
Reviewed-by: Alex Vakulenko <avakulenko@chromium.org>
Reviewed-by: Darren Krahn <dkrahn@chromium.org>
Commit-Queue: Utkarsh Sanghi <usanghi@chromium.org>
15 files changed
tree: e38af0c22957590aca9c5a50e24d8d4c79b512b6
  1. generator/
  2. authorization_delegate.h
  3. background_command_transceiver.cc
  4. background_command_transceiver.h
  5. background_command_transceiver_test.cc
  6. command_transceiver.h
  7. CPPLINT.cfg
  8. dbus_interface.h
  9. dbus_interface.proto
  10. error_codes.cc
  11. error_codes.h
  12. hmac_authorization_delegate.cc
  13. hmac_authorization_delegate.h
  14. hmac_authorization_delegate_unittest.cc
  15. hmac_session.h
  16. hmac_session_impl.cc
  17. hmac_session_impl.h
  18. hmac_session_test.cc
  19. Makefile
  20. mock_authorization_delegate.cc
  21. mock_authorization_delegate.h
  22. mock_command_transceiver.cc
  23. mock_command_transceiver.h
  24. mock_hmac_session.cc
  25. mock_hmac_session.h
  26. mock_policy_session.cc
  27. mock_policy_session.h
  28. mock_session_manager.cc
  29. mock_session_manager.h
  30. mock_tpm.cc
  31. mock_tpm.h
  32. mock_tpm_state.cc
  33. mock_tpm_state.h
  34. mock_tpm_utility.cc
  35. mock_tpm_utility.h
  36. org.chromium.Trunks.conf
  37. OWNERS
  38. password_authorization_delegate.cc
  39. password_authorization_delegate.h
  40. password_authorization_delegate_unittest.cc
  41. policy_session.h
  42. policy_session_impl.cc
  43. policy_session_impl.h
  44. policy_session_test.cc
  45. README
  46. scoped_key_handle.cc
  47. scoped_key_handle.h
  48. scoped_key_handle_test.cc
  49. session_manager.h
  50. session_manager_impl.cc
  51. session_manager_impl.h
  52. session_manager_test.cc
  53. tpm_constants.h
  54. tpm_generated.cc
  55. tpm_generated.h
  56. tpm_generated_test.cc
  57. tpm_handle.cc
  58. tpm_handle.h
  59. tpm_state.h
  60. tpm_state_impl.cc
  61. tpm_state_impl.h
  62. tpm_state_test.cc
  63. tpm_utility.h
  64. tpm_utility_impl.cc
  65. tpm_utility_impl.h
  66. tpm_utility_test.cc
  67. trunks.gyp
  68. trunks_client.cc
  69. trunks_export.h
  70. trunks_factory.h
  71. trunks_factory_for_test.cc
  72. trunks_factory_for_test.h
  73. trunks_factory_impl.cc
  74. trunks_factory_impl.h
  75. trunks_proxy.cc
  76. trunks_proxy.h
  77. trunks_service.cc
  78. trunks_service.h
  79. trunks_testrunner.cc
  80. trunksd-seccomp-amd64.policy
  81. trunksd-seccomp-arm.policy
  82. trunksd-seccomp-x86.policy
  83. trunksd.cc
  84. trunksd.conf