Include the major version in update_engine.conf

This patch moves all the payload definition version numbers to
payload_constants.h and exposes the supported one in the .conf file.

Bug: 23946683
Test: Added unittest to match the .conf file with the code.

Change-Id: I7d84d2aa3c85d2b4d5da8bf102aa9bf99acc0136
10 files changed
tree: 6f246abca6973648085cb24323156da70b11531c
  1. dbus_bindings/
  2. include/
  3. init/
  4. payload_generator/
  5. sample_images/
  6. update_manager/
  7. .gitignore
  8. action.h
  9. action_pipe.h
  10. action_pipe_unittest.cc
  11. action_processor.cc
  12. action_processor.h
  13. action_processor_unittest.cc
  14. action_unittest.cc
  15. Android.mk
  16. boot_control.h
  17. boot_control_android.cc
  18. boot_control_android.h
  19. boot_control_chromeos.cc
  20. boot_control_chromeos.h
  21. boot_control_chromeos_unittest.cc
  22. boot_control_interface.h
  23. bzip.cc
  24. bzip.h
  25. bzip_extent_writer.cc
  26. bzip_extent_writer.h
  27. bzip_extent_writer_unittest.cc
  28. certificate_checker.cc
  29. certificate_checker.h
  30. certificate_checker_unittest.cc
  31. chrome_browser_proxy_resolver.cc
  32. chrome_browser_proxy_resolver.h
  33. chrome_browser_proxy_resolver_unittest.cc
  34. clock.cc
  35. clock.h
  36. clock_interface.h
  37. connection_manager.cc
  38. connection_manager.h
  39. connection_manager_interface.h
  40. connection_manager_unittest.cc
  41. constants.cc
  42. constants.h
  43. daemon.cc
  44. daemon.h
  45. dbus_service.cc
  46. dbus_service.h
  47. dbus_service_unittest.cc
  48. dbus_test_utils.h
  49. delta_performer.cc
  50. delta_performer.h
  51. delta_performer_integration_test.cc
  52. delta_performer_unittest.cc
  53. download_action.cc
  54. download_action.h
  55. download_action_unittest.cc
  56. error_code.h
  57. extent_writer.cc
  58. extent_writer.h
  59. extent_writer_unittest.cc
  60. fake_boot_control.h
  61. fake_clock.h
  62. fake_file_writer.h
  63. fake_hardware.h
  64. fake_p2p_manager.h
  65. fake_p2p_manager_configuration.h
  66. fake_prefs.cc
  67. fake_prefs.h
  68. fake_shill_proxy.cc
  69. fake_shill_proxy.h
  70. fake_system_state.cc
  71. fake_system_state.h
  72. file_descriptor.cc
  73. file_descriptor.h
  74. file_writer.cc
  75. file_writer.h
  76. file_writer_unittest.cc
  77. filesystem_verifier_action.cc
  78. filesystem_verifier_action.h
  79. filesystem_verifier_action_unittest.cc
  80. generate_pc_file.sh
  81. hardware.h
  82. hardware_android.cc
  83. hardware_android.h
  84. hardware_chromeos.cc
  85. hardware_chromeos.h
  86. hardware_interface.h
  87. http_common.cc
  88. http_common.h
  89. http_fetcher.cc
  90. http_fetcher.h
  91. http_fetcher_unittest.cc
  92. hwid_override.cc
  93. hwid_override.h
  94. hwid_override_unittest.cc
  95. install_plan.cc
  96. install_plan.h
  97. libcros_proxy.cc
  98. libcros_proxy.h
  99. libcurl_http_fetcher.cc
  100. libcurl_http_fetcher.h
  101. libupdate_engine-client-test.pc.in
  102. libupdate_engine-client.pc.in
  103. local_coverage_rate
  104. main.cc
  105. metrics.cc
  106. metrics.h
  107. mock_action.h
  108. mock_action_processor.h
  109. mock_certificate_checker.h
  110. mock_connection_manager.h
  111. mock_file_writer.h
  112. mock_hardware.h
  113. mock_http_fetcher.cc
  114. mock_http_fetcher.h
  115. mock_omaha_request_params.h
  116. mock_p2p_manager.h
  117. mock_payload_state.h
  118. mock_prefs.h
  119. mock_update_attempter.h
  120. MODULE_LICENSE_APACHE2
  121. mtd_file_descriptor.cc
  122. mtd_file_descriptor.h
  123. multi_range_http_fetcher.cc
  124. multi_range_http_fetcher.h
  125. NOTICE
  126. omaha_hash_calculator.cc
  127. omaha_hash_calculator.h
  128. omaha_hash_calculator_unittest.cc
  129. omaha_request_action.cc
  130. omaha_request_action.h
  131. omaha_request_action_unittest.cc
  132. omaha_request_params.cc
  133. omaha_request_params.h
  134. omaha_request_params_unittest.cc
  135. omaha_response.h
  136. omaha_response_handler_action.cc
  137. omaha_response_handler_action.h
  138. omaha_response_handler_action_unittest.cc
  139. OWNERS
  140. p2p_manager.cc
  141. p2p_manager.h
  142. p2p_manager_unittest.cc
  143. payload_constants.cc
  144. payload_constants.h
  145. payload_state.cc
  146. payload_state.h
  147. payload_state_interface.h
  148. payload_state_unittest.cc
  149. payload_verifier.cc
  150. payload_verifier.h
  151. platform_constants.h
  152. platform_constants_android.cc
  153. platform_constants_chromeos.cc
  154. postinstall_runner_action.cc
  155. postinstall_runner_action.h
  156. postinstall_runner_action_unittest.cc
  157. prefs.cc
  158. prefs.h
  159. prefs_interface.h
  160. prefs_unittest.cc
  161. PRESUBMIT.cfg
  162. proxy_resolver.cc
  163. proxy_resolver.h
  164. real_system_state.cc
  165. real_system_state.h
  166. run_unittests
  167. sample_omaha_v3_response.xml
  168. shill_proxy.cc
  169. shill_proxy.h
  170. shill_proxy_interface.h
  171. subprocess.cc
  172. subprocess.h
  173. subprocess_unittest.cc
  174. system_state.h
  175. tar_bunzip2.gypi
  176. terminator.cc
  177. terminator.h
  178. terminator_unittest.cc
  179. test_http_server.cc
  180. test_utils.cc
  181. test_utils.h
  182. test_utils_unittest.cc
  183. testrunner.cc
  184. unittest_key.pem
  185. unittest_key2.pem
  186. update_attempter.cc
  187. update_attempter.h
  188. update_attempter_unittest.cc
  189. update_engine-client.gyp
  190. update_engine.conf
  191. update_engine.gyp
  192. update_engine.rc
  193. update_engine_client.cc
  194. update_metadata.proto
  195. UpdateEngine.conf
  196. utils.cc
  197. utils.h
  198. utils_unittest.cc
  199. WATCHLISTS
  200. zip_unittest.cc