trunks: Fix generator bug in handle serialization

The trunks generator incorrectly serializes some handles in the
handles section rather than the parameter section of commands.
This CL special cases on those commands to ensure that their
handles are serialized in the parameter section

BUG=None
TEST=manual verification of code generated

Change-Id: Id139de517f0b28551a9e577e50387c2dded928bd
3 files changed
tree: 7157d7329c3070e028422cc5ec7e2703d06bafae
  1. CPPLINT.cfg
  2. MODULE_LICENSE_APACHE2
  3. Makefile
  4. NOTICE
  5. OWNERS
  6. PRESUBMIT.cfg
  7. README
  8. authorization_delegate.h
  9. background_command_transceiver.cc
  10. background_command_transceiver.h
  11. background_command_transceiver_test.cc
  12. blob_parser.cc
  13. blob_parser.h
  14. command_transceiver.h
  15. dbus_interface.h
  16. dbus_interface.proto
  17. error_codes.cc
  18. error_codes.h
  19. ftdi/
  20. generator/
  21. hmac_authorization_delegate.cc
  22. hmac_authorization_delegate.h
  23. hmac_authorization_delegate_test.cc
  24. hmac_session.h
  25. hmac_session_impl.cc
  26. hmac_session_impl.h
  27. hmac_session_test.cc
  28. mock_authorization_delegate.cc
  29. mock_authorization_delegate.h
  30. mock_blob_parser.cc
  31. mock_blob_parser.h
  32. mock_command_transceiver.cc
  33. mock_command_transceiver.h
  34. mock_hmac_session.cc
  35. mock_hmac_session.h
  36. mock_policy_session.cc
  37. mock_policy_session.h
  38. mock_session_manager.cc
  39. mock_session_manager.h
  40. mock_tpm.cc
  41. mock_tpm.h
  42. mock_tpm_state.cc
  43. mock_tpm_state.h
  44. mock_tpm_utility.cc
  45. mock_tpm_utility.h
  46. org.chromium.Trunks.conf
  47. password_authorization_delegate.cc
  48. password_authorization_delegate.h
  49. password_authorization_delegate_test.cc
  50. policy_session.h
  51. policy_session_impl.cc
  52. policy_session_impl.h
  53. policy_session_test.cc
  54. resource_manager.cc
  55. resource_manager.h
  56. resource_manager_test.cc
  57. scoped_key_handle.cc
  58. scoped_key_handle.h
  59. scoped_key_handle_test.cc
  60. session_manager.h
  61. session_manager_impl.cc
  62. session_manager_impl.h
  63. session_manager_test.cc
  64. tpm_constants.h
  65. tpm_generated.cc
  66. tpm_generated.h
  67. tpm_generated_test.cc
  68. tpm_handle.cc
  69. tpm_handle.h
  70. tpm_simulator_handle.cc
  71. tpm_simulator_handle.h
  72. tpm_state.h
  73. tpm_state_impl.cc
  74. tpm_state_impl.h
  75. tpm_state_test.cc
  76. tpm_utility.h
  77. tpm_utility_impl.cc
  78. tpm_utility_impl.h
  79. tpm_utility_test.cc
  80. trunks.gyp
  81. trunks_client.cc
  82. trunks_client_test.cc
  83. trunks_client_test.h
  84. trunks_export.h
  85. trunks_factory.h
  86. trunks_factory_for_test.cc
  87. trunks_factory_for_test.h
  88. trunks_factory_impl.cc
  89. trunks_factory_impl.h
  90. trunks_ftdi_spi.cc
  91. trunks_ftdi_spi.h
  92. trunks_proxy.cc
  93. trunks_proxy.h
  94. trunks_service.cc
  95. trunks_service.h
  96. trunks_testrunner.cc
  97. trunksd-seccomp-amd64.policy
  98. trunksd-seccomp-arm.policy
  99. trunksd-seccomp-x86.policy
  100. trunksd.cc
  101. trunksd.conf