update_engine: Move Omaha xml request generation into its own file
omaha_request_action.cc is becoming large and unmanagable. This CL moves
the code related to the XML request building process into its own file
so it can be managed properly. In the future we can clean it up and use
more proper XML builders like tinyxml2.
There is no semantic change in this. It just moves that part of the code
into another file.
BUG=none
TEST=unittest
Change-Id: If774d86f6b29dd17963bec94bb6e91e2f4109a12
Reviewed-on: https://chromium-review.googlesource.com/1544892
Commit-Ready: ChromeOS CL Exonerator Bot <chromiumos-cl-exonerator@appspot.gserviceaccount.com>
Tested-by: Amin Hassani <ahassani@chromium.org>
Reviewed-by: Sen Jiang <senj@chromium.org>
diff --git a/update_engine.gyp b/update_engine.gyp
index 754b314..b7ccae8 100644
--- a/update_engine.gyp
+++ b/update_engine.gyp
@@ -269,6 +269,7 @@
'metrics_reporter_omaha.cc',
'metrics_utils.cc',
'omaha_request_action.cc',
+ 'omaha_request_builder_xml.cc',
'omaha_request_params.cc',
'omaha_response_handler_action.cc',
'omaha_utils.cc',
@@ -424,8 +425,8 @@
'payload_generator/inplace_generator.cc',
'payload_generator/mapfile_filesystem.cc',
'payload_generator/payload_file.cc',
- 'payload_generator/payload_generation_config_chromeos.cc',
'payload_generator/payload_generation_config.cc',
+ 'payload_generator/payload_generation_config_chromeos.cc',
'payload_generator/payload_signer.cc',
'payload_generator/raw_filesystem.cc',
'payload_generator/squashfs_filesystem.cc',
@@ -564,6 +565,7 @@
'metrics_reporter_omaha_unittest.cc',
'metrics_utils_unittest.cc',
'omaha_request_action_unittest.cc',
+ 'omaha_request_builder_xml_unittest.cc',
'omaha_request_params_unittest.cc',
'omaha_response_handler_action_unittest.cc',
'omaha_utils_unittest.cc',