@@ -143,17 +143,17 @@ static_library("libpayload_consumer") {
143
143
" common/http_fetcher.cc" ,
144
144
" common/hwid_override.cc" ,
145
145
" common/multi_range_http_fetcher.cc" ,
146
- " common/platform_constants_chromeos.cc" ,
147
146
" common/prefs.cc" ,
148
147
" common/proxy_resolver.cc" ,
149
148
" common/subprocess.cc" ,
150
149
" common/terminator.cc" ,
151
150
" common/utils.cc" ,
151
+ " cros/platform_constants_chromeos.cc" ,
152
+ " download_action.cc" ,
152
153
" payload_consumer/bzip_extent_writer.cc" ,
153
154
" payload_consumer/cached_file_descriptor.cc" ,
154
155
" payload_consumer/certificate_parser_stub.cc" ,
155
156
" payload_consumer/delta_performer.cc" ,
156
- " payload_consumer/download_action.cc" ,
157
157
" payload_consumer/extent_reader.cc" ,
158
158
" payload_consumer/extent_writer.cc" ,
159
159
" payload_consumer/file_descriptor.cc" ,
@@ -195,32 +195,32 @@ static_library("libpayload_consumer") {
195
195
# with Omaha and expose a DBus daemon.
196
196
static_library (" libupdate_engine" ) {
197
197
sources = [
198
- " boot_control_chromeos.cc" ,
199
198
" certificate_checker.cc" ,
200
- " common_service.cc" ,
201
- " connection_manager.cc" ,
202
- " connection_utils.cc" ,
203
- " daemon_chromeos.cc" ,
204
- " dbus_connection.cc" ,
205
- " dbus_service.cc" ,
206
- " hardware_chromeos.cc" ,
207
- " image_properties_chromeos.cc" ,
199
+ " common/connection_utils.cc" ,
200
+ " cros/boot_control_chromeos.cc" ,
201
+ " cros/common_service.cc" ,
202
+ " cros/connection_manager.cc" ,
203
+ " cros/daemon_chromeos.cc" ,
204
+ " cros/dbus_connection.cc" ,
205
+ " cros/dbus_service.cc" ,
206
+ " cros/hardware_chromeos.cc" ,
207
+ " cros/image_properties_chromeos.cc" ,
208
+ " cros/logging.cc" ,
209
+ " cros/metrics_reporter_omaha.cc" ,
210
+ " cros/omaha_request_action.cc" ,
211
+ " cros/omaha_request_builder_xml.cc" ,
212
+ " cros/omaha_request_params.cc" ,
213
+ " cros/omaha_response_handler_action.cc" ,
214
+ " cros/omaha_utils.cc" ,
215
+ " cros/p2p_manager.cc" ,
216
+ " cros/payload_state.cc" ,
217
+ " cros/power_manager_chromeos.cc" ,
218
+ " cros/real_system_state.cc" ,
219
+ " cros/requisition_util.cc" ,
220
+ " cros/shill_proxy.cc" ,
221
+ " cros/update_attempter.cc" ,
208
222
" libcurl_http_fetcher.cc" ,
209
- " logging.cc" ,
210
- " metrics_reporter_omaha.cc" ,
211
223
" metrics_utils.cc" ,
212
- " omaha_request_action.cc" ,
213
- " omaha_request_builder_xml.cc" ,
214
- " omaha_request_params.cc" ,
215
- " omaha_response_handler_action.cc" ,
216
- " omaha_utils.cc" ,
217
- " p2p_manager.cc" ,
218
- " payload_state.cc" ,
219
- " power_manager_chromeos.cc" ,
220
- " real_system_state.cc" ,
221
- " requisition_util.cc" ,
222
- " shill_proxy.cc" ,
223
- " update_attempter.cc" ,
224
224
" update_boot_flags_action.cc" ,
225
225
" update_manager/boxed_value.cc" ,
226
226
" update_manager/chromeos_policy.cc" ,
@@ -279,7 +279,7 @@ static_library("libupdate_engine") {
279
279
}
280
280
281
281
if (use .chrome_network_proxy ) {
282
- sources += [ " chrome_browser_proxy_resolver.cc" ]
282
+ sources += [ " cros/ chrome_browser_proxy_resolver.cc" ]
283
283
}
284
284
285
285
if (use .chrome_kiosk_app ) {
@@ -288,8 +288,8 @@ static_library("libupdate_engine") {
288
288
289
289
if (use .dlc ) {
290
290
sources += [
291
- " dlcservice_chromeos.cc" ,
292
- " excluder_chromeos.cc" ,
291
+ " cros/ dlcservice_chromeos.cc" ,
292
+ " cros/ excluder_chromeos.cc" ,
293
293
]
294
294
} else {
295
295
sources += [
@@ -324,8 +324,8 @@ static_library("libupdate_engine_client") {
324
324
executable (" update_engine_client" ) {
325
325
sources = [
326
326
" common/error_code_utils.cc" ,
327
- " omaha_utils.cc" ,
328
- " update_engine_client.cc" ,
327
+ " cros/ omaha_utils.cc" ,
328
+ " cros/ update_engine_client.cc" ,
329
329
]
330
330
configs += [ " :target_defaults" ]
331
331
deps = [ " :libupdate_engine_client" ]
@@ -394,8 +394,8 @@ if (use.test || use.fuzzer) {
394
394
" common/fake_prefs.cc" ,
395
395
" common/mock_http_fetcher.cc" ,
396
396
" common/test_utils.cc" ,
397
- " fake_shill_proxy.cc" ,
398
- " fake_system_state.cc" ,
397
+ " cros/ fake_shill_proxy.cc" ,
398
+ " cros/ fake_system_state.cc" ,
399
399
" payload_consumer/fake_file_descriptor.cc" ,
400
400
" payload_generator/fake_filesystem.cc" ,
401
401
" update_manager/umtest_utils.cc" ,
@@ -420,18 +420,16 @@ if (use.test) {
420
420
openssl_pem_out_dir = " include/update_engine"
421
421
sources = [
422
422
" unittest_key.pem" ,
423
- " unittest_key_RSA4096.pem" ,
424
423
" unittest_key2.pem" ,
424
+ " unittest_key_RSA4096.pem" ,
425
425
]
426
426
}
427
427
428
428
genopenssl_key (" update_engine-testkeys-ec" ) {
429
429
openssl_pem_in_dir = " ."
430
430
openssl_pem_out_dir = " include/update_engine"
431
431
openssl_pem_algorithm = " ec"
432
- sources = [
433
- " unittest_key_EC.pem" ,
434
- ]
432
+ sources = [ " unittest_key_EC.pem" ]
435
433
}
436
434
437
435
# Unpacks sample images used for testing.
@@ -470,7 +468,6 @@ if (use.test) {
470
468
# Main unittest file.
471
469
executable (" update_engine_unittests" ) {
472
470
sources = [
473
- " boot_control_chromeos_unittest.cc" ,
474
471
" certificate_checker_unittest.cc" ,
475
472
" common/action_pipe_unittest.cc" ,
476
473
" common/action_processor_unittest.cc" ,
@@ -484,24 +481,28 @@ if (use.test) {
484
481
" common/subprocess_unittest.cc" ,
485
482
" common/terminator_unittest.cc" ,
486
483
" common/utils_unittest.cc" ,
487
- " common_service_unittest.cc" ,
488
- " connection_manager_unittest.cc" ,
489
- " hardware_chromeos_unittest.cc" ,
490
- " image_properties_chromeos_unittest.cc" ,
484
+ " cros/boot_control_chromeos_unittest.cc" ,
485
+ " cros/common_service_unittest.cc" ,
486
+ " cros/connection_manager_unittest.cc" ,
487
+ " cros/hardware_chromeos_unittest.cc" ,
488
+ " cros/image_properties_chromeos_unittest.cc" ,
489
+ " cros/metrics_reporter_omaha_unittest.cc" ,
490
+ " cros/omaha_request_action_unittest.cc" ,
491
+ " cros/omaha_request_builder_xml_unittest.cc" ,
492
+ " cros/omaha_request_params_unittest.cc" ,
493
+ " cros/omaha_response_handler_action_unittest.cc" ,
494
+ " cros/omaha_utils_unittest.cc" ,
495
+ " cros/p2p_manager_unittest.cc" ,
496
+ " cros/payload_state_unittest.cc" ,
497
+ " cros/requisition_util_unittest.cc" ,
498
+ " cros/update_attempter_unittest.cc" ,
499
+ " download_action_unittest.cc" ,
491
500
" libcurl_http_fetcher_unittest.cc" ,
492
- " metrics_reporter_omaha_unittest.cc" ,
493
501
" metrics_utils_unittest.cc" ,
494
- " omaha_request_action_unittest.cc" ,
495
- " omaha_request_builder_xml_unittest.cc" ,
496
- " omaha_request_params_unittest.cc" ,
497
- " omaha_response_handler_action_unittest.cc" ,
498
- " omaha_utils_unittest.cc" ,
499
- " p2p_manager_unittest.cc" ,
500
502
" payload_consumer/bzip_extent_writer_unittest.cc" ,
501
503
" payload_consumer/cached_file_descriptor_unittest.cc" ,
502
504
" payload_consumer/delta_performer_integration_test.cc" ,
503
505
" payload_consumer/delta_performer_unittest.cc" ,
504
- " payload_consumer/download_action_unittest.cc" ,
505
506
" payload_consumer/extent_reader_unittest.cc" ,
506
507
" payload_consumer/extent_writer_unittest.cc" ,
507
508
" payload_consumer/file_descriptor_utils_unittest.cc" ,
@@ -526,10 +527,7 @@ if (use.test) {
526
527
" payload_generator/payload_signer_unittest.cc" ,
527
528
" payload_generator/squashfs_filesystem_unittest.cc" ,
528
529
" payload_generator/zip_unittest.cc" ,
529
- " payload_state_unittest.cc" ,
530
- " requisition_util_unittest.cc" ,
531
530
" testrunner.cc" ,
532
- " update_attempter_unittest.cc" ,
533
531
" update_boot_flags_action_unittest.cc" ,
534
532
" update_manager/boxed_value_unittest.cc" ,
535
533
" update_manager/chromeos_policy_unittest.cc" ,
@@ -551,7 +549,7 @@ if (use.test) {
551
549
" update_status_utils_unittest.cc" ,
552
550
]
553
551
if (use .dlc ) {
554
- sources += [ " excluder_chromeos_unittest.cc" ]
552
+ sources += [ " cros/ excluder_chromeos_unittest.cc" ]
555
553
}
556
554
557
555
# //common-mk:test should be on the top.
@@ -594,7 +592,7 @@ if (use.fuzzer) {
594
592
]
595
593
}
596
594
executable (" update_engine_omaha_request_action_fuzzer" ) {
597
- sources = [ " omaha_request_action_fuzzer.cc" ]
595
+ sources = [ " cros/ omaha_request_action_fuzzer.cc" ]
598
596
configs += [
599
597
" //common-mk/common_fuzzer" ,
600
598
" :target_defaults" ,
0 commit comments