Fix the missing check mark for custom wallpapers in wallpaper picker.
[chromium-blink-merge.git] / components / components_tests.gyp
blobb52326c42446da533080a136ec518e03ced5d2a2
1 # Copyright 2014 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file.
6   'variables': {
7     # This turns on e.g. the filename-based detection of which
8     # platforms to include source files on (e.g. files ending in
9     # _mac.h or _mac.cc are only compiled on MacOSX).
10     'chromium_code': 1,
12     # Note: sources list duplicated in GN build. In the GN build,
13     # each component has its own unit tests target defined in its
14     # directory that are then linked into the final content_unittests.
15     'auto_login_parser_unittest_sources': [
16       'auto_login_parser/auto_login_parser_unittest.cc',
17     ],
18     'autofill_unittest_sources': [
19       'autofill/content/browser/content_autofill_driver_unittest.cc',
20       'autofill/content/browser/request_autocomplete_manager_unittest.cc',
21       'autofill/content/browser/wallet/full_wallet_unittest.cc',
22       'autofill/content/browser/wallet/instrument_unittest.cc',
23       'autofill/content/browser/wallet/real_pan_wallet_client_unittest.cc',
24       'autofill/content/browser/wallet/wallet_address_unittest.cc',
25       'autofill/content/browser/wallet/wallet_client_unittest.cc',
26       'autofill/content/browser/wallet/wallet_items_unittest.cc',
27       'autofill/content/browser/wallet/wallet_service_url_unittest.cc',
28       'autofill/content/browser/wallet/wallet_signin_helper_unittest.cc',
29       'autofill/content/renderer/renderer_save_password_progress_logger_unittest.cc',
30       'autofill/core/browser/address_field_unittest.cc',
31       'autofill/core/browser/address_i18n_unittest.cc',
32       'autofill/core/browser/address_unittest.cc',
33       'autofill/core/browser/autocomplete_history_manager_unittest.cc',
34       'autofill/core/browser/autofill_country_unittest.cc',
35       'autofill/core/browser/autofill_data_model_unittest.cc',
36       'autofill/core/browser/autofill_download_manager_unittest.cc',
37       'autofill/core/browser/autofill_external_delegate_unittest.cc',
38       'autofill/core/browser/autofill_field_unittest.cc',
39       'autofill/core/browser/autofill_ie_toolbar_import_win_unittest.cc',
40       'autofill/core/browser/autofill_manager_unittest.cc',
41       'autofill/core/browser/autofill_merge_unittest.cc',
42       'autofill/core/browser/autofill_metrics_unittest.cc',
43       'autofill/core/browser/autofill_profile_unittest.cc',
44       'autofill/core/browser/autofill_type_unittest.cc',
45       'autofill/core/browser/autofill_xml_parser_unittest.cc',
46       'autofill/core/browser/contact_info_unittest.cc',
47       'autofill/core/browser/credit_card_field_unittest.cc',
48       'autofill/core/browser/credit_card_unittest.cc',
49       'autofill/core/browser/form_field_unittest.cc',
50       'autofill/core/browser/form_structure_unittest.cc',
51       'autofill/core/browser/name_field_unittest.cc',
52       'autofill/core/browser/options_util_unittest.cc',
53       'autofill/core/browser/password_generator_unittest.cc',
54       'autofill/core/browser/personal_data_manager_unittest.cc',
55       'autofill/core/browser/phone_field_unittest.cc',
56       'autofill/core/browser/phone_number_i18n_unittest.cc',
57       'autofill/core/browser/phone_number_unittest.cc',
58       'autofill/core/browser/ui/card_unmask_prompt_controller_impl_unittest.cc',
59       'autofill/core/browser/validation_unittest.cc',
60       'autofill/core/browser/webdata/autofill_profile_syncable_service_unittest.cc',
61       'autofill/core/browser/webdata/autofill_table_unittest.cc',
62       'autofill/core/browser/webdata/autofill_wallet_metadata_syncable_service_unittest.cc',
63       'autofill/core/browser/webdata/web_data_service_unittest.cc',
64       'autofill/core/common/autofill_regexes_unittest.cc',
65       'autofill/core/common/autofill_util_unittest.cc',
66       'autofill/core/common/form_data_unittest.cc',
67       'autofill/core/common/form_field_data_unittest.cc',
68       'autofill/core/common/password_form_fill_data_unittest.cc',
69       'autofill/core/common/save_password_progress_logger_unittest.cc',
70     ],
71     'bookmarks_unittest_sources': [
72       'bookmarks/browser/bookmark_codec_unittest.cc',
73       'bookmarks/browser/bookmark_expanded_state_tracker_unittest.cc',
74       'bookmarks/browser/bookmark_index_unittest.cc',
75       'bookmarks/browser/bookmark_model_unittest.cc',
76       'bookmarks/browser/bookmark_utils_unittest.cc',
77       'bookmarks/managed/managed_bookmarks_tracker_unittest.cc',
78     ],
79     'browser_watcher_unittest_sources': [
80       'browser_watcher/crash_reporting_metrics_win_unittest.cc',
81       'browser_watcher/endsession_watcher_window_win_unittest.cc',
82       'browser_watcher/exit_code_watcher_win_unittest.cc',
83       'browser_watcher/exit_funnel_win_unittest.cc',
84       'browser_watcher/watcher_client_win_unittest.cc',
85       'browser_watcher/watcher_metrics_provider_win_unittest.cc',
86       'browser_watcher/window_hang_monitor_win_unittest.cc',
87     ],
88     'captive_portal_unittest_sources': [
89       'captive_portal/captive_portal_detector_unittest.cc',
90     ],
91     'cloud_devices_unittest_sources': [
92       'cloud_devices/common/cloud_devices_urls_unittest.cc',
93       'cloud_devices/common/printer_description_unittest.cc',
94     ],
95     'component_updater_unittest_sources': [
96       'component_updater/component_updater_service_unittest.cc',
97       'component_updater/timer_unittest.cc',
98     ],
99     'content_settings_unittest_sources': [
100       'content_settings/core/browser/content_settings_mock_provider.cc',
101       'content_settings/core/browser/content_settings_mock_provider.h',
102       'content_settings/core/browser/content_settings_provider_unittest.cc',
103       'content_settings/core/browser/content_settings_rule_unittest.cc',
104       'content_settings/core/browser/content_settings_utils_unittest.cc',
105       'content_settings/core/browser/cookie_settings_unittest.cc',
106       'content_settings/core/browser/plugins_field_trial_unittest.cc',
107       'content_settings/core/common/content_settings_pattern_parser_unittest.cc',
108       'content_settings/core/common/content_settings_pattern_unittest.cc',
109     ],
110     'crash_unittest_sources': [
111       'crash/app/crash_keys_win_unittest.cc',
112     ],
113     'crx_file_unittest_sources': [
114       'crx_file/id_util_unittest.cc',
115     ],
116     'data_reduction_proxy_unittest_sources': [
117       'data_reduction_proxy/content/browser/data_reduction_proxy_message_filter_unittest.cc',
118       'data_reduction_proxy/core/browser/data_reduction_proxy_bypass_protocol_unittest.cc',
119       'data_reduction_proxy/core/browser/data_reduction_proxy_bypass_stats_unittest.cc',
120       'data_reduction_proxy/core/browser/data_reduction_proxy_compression_stats_unittest.cc',
121       'data_reduction_proxy/core/browser/data_reduction_proxy_config_retrieval_params_unittest.cc',
122       'data_reduction_proxy/core/browser/data_reduction_proxy_config_service_client_unittest.cc',
123       'data_reduction_proxy/core/browser/data_reduction_proxy_config_unittest.cc',
124       'data_reduction_proxy/core/browser/data_reduction_proxy_configurator_unittest.cc',
125       'data_reduction_proxy/core/browser/data_reduction_proxy_experiments_stats_unittest.cc',
126       'data_reduction_proxy/core/browser/data_reduction_proxy_interceptor_unittest.cc',
127       'data_reduction_proxy/core/browser/data_reduction_proxy_io_data_unittest.cc',
128       'data_reduction_proxy/core/browser/data_reduction_proxy_metrics_unittest.cc',
129       'data_reduction_proxy/core/browser/data_reduction_proxy_network_delegate_unittest.cc',
130       'data_reduction_proxy/core/browser/data_reduction_proxy_prefs_unittest.cc',
131       'data_reduction_proxy/core/browser/data_reduction_proxy_request_options_unittest.cc',
132       'data_reduction_proxy/core/browser/data_reduction_proxy_settings_unittest.cc',
133       'data_reduction_proxy/core/browser/data_reduction_proxy_tamper_detection_unittest.cc',
134       'data_reduction_proxy/core/browser/data_usage_store_unittest.cc',
135       'data_reduction_proxy/core/common/data_reduction_proxy_client_config_parser_unittest.cc',
136       'data_reduction_proxy/core/common/data_reduction_proxy_event_store_unittest.cc',
137       'data_reduction_proxy/core/common/data_reduction_proxy_headers_unittest.cc',
138       'data_reduction_proxy/core/common/data_reduction_proxy_params_unittest.cc',
139     ],
140     'device_event_log_unittest_sources': [
141       'device_event_log/device_event_log_impl_unittest.cc',
142     ],
143     'devtools_http_handler_unittest_sources': [
144       'devtools_http_handler/devtools_http_handler_unittest.cc',
145     ],
146     'dom_distiller_unittest_sources': [
147       'dom_distiller/content/dom_distiller_viewer_source_unittest.cc',
148       'dom_distiller/content/web_contents_main_frame_observer_unittest.cc',
149       'dom_distiller/core/article_entry_unittest.cc',
150       'dom_distiller/core/distillable_page_detector_unittest.cc',
151       'dom_distiller/core/distilled_content_store_unittest.cc',
152       'dom_distiller/core/distilled_page_prefs_unittests.cc',
153       'dom_distiller/core/distiller_unittest.cc',
154       'dom_distiller/core/distiller_url_fetcher_unittest.cc',
155       'dom_distiller/core/dom_distiller_model_unittest.cc',
156       'dom_distiller/core/dom_distiller_request_view_base_unittest.cc',
157       'dom_distiller/core/dom_distiller_service_unittest.cc',
158       'dom_distiller/core/dom_distiller_store_unittest.cc',
159       'dom_distiller/core/page_features_unittest.cc',
160       'dom_distiller/core/task_tracker_unittest.cc',
161       'dom_distiller/core/url_utils_unittest.cc',
162       'dom_distiller/core/viewer_unittest.cc',
163     ],
164     'domain_reliability_unittest_sources': [
165       'domain_reliability/config_unittest.cc',
166       'domain_reliability/context_unittest.cc',
167       'domain_reliability/dispatcher_unittest.cc',
168       'domain_reliability/monitor_unittest.cc',
169       'domain_reliability/scheduler_unittest.cc',
170       'domain_reliability/test_util.cc',
171       'domain_reliability/test_util.h',
172       'domain_reliability/uploader_unittest.cc',
173       'domain_reliability/util_unittest.cc',
174     ],
175     'favicon_base_unittest_sources': [
176       'favicon_base/fallback_icon_url_parser_unittest.cc',
177       'favicon_base/favicon_url_parser_unittest.cc',
178       'favicon_base/large_icon_url_parser_unittest.cc',
179       'favicon_base/select_favicon_frames_unittest.cc',
180     ],
181     'favicon_unittest_sources': [
182       'favicon/content/content_favicon_driver_unittest.cc',
183       'favicon/core/favicon_handler_unittest.cc',
184       'favicon/core/large_icon_service_unittest.cc',
185     ],
186     'undo_unittest_sources': [
187       'undo/bookmark_undo_service_test.cc',
188       'undo/undo_manager_test.cc',
189     ],
191     # Note: GN tests converted to here, need to do the rest.
192     'audio_modem_unittest_sources': [
193       'audio_modem/audio_player_unittest.cc',
194       'audio_modem/audio_recorder_unittest.cc',
195       'audio_modem/modem_unittest.cc',
196     ],
197     'copresence_unittest_sources': [
198       'copresence/copresence_state_unittest.cc',
199       'copresence/handlers/audio/audio_directive_handler_unittest.cc',
200       'copresence/handlers/audio/audio_directive_list_unittest.cc',
201       'copresence/handlers/directive_handler_unittest.cc',
202       'copresence/handlers/gcm_handler_unittest.cc',
203       'copresence/rpc/http_post_unittest.cc',
204       'copresence/rpc/rpc_handler_unittest.cc',
205       'copresence/timed_map_unittest.cc',
206     ],
207     'cronet_unittest_sources': [
208       'cronet/histogram_manager_unittest.cc',
209     ],
210     'enhanced_bookmarks_unittest_sources': [
211       'enhanced_bookmarks/enhanced_bookmark_model_unittest.cc',
212       'enhanced_bookmarks/image_store_ios_unittest.mm',
213       'enhanced_bookmarks/image_store_unittest.cc',
214       'enhanced_bookmarks/item_position_unittest.cc',
215     ],
216     'error_page_unittest_sources': [
217       'error_page/renderer/net_error_helper_core_unittest.cc',
218     ],
219     'feedback_unittest_sources': [
220       'feedback/feedback_common_unittest.cc',
221       'feedback/feedback_data_unittest.cc',
222       'feedback/feedback_uploader_chrome_unittest.cc',
223       'feedback/feedback_uploader_unittest.cc',
224     ],
225     'gcm_driver_unittest_sources': [
226       'gcm_driver/gcm_account_mapper_unittest.cc',
227       'gcm_driver/gcm_channel_status_request_unittest.cc',
228       'gcm_driver/gcm_client_impl_unittest.cc',
229       'gcm_driver/gcm_delayed_task_controller_unittest.cc',
230       'gcm_driver/gcm_driver_desktop_unittest.cc',
231       'gcm_driver/gcm_stats_recorder_impl_unittest.cc',
232     ],
233     'google_unittest_sources': [
234       'google/core/browser/google_url_tracker_unittest.cc',
235       'google/core/browser/google_util_unittest.cc',
236     ],
237     'guest_view_unittest_sources': [
238       'guest_view/browser/guest_view_manager_unittest.cc'
239     ],
240     'history_unittest_sources': [
241       'history/content/browser/content_history_backend_db_unittest.cc',
242       'history/core/browser/android/android_history_types_unittest.cc',
243       'history/core/browser/expire_history_backend_unittest.cc',
244       'history/core/browser/history_backend_db_unittest.cc',
245       'history/core/browser/history_backend_unittest.cc',
246       'history/core/browser/history_database_unittest.cc',
247       'history/core/browser/history_querying_unittest.cc',
248       'history/core/browser/history_service_unittest.cc',
249       'history/core/browser/history_types_unittest.cc',
250       'history/core/browser/thumbnail_database_unittest.cc',
251       'history/core/browser/top_sites_cache_unittest.cc',
252       'history/core/browser/top_sites_database_unittest.cc',
253       'history/core/browser/top_sites_impl_unittest.cc',
254       'history/core/browser/typed_url_syncable_service_unittest.cc',
255       'history/core/browser/url_database_unittest.cc',
256       'history/core/browser/url_utils_unittest.cc',
257       'history/core/browser/visit_database_unittest.cc',
258       'history/core/browser/visit_filter_unittest.cc',
259       'history/core/browser/visit_tracker_unittest.cc',
260       'history/core/common/thumbnail_score_unittest.cc',
261     ],
262     'instance_id_unittest_sources': [
263       'gcm_driver/instance_id/instance_id_driver_unittest.cc',
264     ],
265     'invalidation_unittest_sources': [
266       'invalidation/impl/fake_invalidator_unittest.cc',
267       'invalidation/impl/gcm_network_channel_unittest.cc',
268       'invalidation/impl/invalidation_logger_unittest.cc',
269       'invalidation/impl/invalidation_notifier_unittest.cc',
270       'invalidation/impl/invalidator_registrar_unittest.cc',
271       'invalidation/impl/non_blocking_invalidator_unittest.cc',
272       'invalidation/impl/object_id_invalidation_map_unittest.cc',
273       'invalidation/impl/p2p_invalidator_unittest.cc',
274       'invalidation/impl/push_client_channel_unittest.cc',
275       'invalidation/impl/registration_manager_unittest.cc',
276       'invalidation/impl/single_object_invalidation_set_unittest.cc',
277       'invalidation/impl/sync_invalidation_listener_unittest.cc',
278       'invalidation/impl/sync_system_resources_unittest.cc',
279       'invalidation/impl/ticl_invalidation_service_unittest.cc',
280       'invalidation/impl/unacked_invalidation_set_unittest.cc',
281     ],
282     'json_schema_unittest_sources': [
283       'json_schema/json_schema_validator_unittest.cc',
284       'json_schema/json_schema_validator_unittest_base.cc',
285       'json_schema/json_schema_validator_unittest_base.h',
286     ],
287     'keyed_service_unittest_sources': [
288       'keyed_service/content/browser_context_dependency_manager_unittest.cc',
289       'keyed_service/core/dependency_graph_unittest.cc',
290     ],
291     'language_usage_metrics_unittest_sources': [
292       'language_usage_metrics/language_usage_metrics_unittest.cc',
293     ],
294     'leveldb_proto_unittest_sources': [
295       'leveldb_proto/proto_database_impl_unittest.cc',
296     ],
297     'login_unittest_sources': [
298       'login/screens/screen_context_unittest.cc',
299     ],
300     'metrics_unittest_sources': [
301       'metrics/call_stack_profile_metrics_provider_unittest.cc',
302       'metrics/compression_utils_unittest.cc',
303       'metrics/daily_event_unittest.cc',
304       'metrics/gpu/gpu_metrics_provider_unittest.cc',
305       'metrics/histogram_encoder_unittest.cc',
306       'metrics/machine_id_provider_win_unittest.cc',
307       'metrics/metrics_hashes_unittest.cc',
308       'metrics/metrics_log_manager_unittest.cc',
309       'metrics/metrics_log_unittest.cc',
310       'metrics/metrics_reporting_scheduler_unittest.cc',
311       'metrics/metrics_service_unittest.cc',
312       'metrics/metrics_state_manager_unittest.cc',
313       'metrics/net/net_metrics_log_uploader_unittest.cc',
314       'metrics/persisted_logs_unittest.cc',
315       'metrics/profiler/profiler_metrics_provider_unittest.cc',
316       'metrics/profiler/tracking_synchronizer_unittest.cc',
317     ],
318     'mime_util_unittest_sources': [
319       'mime_util/mime_util_unittest.cc',
320     ],
321     'nacl_unittest_sources': [
322       'nacl/browser/nacl_file_host_unittest.cc',
323       'nacl/browser/nacl_process_host_unittest.cc',
324       'nacl/browser/nacl_validation_cache_unittest.cc',
325       'nacl/browser/pnacl_host_unittest.cc',
326       'nacl/browser/pnacl_translation_cache_unittest.cc',
327       'nacl/browser/test_nacl_browser_delegate.cc',
328       'nacl/zygote/nacl_fork_delegate_linux_unittest.cc',
329     ],
330     'navigation_interception_unittest_sources': [
331       'navigation_interception/intercept_navigation_resource_throttle_unittest.cc',
332     ],
333     'network_hints_unittest_sources': [
334       'network_hints/renderer/dns_prefetch_queue_unittest.cc',
335       'network_hints/renderer/renderer_dns_prefetch_unittest.cc',
336     ],
337     'network_time_unittest_sources': [
338       'network_time/network_time_tracker_unittest.cc',
339     ],
340     'offline_page_unittest_sources': [
341       'offline_pages/offline_page_model_unittest.cc',
342     ],
343     'omnibox_unittest_sources': [
344       'omnibox/browser/answers_cache_unittest.cc',
345       'omnibox/browser/autocomplete_input_unittest.cc',
346       'omnibox/browser/autocomplete_match_unittest.cc',
347       'omnibox/browser/autocomplete_result_unittest.cc',
348       'omnibox/browser/base_search_provider_unittest.cc',
349       'omnibox/browser/in_memory_url_index_types_unittest.cc',
350       'omnibox/browser/keyword_provider_unittest.cc',
351       'omnibox/browser/omnibox_field_trial_unittest.cc',
352       'omnibox/browser/scored_history_match_unittest.cc',
353       'omnibox/browser/suggestion_answer_unittest.cc',
354     ],
355     'os_crypt_unittest_sources': [
356       'os_crypt/ie7_password_win_unittest.cc',
357       'os_crypt/keychain_password_mac_unittest.mm',
358       'os_crypt/os_crypt_unittest.cc',
359     ],
360     'ownership_unittest_sources': [
361       'ownership/owner_key_util_impl_unittest.cc',
362     ],
363     'packed_ct_ev_whitelist_unittest_sources': [
364       'packed_ct_ev_whitelist/bit_stream_reader_unittest.cc',
365       'packed_ct_ev_whitelist/packed_ct_ev_whitelist_unittest.cc',
366     ],
367     'password_manager_unittest_sources': [
368       'password_manager/content/browser/credential_manager_dispatcher_unittest.cc',
369       'password_manager/core/browser/affiliated_match_helper_unittest.cc',
370       'password_manager/core/browser/affiliation_backend_unittest.cc',
371       'password_manager/core/browser/affiliation_database_unittest.cc',
372       'password_manager/core/browser/affiliation_fetch_throttler_unittest.cc',
373       'password_manager/core/browser/affiliation_fetcher_unittest.cc',
374       'password_manager/core/browser/affiliation_service_unittest.cc',
375       'password_manager/core/browser/affiliation_utils_unittest.cc',
376       'password_manager/core/browser/browser_save_password_progress_logger_unittest.cc',
377       'password_manager/core/browser/export/csv_writer_unittest.cc',
378       'password_manager/core/browser/facet_manager_unittest.cc',
379       'password_manager/core/browser/import/csv_reader_unittest.cc',
380       'password_manager/core/browser/log_router_unittest.cc',
381       'password_manager/core/browser/login_database_unittest.cc',
382       'password_manager/core/browser/password_autofill_manager_unittest.cc',
383       'password_manager/core/browser/password_form_manager_unittest.cc',
384       'password_manager/core/browser/password_generation_manager_unittest.cc',
385       'password_manager/core/browser/password_manager_unittest.cc',
386       'password_manager/core/browser/password_store_default_unittest.cc',
387       'password_manager/core/browser/password_store_unittest.cc',
388       'password_manager/core/browser/password_syncable_service_unittest.cc',
389       'password_manager/core/browser/psl_matching_helper_unittest.cc',
390       'password_manager/core/browser/statistics_table_unittest.cc',
391       'password_manager/core/common/credential_manager_types_unittest.cc',
392     ],
393     'policy_unittest_sources': [
394       'policy/core/browser/android/policy_converter_unittest.cc',
395       'policy/core/browser/autofill_policy_handler_unittest.cc',
396       'policy/core/browser/browser_policy_connector_unittest.cc',
397       'policy/core/browser/configuration_policy_handler_unittest.cc',
398       'policy/core/browser/configuration_policy_pref_store_unittest.cc',
399       'policy/core/browser/url_blacklist_policy_handler_unittest.cc',
400       'policy/core/common/async_policy_provider_unittest.cc',
401       'policy/core/common/cloud/cloud_policy_client_unittest.cc',
402       'policy/core/common/cloud/cloud_policy_constants_unittest.cc',
403       'policy/core/common/cloud/cloud_policy_core_unittest.cc',
404       'policy/core/common/cloud/cloud_policy_manager_unittest.cc',
405       'policy/core/common/cloud/cloud_policy_refresh_scheduler_unittest.cc',
406       'policy/core/common/cloud/cloud_policy_service_unittest.cc',
407       'policy/core/common/cloud/cloud_policy_validator_unittest.cc',
408       'policy/core/common/cloud/component_cloud_policy_service_unittest.cc',
409       'policy/core/common/cloud/component_cloud_policy_store_unittest.cc',
410       'policy/core/common/cloud/component_cloud_policy_updater_unittest.cc',
411       'policy/core/common/cloud/device_management_service_unittest.cc',
412       'policy/core/common/cloud/external_policy_data_fetcher_unittest.cc',
413       'policy/core/common/cloud/external_policy_data_updater_unittest.cc',
414       'policy/core/common/cloud/policy_header_io_helper_unittest.cc',
415       'policy/core/common/cloud/policy_header_service_unittest.cc',
416       'policy/core/common/cloud/resource_cache_unittest.cc',
417       'policy/core/common/cloud/user_cloud_policy_manager_unittest.cc',
418       'policy/core/common/cloud/user_cloud_policy_store_unittest.cc',
419       'policy/core/common/cloud/user_info_fetcher_unittest.cc',
420       'policy/core/common/config_dir_policy_loader_unittest.cc',
421       'policy/core/common/generate_policy_source_unittest.cc',
422       'policy/core/common/policy_bundle_unittest.cc',
423       'policy/core/common/policy_loader_ios_unittest.mm',
424       'policy/core/common/policy_loader_mac_unittest.cc',
425       'policy/core/common/policy_loader_win_unittest.cc',
426       'policy/core/common/policy_map_unittest.cc',
427       'policy/core/common/policy_provider_android_unittest.cc',
428       'policy/core/common/policy_service_impl_unittest.cc',
429       'policy/core/common/policy_statistics_collector_unittest.cc',
430       'policy/core/common/preg_parser_win_unittest.cc',
431       'policy/core/common/registry_dict_win_unittest.cc',
432       'policy/core/common/remote_commands/remote_commands_queue_unittest.cc',
433       'policy/core/common/remote_commands/remote_commands_service_unittest.cc',
434       'policy/core/common/schema_map_unittest.cc',
435       'policy/core/common/schema_registry_tracking_policy_provider_unittest.cc',
436       'policy/core/common/schema_registry_unittest.cc',
437       'policy/core/common/schema_unittest.cc',
438     ],
439     'power_unittest_sources': [
440       'power/origin_power_map_unittest.cc',
441     ],
442     'precache_unittest_sources': [
443       'precache/content/precache_manager_unittest.cc',
444       'precache/core/precache_database_unittest.cc',
445       'precache/core/precache_fetcher_unittest.cc',
446       'precache/core/precache_url_table_unittest.cc',
447     ],
448     'proximity_auth_unittest_sources': [
449       'proximity_auth/ble/bluetooth_low_energy_characteristics_finder_unittest.cc',
450       'proximity_auth/ble/bluetooth_low_energy_connection_finder_unittest.cc',
451       'proximity_auth/ble/bluetooth_low_energy_connection_unittest.cc',
452       'proximity_auth/ble/bluetooth_low_energy_device_whitelist_unittest.cc',
453       'proximity_auth/ble/proximity_auth_ble_system_unittest.cc',
454       'proximity_auth/bluetooth_connection_finder_unittest.cc',
455       'proximity_auth/bluetooth_connection_unittest.cc',
456       'proximity_auth/bluetooth_throttler_impl_unittest.cc',
457       'proximity_auth/client_impl_unittest.cc',
458       'proximity_auth/connection_unittest.cc',
459       'proximity_auth/cryptauth/base64url_unittest.cc',
460       'proximity_auth/cryptauth/cryptauth_access_token_fetcher_impl_unittest.cc',
461       'proximity_auth/cryptauth/cryptauth_api_call_flow_unittest.cc',
462       'proximity_auth/cryptauth/cryptauth_client_impl_unittest.cc',
463       'proximity_auth/cryptauth/cryptauth_device_manager_unittest.cc',
464       'proximity_auth/cryptauth/cryptauth_enroller_impl_unittest.cc',
465       'proximity_auth/cryptauth/cryptauth_enrollment_manager_unittest.cc',
466       'proximity_auth/cryptauth/cryptauth_gcm_manager_impl_unittest.cc',
467       'proximity_auth/cryptauth/fake_secure_message_delegate_unittest.cc',
468       'proximity_auth/cryptauth/sync_scheduler_impl_unittest.cc',
469       'proximity_auth/logging/logging_unittest.cc',
470       'proximity_auth/proximity_auth_system_unittest.cc',
471       'proximity_auth/proximity_monitor_impl_unittest.cc',
472       'proximity_auth/remote_status_update_unittest.cc',
473       'proximity_auth/throttled_bluetooth_connection_finder_unittest.cc',
474       'proximity_auth/wire_message_unittest.cc',
475     ],
476     'proxy_config_unittest_sources': [
477       'proxy_config/proxy_config_dictionary_unittest.cc',
478       'proxy_config/proxy_prefs_unittest.cc',
479     ],
480     'query_parser_unittest_sources': [
481       'query_parser/query_parser_unittest.cc',
482       'query_parser/snippet_unittest.cc',
483     ],
484     'rappor_unittest_sources': [
485       'rappor/bloom_filter_unittest.cc',
486       'rappor/byte_vector_utils_unittest.cc',
487       'rappor/log_uploader_unittest.cc',
488       'rappor/rappor_metric_unittest.cc',
489       'rappor/rappor_prefs_unittest.cc',
490       'rappor/rappor_service_unittest.cc',
491       'rappor/rappor_utils_unittest.cc',
492       'rappor/sampler_unittest.cc',
493     ],
494     'safe_json_unittest_sources': [
495       'safe_json/json_sanitizer_unittest.cc',
496     ],
497     'scheduler_unittest_sources': [
498       'scheduler/child/idle_helper_unittest.cc',
499       'scheduler/child/nestable_task_runner_for_test.cc',
500       'scheduler/child/nestable_task_runner_for_test.h',
501       'scheduler/child/prioritizing_task_queue_selector_unittest.cc',
502       'scheduler/child/scheduler_helper_unittest.cc',
503       'scheduler/child/task_queue_manager_unittest.cc',
504       'scheduler/child/test_time_source.cc',
505       'scheduler/child/test_time_source.h',
506       'scheduler/child/webthread_impl_for_worker_scheduler_unittest.cc',
507       'scheduler/child/worker_scheduler_impl_unittest.cc',
508       'scheduler/renderer/deadline_task_runner_unittest.cc',
509       'scheduler/renderer/renderer_scheduler_impl_unittest.cc',
510       'scheduler/renderer/webthread_impl_for_renderer_scheduler_unittest.cc',
511       'scheduler/test/test_always_fail_time_source.cc',
512       'scheduler/test/test_always_fail_time_source.h',
513     ],
514     'search_unittest_sources': [
515       'search/search_android_unittest.cc',
516       'search/search_unittest.cc',
517     ],
518     'search_engines_unittest_sources': [
519       'search_engines/default_search_manager_unittest.cc',
520       'search_engines/default_search_policy_handler_unittest.cc',
521       'search_engines/default_search_pref_migration_unittest.cc',
522       'search_engines/keyword_table_unittest.cc',
523       'search_engines/search_host_to_urls_map_unittest.cc',
524       'search_engines/template_url_prepopulate_data_unittest.cc',
525       'search_engines/template_url_service_util_unittest.cc',
526       'search_engines/template_url_unittest.cc',
527     ],
528     'search_provider_logos_unittest_sources': [
529       'search_provider_logos/logo_cache_unittest.cc',
530       'search_provider_logos/logo_tracker_unittest.cc',
531     ],
532     'sessions_unittest_sources': [
533       'sessions/content/content_serialized_navigation_builder_unittest.cc',
534       'sessions/content/content_serialized_navigation_driver_unittest.cc',
535       'sessions/ios/ios_serialized_navigation_builder_unittest.cc',
536       'sessions/ios/ios_serialized_navigation_driver_unittest.cc',
537       'sessions/serialized_navigation_entry_unittest.cc',
538       'sessions/session_backend_unittest.cc',
539       'sessions/session_types_unittest.cc',
540     ],
541     'signin_unittest_sources': [
542       'signin/core/browser/account_tracker_service_unittest.cc',
543       'signin/core/browser/gaia_cookie_manager_service_unittest.cc',
544       'signin/core/browser/refresh_token_annotation_request_unittest.cc',
545       'signin/core/browser/signin_error_controller_unittest.cc',
546       'signin/core/browser/webdata/token_service_table_unittest.cc',
547       'signin/ios/browser/profile_oauth2_token_service_ios_delegate_unittest.mm',
548     ],
549     'storage_monitor_unittest_sources': [
550       'storage_monitor/image_capture_device_manager_unittest.mm',
551       'storage_monitor/media_storage_util_unittest.cc',
552       'storage_monitor/media_transfer_protocol_device_observer_linux_unittest.cc',
553       'storage_monitor/storage_info_unittest.cc',
554       'storage_monitor/storage_monitor_chromeos_unittest.cc',
555       'storage_monitor/storage_monitor_linux_unittest.cc',
556       'storage_monitor/storage_monitor_mac_unittest.mm',
557       'storage_monitor/storage_monitor_unittest.cc',
558       'storage_monitor/storage_monitor_win_unittest.cc',
559     ],
560     'suggestions_unittest_sources': [
561       'suggestions/blacklist_store_unittest.cc',
562       'suggestions/image_manager_unittest.cc',
563       'suggestions/suggestions_service_unittest.cc',
564       'suggestions/suggestions_store_unittest.cc',
565     ],
566     'sync_driver_unittest_sources': [
567       'sync_driver/data_type_manager_impl_unittest.cc',
568       'sync_driver/device_info_data_type_controller_unittest.cc',
569       'sync_driver/device_info_sync_service_unittest.cc',
570       'sync_driver/generic_change_processor_unittest.cc',
571       'sync_driver/model_association_manager_unittest.cc',
572       'sync_driver/non_blocking_data_type_controller_unittest.cc',
573       'sync_driver/non_ui_data_type_controller_unittest.cc',
574       'sync_driver/shared_change_processor_unittest.cc',
575       'sync_driver/sync_prefs_unittest.cc',
576       'sync_driver/system_encryptor_unittest.cc',
577       'sync_driver/ui_data_type_controller_unittest.cc',
578     ],
579     'translate_unittest_sources': [
580       'translate/core/browser/language_state_unittest.cc',
581       'translate/core/browser/translate_browser_metrics_unittest.cc',
582       'translate/core/browser/translate_language_list_unittest.cc',
583       'translate/core/browser/translate_prefs_unittest.cc',
584       'translate/core/browser/translate_script_unittest.cc',
585       'translate/core/common/translate_metrics_unittest.cc',
586       'translate/core/common/translate_util_unittest.cc',
587       'translate/core/language_detection/language_detection_util_unittest.cc',
588       'translate/ios/browser/js_translate_manager_unittest.mm',
589       'translate/ios/browser/language_detection_controller_unittest.mm',
590       'translate/ios/browser/translate_controller_unittest.mm',
591     ],
592     'ui_unittest_sources': [
593       'ui/zoom/page_zoom_unittests.cc',
594     ],
595     'update_client_unittest_sources': [
596       'update_client/component_patcher_unittest.cc',
597       'update_client/crx_downloader_unittest.cc',
598       'update_client/ping_manager_unittest.cc',
599       'update_client/request_sender_unittest.cc',
600       'update_client/update_checker_unittest.cc',
601       'update_client/update_client_unittest.cc',
602       'update_client/update_query_params_unittest.cc',
603       'update_client/update_response_unittest.cc',
604     ],
605     'url_fixer_unittest_sources': [
606       'url_fixer/url_fixer_unittest.cc',
607     ],
608     'url_matcher_unittest_sources': [
609       'url_matcher/regex_set_matcher_unittest.cc',
610       'url_matcher/string_pattern_unittest.cc',
611       'url_matcher/substring_set_matcher_unittest.cc',
612       'url_matcher/url_matcher_factory_unittest.cc',
613       'url_matcher/url_matcher_unittest.cc',
614     ],
615     'variations_unittest_sources': [
616       'variations/active_field_trials_unittest.cc',
617       'variations/caching_permuted_entropy_provider_unittest.cc',
618       'variations/entropy_provider_unittest.cc',
619       'variations/metrics_util_unittest.cc',
620       'variations/net/variations_http_header_provider_unittest.cc',
621       'variations/study_filtering_unittest.cc',
622       'variations/variations_associated_data_unittest.cc',
623       'variations/variations_seed_processor_unittest.cc',
624       'variations/variations_seed_simulator_unittest.cc',
625     ],
626     'visitedlink_unittest_sources': [
627       'visitedlink/test/visitedlink_unittest.cc',
628     ],
629     'wallpaper_unittest_sources': [
630       'wallpaper/wallpaper_resizer_unittest.cc',
631     ],
632     'web_cache_unittest_sources': [
633       'web_cache/browser/web_cache_manager_unittest.cc',
634     ],
635     'web_modal_unittest_sources': [
636       'web_modal/web_contents_modal_dialog_manager_unittest.cc',
637     ],
638     'web_resource_unittest_sources': [
639       'web_resource/eula_accepted_notifier_unittest.cc',
640       'web_resource/resource_request_allowed_notifier_unittest.cc',
641     ],
642     'webcrypto_unittest_sources': [
643       'webcrypto/test/aes_cbc_unittest.cc',
644       'webcrypto/test/aes_ctr_unittest.cc',
645       'webcrypto/test/aes_gcm_unittest.cc',
646       'webcrypto/test/aes_kw_unittest.cc',
647       'webcrypto/test/ecdh_unittest.cc',
648       'webcrypto/test/ecdsa_unittest.cc',
649       'webcrypto/test/hmac_unittest.cc',
650       'webcrypto/test/rsa_oaep_unittest.cc',
651       'webcrypto/test/rsa_pss_unittest.cc',
652       'webcrypto/test/rsa_ssa_unittest.cc',
653       'webcrypto/test/sha_unittest.cc',
654       'webcrypto/test/status_unittest.cc',
655       'webcrypto/test/test_helpers.cc',
656       'webcrypto/test/test_helpers.h',
657     ],
658     'webdata_unittest_sources': [
659       'webdata/common/web_database_migration_unittest.cc',
660     ],
661   },
662   'targets': [
663     {
664       # GN version: //components:components_tests_pak
665       'target_name': 'components_tests_pak',
666       'type': 'none',
667       'dependencies': [
668         'components_resources.gyp:components_resources',
669         'components_strings.gyp:components_strings',
670       ],
671       'actions': [
672         {
673           'action_name': 'repack_components_tests_pak',
674           'variables': {
675             'pak_inputs': [
676               '<(SHARED_INTERMEDIATE_DIR)/components/components_resources.pak',
677               '<(SHARED_INTERMEDIATE_DIR)/components/strings/components_strings_en-US.pak',
678             ],
679             'pak_output': '<(PRODUCT_DIR)/components_tests_resources.pak',
680           },
681           'includes': [ '../build/repack_action.gypi' ],
682         },
683       ],
684       'direct_dependent_settings': {
685         'mac_bundle_resources': [
686           '<(PRODUCT_DIR)/components_tests_resources.pak',
687         ],
688       },
689     },
690     {
691       # GN version: //components:components_unittests
692       'target_name': 'components_unittests',
693       'type': '<(gtest_target_type)',
694       'sources': [
695         'test/run_all_unittests.cc',
697         '<@(auto_login_parser_unittest_sources)',
698         '<@(autofill_unittest_sources)',
699         '<@(bookmarks_unittest_sources)',
700         '<@(browser_watcher_unittest_sources)',
701         '<@(captive_portal_unittest_sources)',
702         '<@(cloud_devices_unittest_sources)',
703         '<@(component_updater_unittest_sources)',
704         '<@(content_settings_unittest_sources)',
705         '<@(crash_unittest_sources)',
706         '<@(crx_file_unittest_sources)',
707         '<@(data_reduction_proxy_unittest_sources)',
708         '<@(device_event_log_unittest_sources)',
709         '<@(dom_distiller_unittest_sources)',
710         '<@(domain_reliability_unittest_sources)',
711         '<@(enhanced_bookmarks_unittest_sources)',
712         '<@(favicon_base_unittest_sources)',
713         '<@(favicon_unittest_sources)',
714         '<@(gcm_driver_unittest_sources)',
715         '<@(google_unittest_sources)',
716         '<@(history_unittest_sources)',
717         '<@(instance_id_unittest_sources)',
718         '<@(json_schema_unittest_sources)',
719         '<@(keyed_service_unittest_sources)',
720         '<@(language_usage_metrics_unittest_sources)',
721         '<@(leveldb_proto_unittest_sources)',
722         '<@(login_unittest_sources)',
723         '<@(metrics_unittest_sources)',
724         '<@(mime_util_unittest_sources)',
725         '<@(network_time_unittest_sources)',
726         '<@(offline_page_unittest_sources)',
727         '<@(omnibox_unittest_sources)',
728         '<@(os_crypt_unittest_sources)',
729         '<@(packed_ct_ev_whitelist_unittest_sources)',
730         '<@(password_manager_unittest_sources)',
731         '<@(precache_unittest_sources)',
732         '<@(proxy_config_unittest_sources)',
733         '<@(query_parser_unittest_sources)',
734         '<@(rappor_unittest_sources)',
735         '<@(search_unittest_sources)',
736         '<@(search_engines_unittest_sources)',
737         '<@(search_provider_logos_unittest_sources)',
738         '<@(sessions_unittest_sources)',
739         '<@(signin_unittest_sources)',
740         '<@(suggestions_unittest_sources)',
741         '<@(sync_driver_unittest_sources)',
742         '<@(translate_unittest_sources)',
743         '<@(undo_unittest_sources)',
744         '<@(update_client_unittest_sources)',
745         '<@(url_fixer_unittest_sources)',
746         '<@(url_matcher_unittest_sources)',
747         '<@(variations_unittest_sources)',
748         '<@(wallpaper_unittest_sources)',
749         '<@(web_resource_unittest_sources)',
750         '<@(webdata_unittest_sources)',
751       ],
752       'include_dirs': [
753         '..',
754       ],
755       'dependencies': [
756         '../base/base.gyp:base',
757         '../base/base.gyp:base_prefs_test_support',
758         '../base/base.gyp:test_support_base',
759         # TODO(blundell): Eliminate the need for this dependency in code
760         # that iOS shares. crbug.com/325243
761         '../content/content_shell_and_tests.gyp:test_support_content',
762         '../google_apis/google_apis.gyp:google_apis_test_support',
763         '../jingle/jingle.gyp:notifier_test_util',
764         '../net/net.gyp:net_test_support',
765         '../sql/sql.gyp:test_support_sql',
766         '../sync/sync.gyp:sync',
767         '../sync/sync.gyp:test_support_sync_api',
768         '../testing/gmock.gyp:gmock',
769         '../testing/gtest.gyp:gtest',
770         '../third_party/leveldatabase/leveldatabase.gyp:leveldatabase',
771         '../third_party/libaddressinput/libaddressinput.gyp:libaddressinput_util',
772         '../third_party/libjingle/libjingle.gyp:libjingle',
773         '../third_party/libphonenumber/libphonenumber.gyp:libphonenumber',
774         '../third_party/libxml/libxml.gyp:libxml',
775         '../third_party/protobuf/protobuf.gyp:protobuf_lite',
776         '../ui/base/ui_base.gyp:ui_base',
777         '../ui/gfx/gfx.gyp:gfx',
778         '../ui/gfx/gfx.gyp:gfx_test_support',
779         '../ui/resources/ui_resources.gyp:ui_resources',
780         '../ui/resources/ui_resources.gyp:ui_test_pak',
781         '../ui/strings/ui_strings.gyp:ui_strings',
782         '../url/url.gyp:url_lib',
783         'components.gyp:auto_login_parser',
784         'components.gyp:autofill_core_browser',
785         'components.gyp:autofill_core_common',
786         'components.gyp:autofill_core_test_support',
787         'components.gyp:bookmarks_browser',
788         'components.gyp:bookmarks_managed',
789         'components.gyp:bookmarks_test_support',
790         'components.gyp:captive_portal_test_support',
791         'components.gyp:cloud_devices_common',
792         'components.gyp:component_updater',
793         'components.gyp:content_settings_core_browser',
794         'components.gyp:content_settings_core_common',
795         'components.gyp:content_settings_core_test_support',
796         'components.gyp:crash_test_support',
797         'components.gyp:crx_file',
798         'components.gyp:data_reduction_proxy_core_browser',
799         'components.gyp:data_reduction_proxy_core_common',
800         'components.gyp:data_reduction_proxy_test_support',
801         'components.gyp:device_event_log_component',
802         'components.gyp:dom_distiller_core',
803         'components.gyp:dom_distiller_protos',
804         'components.gyp:dom_distiller_test_support',
805         'components.gyp:domain_reliability',
806         'components.gyp:enhanced_bookmarks',
807         'components.gyp:enhanced_bookmarks_test_support',
808         'components.gyp:favicon_base',
809         'components.gyp:favicon_core',
810         'components.gyp:gcm_driver',
811         'components.gyp:gcm_driver_test_support',
812         'components.gyp:google_core_browser',
813         'components.gyp:history_core_browser',
814         'components.gyp:history_core_common',
815         'components.gyp:history_core_test_support',
816         'components.gyp:instance_id_test_support',
817         'components.gyp:invalidation_impl',
818         'components.gyp:invalidation_test_support',
819         'components.gyp:json_schema',
820         'components.gyp:keyed_service_core',
821         'components.gyp:language_usage_metrics',
822         'components.gyp:leveldb_proto',
823         'components.gyp:leveldb_proto_test_support',
824         'components.gyp:login',
825         'components.gyp:metrics',
826         'components.gyp:metrics_gpu',
827         'components.gyp:metrics_net',
828         'components.gyp:metrics_profiler',
829         'components.gyp:metrics_test_support',
830         'components.gyp:network_time',
831         'components.gyp:offline_pages',
832         'components.gyp:omnibox_browser',
833         'components.gyp:omnibox_test_support',
834         'components.gyp:os_crypt',
835         'components.gyp:packed_ct_ev_whitelist',
836         'components.gyp:password_manager_core_browser',
837         'components.gyp:password_manager_core_browser',
838         'components.gyp:password_manager_core_browser_test_support',
839         'components.gyp:precache_core',
840         'components.gyp:pref_registry_test_support',
841         'components.gyp:proxy_config',
842         'components.gyp:query_parser',
843         'components.gyp:rappor',
844         'components.gyp:rappor_test_support',
845         'components.gyp:search',
846         'components.gyp:search_engines',
847         'components.gyp:search_engines_test_support',
848         'components.gyp:search_provider_logos',
849         'components.gyp:sessions_test_support',
850         'components.gyp:signin_core_browser',
851         'components.gyp:signin_core_browser_test_support',
852         'components.gyp:suggestions',
853         'components.gyp:sync_driver_test_support',
854         'components.gyp:translate_core_browser',
855         'components.gyp:translate_core_common',
856         'components.gyp:translate_core_language_detection',
857         'components.gyp:ui_zoom',
858         'components.gyp:undo_component',
859         'components.gyp:update_client',
860         'components.gyp:update_client_test_support',
861         'components.gyp:url_fixer',
862         'components.gyp:variations',
863         'components.gyp:variations_http_provider',
864         'components.gyp:wallpaper',
865         'components.gyp:web_resource',
866         'components.gyp:web_resource_test_support',
867         'components_resources.gyp:components_resources',
868         'components_strings.gyp:components_strings',
869         'components_tests_pak',
870         'mime_util/mime_util.gyp:mime_util',
871       ],
872       'conditions': [
873         ['toolkit_views == 1', {
874           'sources': [
875             'bookmarks/browser/bookmark_node_data_unittest.cc',
876             'constrained_window/constrained_window_views_unittest.cc',
877           ],
878           'dependencies': [
879             '<(DEPTH)/ui/views/views.gyp:views',
880             '<(DEPTH)/ui/views/views.gyp:views_test_support',
881             'components.gyp:constrained_window',
882           ]
883         }],
884         ['OS=="win"', {
885           'dependencies': [
886             'components.gyp:browser_watcher',
887             'components.gyp:browser_watcher_client',
888           ]
889         }],
890         ['OS=="win" and component!="shared_library" and win_use_allocator_shim==1', {
891           'dependencies': [
892             '<(DEPTH)/base/allocator/allocator.gyp:allocator',
893           ],
894         }],
895         [ 'cld_version==0 or cld_version==2', {
896           'dependencies': [
897             # Unit tests should always use statically-linked CLD data.
898             '<(DEPTH)/third_party/cld_2/cld_2.gyp:cld2_static', ],
899         }],
900         ['OS != "ios"', {
901           'sources': [
902             '<@(devtools_http_handler_unittest_sources)',
903             '<@(error_page_unittest_sources)',
904             '<@(guest_view_unittest_sources)',
905             '<@(navigation_interception_unittest_sources)',
906             '<@(network_hints_unittest_sources)',
907             '<@(power_unittest_sources)',
908             '<@(safe_json_unittest_sources)',
909             '<@(scheduler_unittest_sources)',
910             '<@(storage_monitor_unittest_sources)',
911             '<@(ui_unittest_sources)',
912             '<@(visitedlink_unittest_sources)',
913             '<@(web_cache_unittest_sources)',
914             '<@(webcrypto_unittest_sources)',
915             '<@(web_modal_unittest_sources)',
916           ],
917           'dependencies': [
918             '../skia/skia.gyp:skia',
919             'components.gyp:autofill_content_browser',
920             'components.gyp:autofill_content_renderer',
921             'components.gyp:autofill_content_test_support',
922             'components.gyp:data_reduction_proxy_content_browser',
923             'components.gyp:devtools_http_handler',
924             'components.gyp:dom_distiller_content',
925             'components.gyp:error_page_renderer',
926             'components.gyp:favicon_content',
927             'components.gyp:guest_view_browser',
928             'components.gyp:guest_view_common',
929             'components.gyp:guest_view_test_support',
930             'components.gyp:history_content_browser',
931             'components.gyp:keyed_service_content',
932             'components.gyp:navigation_interception',
933             'components.gyp:network_hints_renderer',
934             'components.gyp:password_manager_content_browser',
935             'components.gyp:password_manager_content_common',
936             'components.gyp:power',
937             'components.gyp:precache_content',
938             'components.gyp:safe_json',
939             'components.gyp:safe_json_test_support',
940             'components.gyp:sessions_content',
941             'components.gyp:storage_monitor',
942             'components.gyp:storage_monitor_test_support',
943             'components.gyp:url_matcher',
944             'components.gyp:visitedlink_browser',
945             'components.gyp:visitedlink_renderer',
946             'components.gyp:web_cache_browser',
947             'components.gyp:web_modal',
948             'components.gyp:web_modal_test_support',
949             'scheduler/scheduler.gyp:scheduler',
950             'webcrypto/webcrypto.gyp:webcrypto',
951             '../third_party/re2/re2.gyp:re2',
952           ],
953           'conditions': [
954             ['OS=="android"', {
955               'dependencies': [
956                 '../build/android/ndk.gyp:cpu_features',
957               ],
958             }],
959             ['use_openssl==1', {
960               'dependencies': [
961                 '../third_party/boringssl/boringssl.gyp:boringssl',
962               ],
963             }, {
964               'conditions': [
965                 ['os_posix == 1 and OS != "mac" and OS != "ios" and OS != "android"', {
966                   'dependencies': [
967                     '../build/linux/system.gyp:ssl',
968                   ],
969                 }, {
970                   'dependencies': [
971                     '../third_party/nss/nss.gyp:nspr',
972                     '../third_party/nss/nss.gyp:nss',
973                   ],
974                 }],
975               ],
976             }],
977           ],
978         }, { # 'OS == "ios"'
979           'sources': [
980             'open_from_clipboard/clipboard_recent_content_ios_unittest.mm',
981             'webp_transcode/webp_decoder_unittest.mm',
982             'webp_transcode/webp_network_client_unittest.mm',
983           ],
984           'sources!': [
985             'metrics/gpu/gpu_metrics_provider_unittest.cc',
986           ],
987           'sources/': [
988             # Exclude all tests that depends on //content (based on layered-
989             # component directory structure).
990             ['exclude', '^[^/]*/content/'],
991           ],
992           'mac_bundle_resources': [
993             '<(PRODUCT_DIR)/ui_test.pak',
994           ],
995           'dependencies': [
996             '../ios/ios_tests.gyp:test_support_ios',
997             '../ios/web/ios_web.gyp:test_support_ios_web',
998             '../third_party/ocmock/ocmock.gyp:ocmock',
999             'components.gyp:autofill_ios_browser',
1000             'components.gyp:open_from_clipboard',
1001             'components.gyp:sessions_ios',
1002             'components.gyp:signin_ios_browser',
1003             'components.gyp:signin_ios_browser_test_support',
1004             'components.gyp:translate_ios_browser',
1005             'components.gyp:webp_transcode',
1006           ],
1007           'actions': [
1008             {
1009               'action_name': 'copy_test_data',
1010               'variables': {
1011                 'test_data_files': [
1012                   'test/data',
1013                 ],
1014                 'test_data_prefix': 'components',
1015               },
1016               'includes': [ '../build/copy_test_data_ios.gypi' ],
1017             },
1018           ],
1019           'conditions': [
1020             ['configuration_policy==1', {
1021               'sources/': [
1022                 ['include', '^policy/'],
1023               ],
1024             }],
1025           ],
1026         }],
1027         ['disable_nacl==0', {
1028           'sources': [
1029             '<@(nacl_unittest_sources)',
1030           ],
1031           'dependencies': [
1032             'nacl.gyp:nacl_browser',
1033             'nacl.gyp:nacl_common',
1034           ],
1035         }],
1036         ['OS == "mac"', {
1037           'link_settings': {
1038             'libraries': [
1039               '$(SDKROOT)/System/Library/Frameworks/AddressBook.framework',
1040               '$(SDKROOT)/System/Library/Frameworks/Foundation.framework',
1041               '$(SDKROOT)/System/Library/Frameworks/ImageCaptureCore.framework',
1042             ],
1043           },
1044           'sources!': [
1045             'password_manager/core/browser/password_store_default_unittest.cc',
1046           ],
1047         }],
1048         ['OS == "android"', {
1049           'sources': [
1050             '<@(cronet_unittest_sources)',
1051             'data_reduction_proxy/content/browser/data_reduction_proxy_debug_blocking_page_unittest.cc',
1052             'data_reduction_proxy/content/browser/data_reduction_proxy_debug_resource_throttle_unittest.cc',
1053             'data_reduction_proxy/content/browser/data_reduction_proxy_debug_ui_manager_unittest.cc',
1054             'invalidation/impl/invalidation_logger_unittest.cc',
1055             'invalidation/impl/invalidation_service_android_unittest.cc',
1056           ],
1057           'sources!': [
1058             'gcm_driver/gcm_account_mapper_unittest.cc',
1059             'gcm_driver/gcm_channel_status_request_unittest.cc',
1060             'gcm_driver/gcm_client_impl_unittest.cc',
1061             'gcm_driver/gcm_delayed_task_controller_unittest.cc',
1062             'gcm_driver/gcm_driver_desktop_unittest.cc',
1063             'gcm_driver/gcm_stats_recorder_impl_unittest.cc',
1064             'gcm_driver/instance_id/instance_id_driver_unittest.cc',
1065             'sessions/session_backend_unittest.cc',
1066             'storage_monitor/media_storage_util_unittest.cc',
1067             'storage_monitor/storage_info_unittest.cc',
1068             'storage_monitor/storage_monitor_unittest.cc',
1069             'web_modal/web_contents_modal_dialog_manager_unittest.cc',
1070           ],
1071           'dependencies': [
1072             'components.gyp:cronet_static',
1073             'components.gyp:data_reduction_proxy_content',
1074             'components.gyp:safe_json_java',
1075             '../content/content.gyp:content_java',
1076             '../testing/android/native_test.gyp:native_test_native_code',
1077           ],
1078           'dependencies!': [
1079             'components.gyp:storage_monitor',
1080             'components.gyp:storage_monitor_test_support',
1081             'components.gyp:web_modal',
1082             'components.gyp:web_modal_test_support',
1083           ],
1084         }],
1085         ['OS != "android"', {
1086           'sources': [
1087             '<@(invalidation_unittest_sources)',
1088           ],
1089         }],
1090         ['OS != "ios" and OS != "android"', {
1091           'sources': [
1092             '<@(audio_modem_unittest_sources)',
1093             '<@(copresence_unittest_sources)',
1094             '<@(feedback_unittest_sources)',
1095             '<@(proximity_auth_unittest_sources)',
1096           ],
1097           'dependencies': [
1098             '../device/bluetooth/bluetooth.gyp:device_bluetooth_mocks',
1099             '../google_apis/google_apis.gyp:google_apis_test_support',
1100             '../third_party/protobuf/protobuf.gyp:protobuf_lite',
1101             'components.gyp:audio_modem',
1102             'components.gyp:audio_modem_test_support',
1103             'components.gyp:copresence',
1104             'components.gyp:copresence_test_support',
1105             'components.gyp:cryptauth',
1106             'components.gyp:cryptauth_test_support',
1107             'components.gyp:feedback_component',
1108             'components.gyp:proximity_auth',
1109           ],
1110         }],
1111         ['chromeos==1', {
1112           'sources': [
1113             'pairing/message_buffer_unittest.cc',
1114             'timers/alarm_timer_unittest.cc',
1115             'wifi_sync/wifi_config_delegate_chromeos_unittest.cc',
1116             'wifi_sync/wifi_credential_syncable_service_unittest.cc',
1117             'wifi_sync/wifi_credential_unittest.cc',
1118             'wifi_sync/wifi_security_class_chromeos_unittest.cc',
1119             'wifi_sync/wifi_security_class_unittest.cc',
1120             '<@(ownership_unittest_sources)',
1121           ],
1122           'sources!': [
1123             'storage_monitor/storage_monitor_linux_unittest.cc',
1124           ],
1125           'dependencies': [
1126             '../chromeos/chromeos.gyp:chromeos_test_support',
1127             'components.gyp:ownership',
1128             'components.gyp:pairing',
1129             'components.gyp:user_manager_test_support',
1130             'components.gyp:wifi_sync',
1131           ],
1132         }],
1133         ['OS=="linux"', {
1134           'sources': [
1135             'metrics/serialization/serialization_utils_unittest.cc',
1136           ],
1137           'dependencies': [
1138             'components.gyp:metrics_serialization',
1139             '../dbus/dbus.gyp:dbus',
1140             '../device/media_transfer_protocol/media_transfer_protocol.gyp:device_media_transfer_protocol',
1141           ],
1142         }],
1143         ['OS=="linux" and use_udev==0', {
1144           'dependencies!': [
1145             'components.gyp:storage_monitor',
1146             'components.gyp:storage_monitor_test_support',
1147           ],
1148           'sources/': [
1149             ['exclude', '^storage_monitor/'],
1150           ],
1151         }],
1152         ['OS=="win" and win_use_allocator_shim==1', {
1153           'dependencies': [
1154             '../base/allocator/allocator.gyp:allocator',
1155           ],
1156         }],
1157         ['OS=="linux" and component=="shared_library" and use_allocator!="none"', {
1158           'dependencies': [
1159             '<(DEPTH)/base/allocator/allocator.gyp:allocator',
1160           ],
1161           'link_settings': {
1162             'ldflags': ['-rdynamic'],
1163           },
1164         }],
1165         ['configuration_policy==1', {
1166           'dependencies': [
1167             'components.gyp:policy_component',
1168             'components.gyp:policy_component_test_support',
1169             'components.gyp:policy_test_support',
1170           ],
1171           'sources': [
1172             '<@(policy_unittest_sources)',
1173             'search_engines/default_search_policy_handler_unittest.cc',
1174           ],
1175           'conditions': [
1176             ['OS=="android"', {
1177               'sources/': [
1178                 ['exclude', '^policy/core/common/async_policy_provider_unittest\\.cc'],
1179               ],
1180             }],
1181             ['OS=="android" or OS=="ios"', {
1182               # Note: 'sources!' is processed before any 'sources/', so the
1183               # ['include', '^policy/'] on iOS above will include all of the
1184               # policy source files again. Using 'source/' here too will get
1185               # these files excluded as expected.
1186               'sources/': [
1187                 ['exclude', '^policy/core/common/cloud/component_cloud_policy_service_unittest\\.cc'],
1188                 ['exclude', '^policy/core/common/cloud/component_cloud_policy_store_unittest\\.cc'],
1189                 ['exclude', '^policy/core/common/cloud/component_cloud_policy_updater_unittest\\.cc'],
1190                 ['exclude', '^policy/core/common/cloud/external_policy_data_fetcher_unittest\\.cc'],
1191                 ['exclude', '^policy/core/common/cloud/external_policy_data_updater_unittest\\.cc'],
1192                 ['exclude', '^policy/core/common/cloud/resource_cache_unittest\\.cc'],
1193                 ['exclude', '^policy/core/common/config_dir_policy_loader_unittest\\.cc'],
1194               ],
1195             }],
1196             ['chromeos==1', {
1197               'sources': [
1198                 'policy/core/common/proxy_policy_provider_unittest.cc',
1199               ],
1200               'sources!': [
1201                 'policy/core/common/cloud/user_cloud_policy_manager_unittest.cc',
1202                 'policy/core/common/cloud/user_cloud_policy_store_unittest.cc',
1203               ],
1204             }],
1205             ['OS=="ios" or OS=="mac"', {
1206               'sources': [
1207                 'policy/core/common/mac_util_unittest.cc',
1208               ],
1209             }],
1210           ],
1211         }],
1212       ],
1213       # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
1214       'msvs_disabled_warnings': [4267, ],
1215     },
1216   ],
1217   'conditions': [
1218     ['OS == "android"', {
1219       'variables': {
1220         'components_browsertests_pak_input_resources': [
1221           '<(PRODUCT_DIR)/components_tests_resources.pak',
1222           '<(PRODUCT_DIR)/content_shell/assets/content_shell.pak',
1223         ],
1224         'conditions': [
1225           ['icu_use_data_file_flag==1', {
1226             'components_browsertests_pak_input_resources': [
1227               '<(PRODUCT_DIR)/icudtl.dat',
1228             ],
1229           }],
1230           ['v8_use_external_startup_data==1', {
1231             'components_browsertests_pak_input_resources': [
1232               '<(PRODUCT_DIR)/natives_blob.bin',
1233               '<(PRODUCT_DIR)/snapshot_blob.bin',
1234             ],
1235           }],
1236         ],
1237       },
1238       'targets': [
1239         {
1240           'target_name': 'components_browsertests_paks_copy',
1241           'type': 'none',
1242           'dependencies': [
1243             'components_browsertests',
1244           ],
1245           'copies': [
1246             {
1247               'destination': '<(PRODUCT_DIR)/components_browsertests_apk_shell/assets',
1248               'files': [
1249                 '<@(components_browsertests_pak_input_resources)',
1250               ],
1251             }
1252           ],
1253         },
1254         {
1255           'target_name': 'components_browsertests_manifest',
1256           'type': 'none',
1257           'variables': {
1258             'jinja_inputs': ['test/android/browsertests_apk/AndroidManifest.xml.jinja2'],
1259             'jinja_output': '<(SHARED_INTERMEDIATE_DIR)/components_browsertests_manifest/AndroidManifest.xml',
1260           },
1261           'includes': [ '../build/android/jinja_template.gypi' ],
1262         },
1263         {
1264           # TODO(GN)
1265           'target_name': 'components_browsertests_apk',
1266           'type': 'none',
1267           'dependencies': [
1268             '../content/content.gyp:content_icudata',
1269             '../content/content.gyp:content_java',
1270             '../content/content.gyp:content_v8_external_data',
1271             '../content/content_shell_and_tests.gyp:content_java_test_support',
1272             '../content/content_shell_and_tests.gyp:content_shell_browsertests_java',
1273             '../content/content_shell_and_tests.gyp:content_shell_java',
1274             'components_browsertests_paks_copy',
1275             'components_browsertests',
1276           ],
1277           'variables': {
1278             'test_suite_name': 'components_browsertests',
1279             'isolate_file': 'components_browsertests.isolate',
1280             'java_in_dir': 'test/android/browsertests_apk',
1281             'android_manifest_path': '<(SHARED_INTERMEDIATE_DIR)/components_browsertests_manifest/AndroidManifest.xml',
1282             'resource_dir': 'test/android/browsertests_apk/res',
1283             'asset_location': '<(PRODUCT_DIR)/components_browsertests_apk_shell/assets',
1284             'conditions': [
1285               ['icu_use_data_file_flag==1', {
1286                 'additional_input_paths': [
1287                   '<(PRODUCT_DIR)/icudtl.dat',
1288                 ],
1289               }],
1290               ['v8_use_external_startup_data==1', {
1291                 'additional_input_paths': [
1292                   '<(PRODUCT_DIR)/natives_blob.bin',
1293                   '<(PRODUCT_DIR)/snapshot_blob.bin',
1294                 ],
1295               }],
1296             ],
1297           },
1298           'includes': [ '../build/apk_browsertest.gypi' ],
1299         },
1300       ],
1301     }],
1302     ['OS != "ios"', {
1303       'targets': [
1304         {
1305           # GN: //components:components_perftests
1306           'target_name': 'components_perftests',
1307           'type': '<(gtest_target_type)',
1308           'dependencies': [
1309             '../base/base.gyp:base',
1310             '../base/base.gyp:test_support_perf',
1311             '../content/content_shell_and_tests.gyp:test_support_content',
1312             '../testing/gtest.gyp:gtest',
1313             '../testing/perf/perf_test.gyp:perf_test',
1314             'components.gyp:visitedlink_browser',
1315             'scheduler/scheduler.gyp:scheduler',
1316           ],
1317          'include_dirs': [
1318            '..',
1319          ],
1320          'sources': [
1321            'scheduler/child/task_queue_manager_perftest.cc',
1322            'visitedlink/test/visitedlink_perftest.cc',
1323          ],
1324          'conditions': [
1325            ['OS == "android"', {
1326              'dependencies': [
1327                '../testing/android/native_test.gyp:native_test_native_code',
1328              ],
1329            }],
1330            ['OS=="win" and component!="shared_library" and win_use_allocator_shim==1', {
1331              'dependencies': [
1332                '<(DEPTH)/base/allocator/allocator.gyp:allocator',
1333              ],
1334            }],
1335          ],
1336          # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
1337          'msvs_disabled_warnings': [ 4267, ],
1338         },
1339         {
1340           'target_name': 'components_browsertests',
1341           'type': '<(gtest_target_type)',
1342           'defines!': ['CONTENT_IMPLEMENTATION'],
1343           'dependencies': [
1344             '../content/content.gyp:content_common',
1345             '../content/content.gyp:content_gpu',
1346             '../content/content.gyp:content_plugin',
1347             '../content/content.gyp:content_renderer',
1348             '../content/content_shell_and_tests.gyp:content_browser_test_support',
1349             '../content/content_shell_and_tests.gyp:content_shell_lib',
1350             '../content/content_shell_and_tests.gyp:content_shell_pak',
1351             '../content/content_shell_and_tests.gyp:test_support_content',
1352             '../skia/skia.gyp:skia',
1353             '../testing/gmock.gyp:gmock',
1354             '../testing/gtest.gyp:gtest',
1355             'components.gyp:autofill_content_browser',
1356             'components.gyp:autofill_content_renderer',
1357             'components.gyp:content_settings_core_browser',
1358             'components.gyp:content_settings_core_common',
1359             'components.gyp:dom_distiller_content',
1360             'components.gyp:dom_distiller_core',
1361             'components.gyp:password_manager_content_renderer',
1362             'components.gyp:pref_registry_test_support',
1363             'components_resources.gyp:components_resources',
1364             'components_strings.gyp:components_strings',
1365             'components_tests_pak',
1366           ],
1367           'include_dirs': [
1368             '..',
1369           ],
1370           'defines': [
1371             'HAS_OUT_OF_PROC_TEST_RUNNER',
1372           ],
1373           'sources': [
1374             'autofill/content/browser/risk/fingerprint_browsertest.cc',
1375             'autofill/content/renderer/password_form_conversion_utils_browsertest.cc',
1376             'dom_distiller/content/distillable_page_utils_browsertest.cc',
1377             'dom_distiller/content/distiller_page_web_contents_browsertest.cc',
1378             'dom_distiller/content/test/dom_distiller_js_browsertest.cc',
1379             'password_manager/content/renderer/credential_manager_client_browsertest.cc',
1380           ],
1381           'conditions': [
1382             ['OS == "android"', {
1383               'sources' : [
1384                 'test/android/browsertests_apk/components_browser_tests_jni_onload.cc',
1385               ],
1386               'sources!': [
1387                 'autofill/content/browser/risk/fingerprint_browsertest.cc',
1388               ],
1389               'dependencies': [
1390                 '../testing/android/native_test.gyp:native_test_support',
1391               ],
1392             }],
1393             ['OS == "linux"', {
1394               'sources': [
1395                   # content_extractor_browsertest is a standalone content extraction tool built as
1396                   # a MANUAL component_browsertest.
1397                   'dom_distiller/standalone/content_extractor_browsertest.cc',
1398                 ],
1399             }],
1400             ['OS=="win"', {
1401               'resource_include_dirs': [
1402                 '<(SHARED_INTERMEDIATE_DIR)/content/app/resources',
1403               ],
1404               'sources': [
1405                 '../content/shell/app/resource.h',
1406                 '../content/shell/app/shell.rc',
1407                 # TODO:  It would be nice to have these pulled in
1408                 # automatically from direct_dependent_settings in
1409                 # their various targets (net.gyp:net_resources, etc.),
1410                 # but that causes errors in other targets when
1411                 # resulting .res files get referenced multiple times.
1412                 '<(SHARED_INTERMEDIATE_DIR)/blink/public/resources/blink_resources.rc',
1413                 '<(SHARED_INTERMEDIATE_DIR)/content/app/strings/content_strings_en-US.rc',
1414                 '<(SHARED_INTERMEDIATE_DIR)/net/net_resources.rc',
1415               ],
1416               'dependencies': [
1417                 '<(DEPTH)/content/app/resources/content_resources.gyp:content_resources',
1418                 '<(DEPTH)/content/app/strings/content_strings.gyp:content_strings',
1419                 '<(DEPTH)/net/net.gyp:net_resources',
1420                 '<(DEPTH)/third_party/WebKit/public/blink_resources.gyp:blink_resources',
1421                 '<(DEPTH)/third_party/iaccessible2/iaccessible2.gyp:iaccessible2',
1422                 '<(DEPTH)/third_party/isimpledom/isimpledom.gyp:isimpledom',
1423               ],
1424               'configurations': {
1425                 'Debug_Base': {
1426                   'msvs_settings': {
1427                     'VCLinkerTool': {
1428                       'LinkIncremental': '<(msvs_large_module_debug_link_mode)',
1429                     },
1430                   },
1431                 },
1432               },
1433               # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
1434               'msvs_disabled_warnings': [ 4267, ],
1435             }],
1436             ['OS=="win" and win_use_allocator_shim==1', {
1437               'dependencies': [
1438                 '../base/allocator/allocator.gyp:allocator',
1439               ],
1440             }],
1441             ['OS=="mac"', {
1442               'dependencies': [
1443                 '../content/content_shell_and_tests.gyp:content_shell',  # Needed for Content Shell.app's Helper.
1444               ],
1445             }],
1446             ['enable_basic_printing==1 or enable_print_preview==1', {
1447               'dependencies': [
1448                 'components.gyp:printing_test_support',
1449               ],
1450               'sources' : [
1451                 'printing/test/print_web_view_helper_browsertest.cc',
1452               ],
1453             }]
1454           ],
1455         },
1456       ],
1457       'conditions': [
1458         ['test_isolation_mode != "noop"', {
1459           'targets': [
1460             {
1461               'target_name': 'components_browsertests_run',
1462               'type': 'none',
1463               'dependencies': [ 'components_browsertests' ],
1464               'includes': [
1465                 '../build/isolate.gypi',
1466               ],
1467               'sources': [
1468                 'components_browsertests.isolate',
1469               ],
1470               'conditions': [
1471                 ['use_x11==1', {
1472                   'dependencies': [
1473                     '../tools/xdisplaycheck/xdisplaycheck.gyp:xdisplaycheck',
1474                   ],
1475                 }],
1476               ],
1477             },
1478           ],
1479         }],
1480       ],
1481     }],
1482     ['test_isolation_mode != "noop"', {
1483       'targets': [
1484         {
1485           'target_name': 'components_unittests_run',
1486           'type': 'none',
1487           'dependencies': [
1488             'components_unittests',
1489           ],
1490           'includes': [
1491             '../build/isolate.gypi',
1492           ],
1493           'sources': [
1494             'components_unittests.isolate',
1495           ],
1496           'conditions': [
1497             ['use_x11==1', {
1498               'dependencies': [
1499                 '../tools/xdisplaycheck/xdisplaycheck.gyp:xdisplaycheck',
1500               ],
1501             }],
1502           ],
1503         },
1504       ],
1505     }],
1506     ['OS == "android"', {
1507       'targets': [
1508         {
1509           'target_name': 'components_unittests_apk',
1510           'isolate_file': 'components_unittests.isolate',
1511           'type': 'none',
1512           'dependencies': [
1513             'components_unittests',
1514             'components.gyp:invalidation_java',
1515           ],
1516           'variables': {
1517             'test_suite_name': 'components_unittests',
1518           },
1519           'includes': [ '../build/apk_test.gypi' ],
1520         },
1521       ],
1522     }],
1523   ],