Split payload application code into a subdirectory.

This patch splits from the main libupdate_engine code the part that
is strictly used to download and apply a payload into a new static
library, moving the code to subdirectories. The new library is divided
in two subdirectories: common/ and payload_consumer/, and should not
depend on other update_engine files outside those two subdirectories.
The main difference between those two is that the common/ tools are more
generic and not tied to the payload consumer process, but otherwise they
are both compiled together.

There are still dependencies from the new libpayload_consumer library
into the main directory files and DBus generated files. Those will be
addressed in follow up CLs.

Bug: 25197634
Test: FEATURES=test emerge-link update_engine; `mm` on Brillo.

Change-Id: Id8d0204ea573627e6e26ca9ea17b9592ca95bc23
221 files changed
tree: b7569d7ff83b001d244eda59bb2efdee9a6f15ec
  1. client_library/
  2. common/
  3. dbus_bindings/
  4. include/
  5. init/
  6. payload_consumer/
  7. payload_generator/
  8. sample_images/
  9. update_manager/
  10. update_payload_key/
  11. .gitignore
  12. Android.mk
  13. chrome_browser_proxy_resolver.cc
  14. chrome_browser_proxy_resolver.h
  15. chrome_browser_proxy_resolver_unittest.cc
  16. connection_manager.cc
  17. connection_manager.h
  18. connection_manager_interface.h
  19. connection_manager_unittest.cc
  20. daemon.cc
  21. daemon.h
  22. dbus_service.cc
  23. dbus_service.h
  24. dbus_service_unittest.cc
  25. dbus_test_utils.h
  26. fake_file_writer.h
  27. fake_p2p_manager.h
  28. fake_p2p_manager_configuration.h
  29. fake_shill_proxy.cc
  30. fake_shill_proxy.h
  31. fake_system_state.cc
  32. fake_system_state.h
  33. generate_pc_file.sh
  34. image_properties.h
  35. image_properties_android.cc
  36. image_properties_chromeos.cc
  37. libcros_proxy.cc
  38. libcros_proxy.h
  39. libupdate_engine-client-test.pc.in
  40. libupdate_engine-client.pc.in
  41. local_coverage_rate
  42. main.cc
  43. metrics.cc
  44. metrics.h
  45. mock_action.h
  46. mock_action_processor.h
  47. mock_connection_manager.h
  48. mock_file_writer.h
  49. mock_omaha_request_params.h
  50. mock_p2p_manager.h
  51. mock_payload_state.h
  52. mock_update_attempter.h
  53. MODULE_LICENSE_APACHE2
  54. NOTICE
  55. omaha_request_action.cc
  56. omaha_request_action.h
  57. omaha_request_action_unittest.cc
  58. omaha_request_params.cc
  59. omaha_request_params.h
  60. omaha_request_params_unittest.cc
  61. omaha_response.h
  62. omaha_response_handler_action.cc
  63. omaha_response_handler_action.h
  64. omaha_response_handler_action_unittest.cc
  65. OWNERS
  66. p2p_manager.cc
  67. p2p_manager.h
  68. p2p_manager_unittest.cc
  69. payload_state.cc
  70. payload_state.h
  71. payload_state_interface.h
  72. payload_state_unittest.cc
  73. PRESUBMIT.cfg
  74. proxy_resolver.cc
  75. proxy_resolver.h
  76. real_system_state.cc
  77. real_system_state.h
  78. run_unittests
  79. sample_omaha_v3_response.xml
  80. shill_proxy.cc
  81. shill_proxy.h
  82. shill_proxy_interface.h
  83. system_state.h
  84. tar_bunzip2.gypi
  85. test_http_server.cc
  86. testrunner.cc
  87. unittest_key.pem
  88. unittest_key2.pem
  89. update_attempter.cc
  90. update_attempter.h
  91. update_attempter_unittest.cc
  92. update_engine-client.gyp
  93. update_engine.conf
  94. update_engine.gyp
  95. update_engine.rc
  96. update_engine_client.cc
  97. update_metadata.proto
  98. update_status_utils.cc
  99. update_status_utils.h
  100. UpdateEngine.conf
  101. WATCHLISTS