LayoutTestPermissionManager: pass top level origin, not URL.
[chromium-blink-merge.git] / chrome / chrome_tests.gypi
blobfdc032aea37f20f1ed10d5aeea29504a88d96695
1 # Copyright 2013 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.
5   'variables': {
6     'chrome_browser_extensions_test_support_sources': [
7       # A list of sources which is shared between different browser tests.
8       'browser/apps/app_browsertest_util.cc',
9       'browser/apps/app_browsertest_util.h',
10       'browser/extensions/browsertest_util.cc',
11       'browser/extensions/browsertest_util.h',
12       'browser/extensions/extension_apitest.cc',
13       'browser/extensions/extension_apitest.h',
14       'browser/extensions/extension_browsertest.cc',
15       'browser/extensions/extension_browsertest.h',
16       'browser/extensions/extension_function_test_utils.cc',
17       'browser/extensions/extension_function_test_utils.h',
18       'browser/extensions/extension_test_notification_observer.cc',
19       'browser/extensions/extension_test_notification_observer.h',
20       'browser/extensions/updater/extension_cache_fake.cc',
21       'browser/extensions/updater/extension_cache_fake.h',
22     ],
23     'chrome_browser_tests_sources': [
24       # The list of sources which is only used by chrome browser tests.
25       '../apps/app_restore_service_browsertest.cc',
26       '../apps/load_and_launch_browsertest.cc',
27       '../components/autofill/content/renderer/test_password_autofill_agent.cc',
28       '../components/autofill/content/renderer/test_password_autofill_agent.h',
29       '../components/autofill/content/renderer/test_password_generation_agent.cc',
30       '../components/autofill/content/renderer/test_password_generation_agent.h',
31       # TODO(rockot): Remove this once extensions_browsertests exists.
32       '../extensions/browser/api/app_window/app_window_apitest.cc',
33       '../extensions/browser/api/bluetooth/bluetooth_apitest.cc',
34       '../extensions/browser/api/bluetooth/bluetooth_private_apitest.cc',
35       '../extensions/browser/api/bluetooth_low_energy/bluetooth_low_energy_apitest.cc',
36       '../extensions/browser/api/cast_channel/cast_channel_apitest.cc',
37       '../extensions/browser/api/runtime/runtime_apitest.cc',
38       '../extensions/browser/api/serial/serial_apitest.cc',
39       '../extensions/browser/api/usb/usb_manual_apitest.cc',
40       '../extensions/browser/app_window/app_window_browsertest.cc',
41       '../extensions/browser/guest_view/extension_options/extension_options_apitest.cc',
42       '../extensions/browser/guest_view/mime_handler_view/mime_handler_view_browsertest.cc',
43       '../extensions/renderer/console_apitest.cc',
44       '../extensions/renderer/script_context_browsertest.cc',
45       'app/chrome_command_ids.h',
46       'app/chrome_dll.rc',
47       'app/chrome_dll_resource.h',
48       'app/chrome_version.rc.version',
49       'browser/accessibility/browser_accessibility_state_browsertest.cc',
50       'browser/app_controller_mac_browsertest.mm',
51       'browser/apps/app_browsertest.cc',
52       'browser/apps/app_shim/app_shim_host_manager_browsertest_mac.mm',
53       'browser/apps/app_shim/test/app_shim_host_manager_test_api_mac.cc',
54       'browser/apps/app_shim/test/app_shim_host_manager_test_api_mac.h',
55       'browser/apps/app_url_redirector_browsertest.cc',
56       'browser/apps/app_window_browsertest.cc',
57       'browser/apps/ephemeral_app_browsertest.cc',
58       'browser/apps/ephemeral_app_browsertest.h',
59       'browser/apps/ephemeral_app_launcher_browsertest.cc',
60       'browser/apps/ephemeral_app_service_browsertest.cc',
61       'browser/apps/event_page_browsertest.cc',
62       'browser/apps/guest_view/app_view_browsertest.cc',
63       'browser/apps/guest_view/extension_view/extension_view_browsertest.cc',
64       'browser/apps/guest_view/web_view_browsertest.cc',
65       'browser/apps/speech_recognition_browsertest.cc',
66       'browser/apps/window_controls_browsertest.cc',
67       'browser/autocomplete/autocomplete_browsertest.cc',
68       'browser/autocomplete/in_memory_url_index_types_unittest.cc',
69       'browser/autofill/autofill_browsertest.cc',
70       'browser/autofill/autofill_server_browsertest.cc',
71       'browser/autofill/content_autofill_driver_browsertest.cc',
72       'browser/autofill/form_structure_browsertest.cc',
73       'browser/banners/app_banner_data_fetcher_browsertest.cc',
74       'browser/bitmap_fetcher/bitmap_fetcher_browsertest.cc',
75       'browser/browser_encoding_browsertest.cc',
76       'browser/browsing_data/browsing_data_database_helper_browsertest.cc',
77       'browser/browsing_data/browsing_data_helper_browsertest.h',
78       'browser/browsing_data/browsing_data_indexed_db_helper_browsertest.cc',
79       'browser/browsing_data/browsing_data_local_storage_helper_browsertest.cc',
80       'browser/browsing_data/browsing_data_remover_browsertest.cc',
81       'browser/browsing_data/browsing_data_remover_test_util.cc',
82       'browser/browsing_data/browsing_data_remover_test_util.h',
83       'browser/chrome_content_browser_client_browsertest.cc',
84       'browser/chrome_main_browsertest.cc',
85       'browser/chrome_plugin_browsertest.cc',
86       'browser/chrome_security_exploit_browsertest.cc',
87       'browser/chrome_service_worker_browsertest.cc',
88       'browser/chrome_site_per_process_browsertest.cc',
89       'browser/chrome_switches_browsertest.cc',
90       'browser/collected_cookies_browsertest.cc',
91       'browser/content_settings/content_settings_browsertest.cc',
92       'browser/crash_recovery_browsertest.cc',
93       'browser/custom_handlers/protocol_handler_registry_browsertest.cc',
94       'browser/devtools/device/adb/adb_client_socket_browsertest.cc',
95       'browser/devtools/device/adb/mock_adb_server.cc',
96       'browser/devtools/device/adb/mock_adb_server.h',
97       'browser/devtools/device/port_forwarding_browsertest.cc',
98       'browser/devtools/device/usb/android_usb_browsertest.cc',
99       'browser/devtools/device/webrtc/devtools_bridge_client_browsertest.cc',
100       'browser/devtools/device/webrtc/devtools_bridge_client_browsertest.h',
101       'browser/devtools/device/webrtc/webrtc_device_provider_browsertest.cc',
102       'browser/devtools/devtools_sanity_browsertest.cc',
103       'browser/devtools/devtools_window_testing.cc',
104       'browser/devtools/devtools_window_testing.h',
105       'browser/do_not_track_browsertest.cc',
106       'browser/dom_distiller/dom_distiller_viewer_source_browsertest.cc',
107       'browser/dom_distiller/tab_utils_browsertest.cc',
108       'browser/download/download_browsertest.cc',
109       'browser/download/download_browsertest.h',
110       'browser/download/download_danger_prompt_browsertest.cc',
111       'browser/download/download_started_animation_browsertest.cc',
112       'browser/download/save_page_browsertest.cc',
113       'browser/errorpage_browsertest.cc',
114       'browser/extensions/active_script_controller_browsertest.cc',
115       'browser/extensions/active_tab_apitest.cc',
116       'browser/extensions/activity_log/activity_log_browsertest.cc',
117       'browser/extensions/activity_log/ad_injection_browsertest.cc',
118       'browser/extensions/activity_log/uma_policy_browsertest.cc',
119       'browser/extensions/alert_apitest.cc',
120       'browser/extensions/all_urls_apitest.cc',
121       'browser/extensions/api/activity_log_private/activity_log_private_apitest.cc',
122       'browser/extensions/api/automation/automation_apitest.cc',
123       'browser/extensions/api/autotest_private/autotest_private_apitest.cc',
124       'browser/extensions/api/bookmark_manager_private/bookmark_manager_private_apitest.cc',
125       'browser/extensions/api/bookmarks/bookmark_apitest.cc',
126       'browser/extensions/api/braille_display_private/braille_display_private_apitest.cc',
127       'browser/extensions/api/braille_display_private/mock_braille_controller.cc',
128       'browser/extensions/api/braille_display_private/mock_braille_controller.h',
129       'browser/extensions/api/browser/browser_apitest.cc',
130       'browser/extensions/api/browsing_data/browsing_data_test.cc',
131       'browser/extensions/api/cast_streaming/cast_streaming_apitest.cc',
132       'browser/extensions/api/cloud_print_private/cloud_print_private_apitest.cc',
133       'browser/extensions/api/command_line_private/command_line_private_apitest.cc',
134       'browser/extensions/api/commands/command_service_browsertest.cc',
135       'browser/extensions/api/content_settings/content_settings_apitest.cc',
136       'browser/extensions/api/context_menus/context_menu_apitest.cc',
137       'browser/extensions/api/cookies/cookies_apitest.cc',
138       'browser/extensions/api/debugger/debugger_apitest.cc',
139       'browser/extensions/api/debugger/debugger_extension_apitest.cc',
140       'browser/extensions/api/declarative/declarative_apitest.cc',
141       'browser/extensions/api/declarative_content/declarative_content_apitest.cc',
142       'browser/extensions/api/declarative_content/request_content_script_apitest.cc',
143       'browser/extensions/api/declarative_content/set_icon_apitest.cc',
144       'browser/extensions/api/desktop_capture/desktop_capture_apitest.cc',
145       'browser/extensions/api/developer_private/developer_private_apitest.cc',
146       'browser/extensions/api/dial/dial_apitest.cc',
147       'browser/extensions/api/downloads/downloads_api_browsertest.cc',
148       'browser/extensions/api/enterprise_platform_keys/enterprise_platform_keys_apitest_nss.cc',
149       'browser/extensions/api/extension_action/browser_action_apitest.cc',
150       'browser/extensions/api/extension_action/browser_action_browsertest.cc',
151       'browser/extensions/api/extension_action/page_action_apitest.cc',
152       'browser/extensions/api/feedback_private/feedback_browsertest.cc',
153       'browser/extensions/api/feedback_private/feedback_private_apitest.cc',
154       'browser/extensions/api/file_system/file_system_apitest.cc',
155       'browser/extensions/api/file_system/file_system_apitest_chromeos.cc',
156       'browser/extensions/api/font_settings/font_settings_apitest.cc',
157       'browser/extensions/api/gcd_private/gcd_private_apitest.cc',
158       'browser/extensions/api/gcm/gcm_apitest.cc',
159       'browser/extensions/api/history/history_apitest.cc',
160       'browser/extensions/api/hotword_private/hotword_private_apitest.cc',
161       'browser/extensions/api/i18n/i18n_apitest.cc',
162       'browser/extensions/api/identity/identity_apitest.cc',
163       'browser/extensions/api/idltest/idltest_apitest.cc',
164       'browser/extensions/api/image_writer_private/image_writer_private_apitest.cc',
165       'browser/extensions/api/image_writer_private/test_utils.cc',
166       'browser/extensions/api/inline_install_private/inline_install_private_apitest.cc',
167       'browser/extensions/api/input_ime/input_ime_apitest_chromeos.cc',
168       'browser/extensions/api/log_private/log_private_apitest_chromeos.cc',
169       'browser/extensions/api/management/management_api_browsertest.cc',
170       'browser/extensions/api/management/management_apitest.cc',
171       'browser/extensions/api/management/management_browsertest.cc',
172       'browser/extensions/api/mdns/mdns_apitest.cc',
173       'browser/extensions/api/media_galleries/media_galleries_apitest.cc',
174       'browser/extensions/api/media_galleries/media_galleries_watch_apitest.cc',
175       'browser/extensions/api/messaging/native_messaging_apitest.cc',
176       'browser/extensions/api/metrics_private/metrics_apitest.cc',
177       'browser/extensions/api/module/module_apitest.cc',
178       'browser/extensions/api/music_manager_private/music_manager_private_browsertest.cc',
179       'browser/extensions/api/networking_config_chromeos_apitest_chromeos.cc',
180       'browser/extensions/api/notification_provider/notification_provider_apitest.cc',
181       'browser/extensions/api/omnibox/omnibox_api_browsertest.cc',
182       'browser/extensions/api/page_capture/page_capture_apitest.cc',
183       'browser/extensions/api/permissions/permissions_apitest.cc',
184       'browser/extensions/api/platform_keys/platform_keys_apitest_nss.cc',
185       'browser/extensions/api/preference/preference_apitest.cc',
186       'browser/extensions/api/preferences_private/preferences_private_apitest.cc',
187       'browser/extensions/api/processes/processes_apitest.cc',
188       'browser/extensions/api/proxy/proxy_apitest.cc',
189       'browser/extensions/api/reading_list_private/reading_list_private_apitest.cc',
190       'browser/extensions/api/screenlock_private/screenlock_private_apitest.cc',
191       'browser/extensions/api/sessions/sessions_apitest.cc',
192       'browser/extensions/api/settings_overrides/settings_overrides_browsertest.cc',
193       'browser/extensions/api/settings_private/settings_private_apitest.cc',
194       'browser/extensions/api/socket/socket_apitest.cc',
195       'browser/extensions/api/storage/settings_apitest.cc',
196       'browser/extensions/api/streams_private/streams_private_apitest.cc',
197       'browser/extensions/api/sync_file_system/sync_file_system_apitest.cc',
198       'browser/extensions/api/sync_file_system/sync_file_system_browsertest.cc',
199       'browser/extensions/api/system_indicator/system_indicator_apitest.cc',
200       'browser/extensions/api/system_private/system_private_apitest.cc',
201       'browser/extensions/api/tab_capture/tab_capture_apitest.cc',
202       'browser/extensions/api/tabs/tabs_test.cc',
203       'browser/extensions/api/terminal/terminal_private_apitest.cc',
204       'browser/extensions/api/test/apitest_apitest.cc',
205       'browser/extensions/api/top_sites/top_sites_apitest.cc',
206       'browser/extensions/api/web_navigation/web_navigation_apitest.cc',
207       'browser/extensions/api/web_request/web_request_apitest.cc',
208       'browser/extensions/api/webrtc_audio_private/webrtc_audio_private_browsertest.cc',
209       'browser/extensions/api/webrtc_logging_private/webrtc_logging_private_apitest.cc',
210       'browser/extensions/api/webstore_private/webstore_private_apitest.cc',
211       'browser/extensions/app_background_page_apitest.cc',
212       'browser/extensions/app_process_apitest.cc',
213       'browser/extensions/background_app_browsertest.cc',
214       'browser/extensions/background_page_apitest.cc',
215       'browser/extensions/background_scripts_apitest.cc',
216       'browser/extensions/background_xhr_browsertest.cc',
217       'browser/extensions/browsertest_util_browsertest.cc',
218       'browser/extensions/chrome_app_api_browsertest.cc',
219       'browser/extensions/chrome_ui_overrides_browsertest.cc',
220       'browser/extensions/content_capabilities_browsertest.cc',
221       'browser/extensions/content_script_apitest.cc',
222       'browser/extensions/content_security_policy_apitest.cc',
223       'browser/extensions/content_verifier_browsertest.cc',
224       'browser/extensions/convert_web_app_browsertest.cc',
225       'browser/extensions/crazy_extension_browsertest.cc',
226       'browser/extensions/cross_origin_xhr_apitest.cc',
227       'browser/extensions/crx_installer_browsertest.cc',
228       'browser/extensions/docs/examples/apps/calculator_browsertest.cc',
229       'browser/extensions/error_console/error_console_browsertest.cc',
230       'browser/extensions/events_apitest.cc',
231       'browser/extensions/execute_script_apitest.cc',
232       'browser/extensions/extension_bindings_apitest.cc',
233       'browser/extensions/extension_context_menu_browsertest.cc',
234       'browser/extensions/extension_disabled_ui_browsertest.cc',
235       'browser/extensions/extension_dom_clipboard_apitest.cc',
236       'browser/extensions/extension_fileapi_apitest.cc',
237       'browser/extensions/extension_functional_browsertest.cc',
238       'browser/extensions/extension_geolocation_apitest.cc',
239       'browser/extensions/extension_get_views_apitest.cc',
240       'browser/extensions/extension_icon_source_apitest.cc',
241       'browser/extensions/extension_incognito_apitest.cc',
242       'browser/extensions/extension_install_prompt_browsertest.cc',
243       'browser/extensions/extension_install_ui_browsertest.cc',
244       'browser/extensions/extension_javascript_url_apitest.cc',
245       'browser/extensions/extension_loading_browsertest.cc',
246       'browser/extensions/extension_management_test_util.cc',
247       'browser/extensions/extension_management_test_util.h',
248       'browser/extensions/extension_messages_apitest.cc',
249       'browser/extensions/extension_override_apitest.cc',
250       'browser/extensions/extension_resource_request_policy_apitest.cc',
251       'browser/extensions/extension_startup_browsertest.cc',
252       'browser/extensions/extension_storage_apitest.cc',
253       'browser/extensions/extension_storage_monitor_browsertest.cc',
254       'browser/extensions/extension_tabs_apitest.cc',
255       'browser/extensions/extension_url_rewrite_browsertest.cc',
256       'browser/extensions/extension_view_host_factory_browsertest.cc',
257       'browser/extensions/extension_websocket_apitest.cc',
258       'browser/extensions/extension_webui_apitest.cc',
259       'browser/extensions/gpu_browsertest.cc',
260       'browser/extensions/hotword_browsertest.cc',
261       'browser/extensions/isolated_app_browsertest.cc',
262       'browser/extensions/lazy_background_page_apitest.cc',
263       'browser/extensions/lazy_background_page_test_util.h',
264       'browser/extensions/mutation_observers_apitest.cc',
265       'browser/extensions/options_page_apitest.cc',
266       'browser/extensions/page_action_browsertest.cc',
267       'browser/extensions/plugin_apitest.cc',
268       'browser/extensions/process_management_browsertest.cc',
269       'browser/extensions/process_manager_browsertest.cc',
270       'browser/extensions/requirements_checker_browsertest.cc',
271       'browser/extensions/sandboxed_pages_apitest.cc',
272       'browser/extensions/shared_module_apitest.cc',
273       'browser/extensions/signin/gaia_auth_extension_loader_browsertest.cc',
274       'browser/extensions/startup_helper_browsertest.cc',
275       'browser/extensions/stubs_apitest.cc',
276       'browser/extensions/subscribe_page_action_browsertest.cc',
277       'browser/extensions/web_contents_browsertest.cc',
278       'browser/extensions/webstore_inline_installer_browsertest.cc',
279       'browser/extensions/webstore_installer_browsertest.cc',
280       'browser/extensions/webstore_installer_test.cc',
281       'browser/extensions/webstore_installer_test.h',
282       'browser/extensions/webstore_reinstaller_browsertest.cc',
283       'browser/extensions/webstore_startup_installer_browsertest.cc',
284       'browser/extensions/window_open_apitest.cc',
285       'browser/external_extension_browsertest.cc',
286       'browser/fast_shutdown_browsertest.cc',
287       'browser/favicon/content_favicon_driver_browsertest.cc',
288       'browser/first_run/first_run_browsertest.cc',
289       'browser/first_run/try_chrome_dialog_view_browsertest.cc',
290       'browser/geolocation/access_token_store_browsertest.cc',
291       'browser/geolocation/geolocation_browsertest.cc',
292       'browser/history/history_browsertest.cc',
293       'browser/history/redirect_browsertest.cc',
294       'browser/iframe_browsertest.cc',
295       'browser/importer/firefox_importer_browsertest.cc',
296       'browser/importer/ie_importer_browsertest_win.cc',
297       'browser/importer/importer_unittest_utils.cc',
298       'browser/importer/importer_unittest_utils.h',
299       'browser/infobars/infobars_browsertest.cc',
300       'browser/interstitials/security_interstitial_page_test_utils.cc',
301       'browser/interstitials/security_interstitial_page_test_utils.h',
302       'browser/invalidation/profile_invalidation_provider_factory_browsertest.cc',
303       'browser/lifetime/browser_close_manager_browsertest.cc',
304       'browser/loadtimes_extension_bindings_browsertest.cc',
305       'browser/locale_tests_browsertest.cc',
306       'browser/media/chrome_media_stream_infobar_browsertest.cc',
307       'browser/media/chrome_webrtc_apprtc_browsertest.cc',
308       'browser/media/chrome_webrtc_audio_quality_browsertest.cc',
309       'browser/media/chrome_webrtc_browsertest.cc',
310       'browser/media/chrome_webrtc_disable_encryption_flag_browsertest.cc',
311       'browser/media/chrome_webrtc_getmediadevices_browsertest.cc',
312       'browser/media/chrome_webrtc_perf_browsertest.cc',
313       'browser/media/chrome_webrtc_simulcast_browsertest.cc',
314       'browser/media/chrome_webrtc_video_quality_browsertest.cc',
315       'browser/media/chrome_webrtc_webcam_browsertest.cc',
316       'browser/media/encrypted_media_browsertest.cc',
317       'browser/media/encrypted_media_istypesupported_browsertest.cc',
318       'browser/media/media_browsertest.cc',
319       'browser/media/media_browsertest.h',
320       'browser/media/media_stream_devices_controller_browsertest.cc',
321       'browser/media/test_license_server.cc',
322       'browser/media/test_license_server.h',
323       'browser/media/test_license_server_config.h',
324       'browser/media/webrtc_browsertest_audio.cc',
325       'browser/media/webrtc_browsertest_audio.h',
326       'browser/media/webrtc_browsertest_base.cc',
327       'browser/media/webrtc_browsertest_base.h',
328       'browser/media/webrtc_browsertest_common.cc',
329       'browser/media/webrtc_browsertest_common.h',
330       'browser/media/webrtc_browsertest_perf.cc',
331       'browser/media/webrtc_browsertest_perf.h',
332       'browser/media/wv_test_license_server_config.cc',
333       'browser/media/wv_test_license_server_config.h',
334       'browser/media_galleries/fileapi/iapps_finder_impl_win_browsertest.cc',
335       'browser/media_galleries/fileapi/media_file_validator_browsertest.cc',
336       'browser/media_galleries/media_galleries_dialog_controller_mock.cc',
337       'browser/media_galleries/media_galleries_dialog_controller_mock.h',
338       'browser/metrics/metrics_memory_details_browsertest.cc',
339       'browser/metrics/metrics_service_browsertest.cc',
340       'browser/net/cookie_policy_browsertest.cc',
341       'browser/net/dns_probe_browsertest.cc',
342       'browser/net/ftp_browsertest.cc',
343       'browser/net/load_timing_browsertest.cc',
344       'browser/net/nss_context_chromeos_browsertest.cc',
345       'browser/net/predictor_browsertest.cc',
346       'browser/net/proxy_browsertest.cc',
347       'browser/net/sdch_browsertest.cc',
348       'browser/net/websocket_browsertest.cc',
349       'browser/password_manager/password_manager_browsertest.cc',
350       'browser/pdf/pdf_extension_test.cc',
351       'browser/prefetch/prefetch_browsertest.cc',
352       'browser/prefs/pref_functional_browsertest.cc',
353       'browser/prefs/pref_service_browsertest.cc',
354       'browser/prefs/synced_pref_change_registrar_browsertest.cc',
355       'browser/prefs/tracked/pref_hash_browsertest.cc',
356       'browser/prerender/prerender_browsertest.cc',
357       'browser/printing/cloud_print/test/cloud_print_policy_browsertest.cc',
358       'browser/printing/cloud_print/test/cloud_print_proxy_process_browsertest.cc',
359       'browser/printing/print_preview_dialog_controller_browsertest.cc',
360       'browser/printing/print_preview_pdf_generated_browsertest.cc',
361       'browser/process_singleton_browsertest.cc',
362       'browser/profile_resetter/profile_resetter_browsertest.cc',
363       'browser/profiles/host_zoom_map_browsertest.cc',
364       'browser/profiles/profile_browsertest.cc',
365       'browser/profiles/profile_list_desktop_browsertest.cc',
366       'browser/profiles/profile_manager_browsertest.cc',
367       'browser/profiles/profile_window_browsertest.cc',
368       'browser/push_messaging/push_messaging_browsertest.cc',
369       'browser/referrer_policy_browsertest.cc',
370       'browser/renderer_context_menu/render_view_context_menu_browsertest.cc',
371       'browser/renderer_context_menu/render_view_context_menu_browsertest_util.cc',
372       'browser/renderer_context_menu/render_view_context_menu_browsertest_util.h',
373       'browser/renderer_context_menu/render_view_context_menu_test_util.cc',
374       'browser/renderer_context_menu/render_view_context_menu_test_util.h',
375       'browser/renderer_context_menu/spellchecker_submenu_observer_browsertest.cc',
376       'browser/renderer_context_menu/spelling_menu_observer_browsertest.cc',
377       'browser/renderer_host/chrome_resource_dispatcher_host_delegate_browsertest.cc',
378       'browser/renderer_host/render_process_host_chrome_browsertest.cc',
379       'browser/repost_form_warning_browsertest.cc',
380       'browser/safe_json_parser_browsertest.cc',
381       'browser/search/hotword_installer_browsertest.cc',
382       'browser/search/suggestions/image_fetcher_impl_browsertest.cc',
383       'browser/service_process/service_process_control_browsertest.cc',
384       'browser/services/gcm/fake_gcm_profile_service.cc',
385       'browser/services/gcm/fake_gcm_profile_service.h',
386       'browser/sessions/better_session_restore_browsertest.cc',
387       'browser/sessions/persistent_tab_restore_service_browsertest.cc',
388       'browser/sessions/session_restore_browsertest.cc',
389       'browser/sessions/session_restore_browsertest_chromeos.cc',
390       'browser/sessions/tab_restore_browsertest.cc',
391       'browser/spellchecker/spellcheck_service_browsertest.cc',
392       'browser/ssl/captive_portal_blocking_page_browsertest.cc',
393       'browser/ssl/chrome_ssl_host_state_delegate_test.cc',
394       'browser/ssl/ssl_browser_tests.cc',
395       'browser/ssl/ssl_client_certificate_selector_test.cc',
396       'browser/ssl/ssl_client_certificate_selector_test.h',
397       'browser/sync_file_system/mock_local_change_processor.cc',
398       'browser/sync_file_system/mock_local_change_processor.h',
399       'browser/sync_file_system/mock_remote_file_sync_service.cc',
400       'browser/sync_file_system/mock_remote_file_sync_service.h',
401       'browser/tab_contents/view_source_browsertest.cc',
402       'browser/task_manager/task_manager_browsertest.cc',
403       'browser/task_manager/task_manager_browsertest_util.cc',
404       'browser/task_manager/task_manager_browsertest_util.h',
405       'browser/themes/theme_service_browsertest.cc',
406       'browser/translate/cld_data_harness.cc',
407       'browser/translate/cld_data_harness.h',
408       'browser/translate/cld_data_harness_factory.cc',
409       'browser/translate/cld_data_harness_factory.h',
410       'browser/translate/component_cld_data_harness.cc',
411       'browser/translate/component_cld_data_harness.h',
412       'browser/translate/standalone_cld_data_harness.cc',
413       'browser/translate/standalone_cld_data_harness.h',
414       'browser/translate/translate_browsertest.cc',
415       'browser/translate/translate_manager_browsertest.cc',
416       'browser/ui/ash/accelerator_commands_browsertest.cc',
417       'browser/ui/ash/accelerator_controller_browsertest.cc',
418       'browser/ui/ash/keyboard_controller_browsertest.cc',
419       'browser/ui/ash/launcher/chrome_launcher_controller_browsertest.cc',
420       'browser/ui/ash/launcher/launcher_favicon_loader_browsertest.cc',
421       'browser/ui/ash/multi_user/multi_user_window_manager_test.cc',
422       'browser/ui/ash/multi_user/multi_user_window_manager_test.h',
423       'browser/ui/ash/shelf_browsertest.cc',
424       'browser/ui/ash/system_tray_delegate_chromeos_browsertest_chromeos.cc',
425       'browser/ui/ash/volume_controller_browsertest_chromeos.cc',
426       'browser/ui/autofill/autofill_dialog_controller_browsertest.cc',
427       'browser/ui/autofill/autofill_dialog_view_tester.h',
428       'browser/ui/autofill/card_unmask_prompt_view_browsertest.cc',
429       'browser/ui/autofill/card_unmask_view_tester.h',
430       'browser/ui/autofill/mock_address_validator.cc',
431       'browser/ui/autofill/mock_address_validator.h',
432       'browser/ui/autofill/password_generation_popup_view_browsertest.cc',
433       'browser/ui/autofill/password_generation_popup_view_tester.h',
434       'browser/ui/autofill/test_generated_credit_card_bubble_controller.cc',
435       'browser/ui/autofill/test_generated_credit_card_bubble_controller.h',
436       'browser/ui/autofill/test_generated_credit_card_bubble_view.cc',
437       'browser/ui/autofill/test_generated_credit_card_bubble_view.h',
438       'browser/ui/blocked_content/popup_blocker_browsertest.cc',
439       'browser/ui/bookmarks/bookmark_browsertest.cc',
440       'browser/ui/browser_browsertest.cc',
441       'browser/ui/browser_close_browsertest.cc',
442       'browser/ui/browser_command_controller_browsertest.cc',
443       'browser/ui/browser_navigator_browsertest.cc',
444       'browser/ui/browser_navigator_browsertest.h',
445       'browser/ui/browser_navigator_browsertest_chromeos.cc',
446       'browser/ui/browser_tabrestore_browsertest.cc',
447       'browser/ui/cocoa/accelerators_cocoa_browsertest.mm',
448       'browser/ui/cocoa/applescript/browsercrapplication+applescript_test.mm',
449       'browser/ui/cocoa/applescript/window_applescript_test.mm',
450       'browser/ui/cocoa/apps/app_shim_menu_controller_mac_browsertest.mm',
451       'browser/ui/cocoa/apps/native_app_window_cocoa_browsertest.mm',
452       'browser/ui/cocoa/autofill/autofill_dialog_cocoa_browsertest.mm',
453       'browser/ui/cocoa/autofill/autofill_dialog_view_tester_cocoa.h',
454       'browser/ui/cocoa/autofill/autofill_dialog_view_tester_cocoa.mm',
455       'browser/ui/cocoa/browser_window_controller_browsertest.mm',
456       'browser/ui/cocoa/certificate_viewer_mac_browsertest.mm',
457       'browser/ui/cocoa/constrained_window/constrained_window_mac_browsertest.mm',
458       'browser/ui/cocoa/content_settings/collected_cookies_mac_browsertest.mm',
459       'browser/ui/cocoa/content_settings/content_setting_bubble_cocoa_unittest.mm',
460       'browser/ui/cocoa/dev_tools_controller_browsertest.mm',
461       'browser/ui/cocoa/extensions/extension_install_dialog_controller_browsertest.mm',
462       'browser/ui/cocoa/extensions/extension_install_prompt_test_utils.h',
463       'browser/ui/cocoa/extensions/extension_install_prompt_test_utils.mm',
464       'browser/ui/cocoa/extensions/media_galleries_dialog_cocoa_browsertest.mm',
465       'browser/ui/cocoa/extensions/windowed_install_dialog_controller_browsertest.mm',
466       'browser/ui/cocoa/find_bar/find_bar_browsertest.mm',
467       'browser/ui/cocoa/location_bar/zoom_decoration_browsertest.mm',
468       'browser/ui/cocoa/omnibox/omnibox_view_mac_browsertest.mm',
469       'browser/ui/cocoa/one_click_signin_bubble_controller_browsertest.mm',
470       'browser/ui/cocoa/one_click_signin_dialog_controller_browsertest.mm',
471       'browser/ui/cocoa/passwords/manage_passwords_bubble_browsertest.mm',
472       'browser/ui/cocoa/profiles/profile_signin_confirmation_view_controller_browsertest.mm',
473       'browser/ui/cocoa/ssl_client_certificate_selector_cocoa_browsertest.mm',
474       'browser/ui/cocoa/view_id_util_browsertest.mm',
475       'browser/ui/content_settings/content_setting_bubble_model_browsertest.cc',
476       'browser/ui/exclusive_access/fullscreen_controller_browsertest.cc',
477       'browser/ui/extensions/bookmark_app_browsertest.cc',
478       'browser/ui/find_bar/find_bar_host_browsertest.cc',
479       'browser/ui/global_error/global_error_service_browsertest.cc',
480       'browser/ui/location_bar/location_bar_browsertest.cc',
481       'browser/ui/login/login_prompt_browsertest.cc',
482       'browser/ui/native_window_tracker_browsertest.cc',
483       'browser/ui/panels/panel_extension_browsertest.cc',
484       'browser/ui/passwords/manage_passwords_test.cc',
485       'browser/ui/pdf/pdf_browsertest.cc',
486       'browser/ui/prefs/prefs_tab_helper_browsertest.cc',
487       'browser/ui/search/new_tab_page_interceptor_browsertest.cc',
488       'browser/ui/search_engines/search_engine_tab_helper_browsertest.cc',
489       'browser/ui/settings_window_manager_browsertest.cc',
490       'browser/ui/startup/startup_browser_creator_browsertest.cc',
491       'browser/ui/sync/one_click_signin_bubble_links_delegate_browsertest.cc',
492       'browser/ui/sync/profile_signin_confirmation_helper_browsertest.cc',
493       'browser/ui/tab_modal_confirm_dialog_browsertest.cc',
494       'browser/ui/tab_modal_confirm_dialog_browsertest.h',
495       'browser/ui/toolbar/browser_actions_bar_browsertest.cc',
496       'browser/ui/toolbar/browser_actions_bar_browsertest.h',
497       'browser/ui/toolbar/component_toolbar_actions_browsertest.cc',
498       'browser/ui/toolbar/test_toolbar_model.cc',
499       'browser/ui/toolbar/test_toolbar_model.h',
500       'browser/ui/website_settings/mock_permission_bubble_view.cc',
501       'browser/ui/website_settings/mock_permission_bubble_view.h',
502       'browser/ui/webui/bidi_checker_web_ui_test.cc',
503       'browser/ui/webui/bidi_checker_web_ui_test.h',
504       'browser/ui/webui/bookmarks_ui_browsertest.cc',
505       'browser/ui/webui/chrome_url_data_manager_browsertest.cc',
506       'browser/ui/webui/constrained_web_dialog_ui_browsertest.cc',
507       'browser/ui/webui/downloads_dom_handler_browsertest.cc',
508       'browser/ui/webui/downloads_ui_browsertest.cc',
509       'browser/ui/webui/downloads_ui_browsertest.h',
510       'browser/ui/webui/extensions/extension_settings_browsertest.cc',
511       'browser/ui/webui/extensions/extension_settings_browsertest.h',
512       'browser/ui/webui/identity_internals_ui_browsertest.cc',
513       'browser/ui/webui/identity_internals_ui_browsertest.h',
514       'browser/ui/webui/inspect_ui_browsertest.cc',
515       'browser/ui/webui/interstitials/interstitial_ui_browsertest.cc',
516       'browser/ui/webui/net_internals/net_internals_ui_browsertest.cc',
517       'browser/ui/webui/net_internals/net_internals_ui_browsertest.h',
518       'browser/ui/webui/ntp/most_visited_browsertest.cc',
519       'browser/ui/webui/ntp/new_tab_page_sync_handler_browsertest.cc',
520       'browser/ui/webui/ntp/new_tab_ui_browsertest.cc',
521       'browser/ui/webui/options/clear_browser_data_browsertest.cc',
522       'browser/ui/webui/options/content_settings_exception_area_browsertest.cc',
523       'browser/ui/webui/options/options_browsertest.cc',
524       'browser/ui/webui/options/options_ui_browsertest.cc',
525       'browser/ui/webui/options/options_ui_browsertest.h',
526       'browser/ui/webui/password_manager_internals/password_manager_internals_ui_browsertest.cc',
527       'browser/ui/webui/print_preview/print_preview_ui_browsertest.cc',
528       'browser/ui/webui/signin/inline_login_ui_browsertest.cc',
529       'browser/ui/webui/signin/user_manager_ui_browsertest.cc',
530       'browser/ui/webui/uber/uber_ui_browsertest.cc',
531       'browser/ui/webui/web_ui_test_handler.cc',
532       'browser/ui/webui/web_ui_test_handler.h',
533       'browser/ui/webui/webui_webview_browsertest.cc',
534       'browser/ui/zoom/zoom_controller_browsertest.cc',
535       'browser/unload_browsertest.cc',
536       'common/mac/app_mode_chrome_locator_browsertest.mm',
537       'common/mac/mock_launchd.cc',
538       'common/mac/mock_launchd.h',
539       'common/time_format_browsertest.cc',
540       'renderer/autofill/autofill_renderer_browsertest.cc',
541       'renderer/autofill/form_autocomplete_browsertest.cc',
542       'renderer/autofill/form_autofill_browsertest.cc',
543       'renderer/autofill/page_click_tracker_browsertest.cc',
544       'renderer/autofill/password_autofill_agent_browsertest.cc',
545       'renderer/autofill/password_generation_agent_browsertest.cc',
546       'renderer/chrome_content_renderer_client_browsertest.cc',
547       'renderer/content_settings_observer_browsertest.cc',
548       'renderer/media/cast_session_browsertest.cc',
549       'renderer/translate/translate_helper_browsertest.cc',
550       'renderer/translate/translate_script_browsertest.cc',
551       'test/base/chrome_render_view_test.cc',
552       'test/base/chrome_render_view_test.h',
553       'test/base/in_process_browser_test_browsertest.cc',
554       'test/base/javascript_browser_test.cc',
555       'test/base/javascript_browser_test.h',
556       'test/base/test_chrome_web_ui_controller_factory.cc',
557       'test/base/test_chrome_web_ui_controller_factory.h',
558       'test/base/test_chrome_web_ui_controller_factory_browsertest.cc',
559       'test/base/tracing_browsertest.cc',
560       'test/base/web_ui_browser_test.cc',
561       'test/base/web_ui_browser_test.h',
562       'test/base/web_ui_browser_test_browsertest.cc',
563       'test/data/webui/async_gen.cc',
564       'test/data/webui/async_gen.h',
565       'test/data/webui/certificate_viewer_ui_test-inl.h',
566       'test/data/webui/chrome_send_browsertest.cc',
567       'test/data/webui/chrome_send_browsertest.h',
568       'test/data/webui/history_ui_browsertest.cc',
569       'test/data/webui/history_ui_browsertest.h',
570       'test/data/webui/ntp4_browsertest.cc',
571       'test/data/webui/ntp4_browsertest.h',
572       'test/data/webui/print_preview.cc',
573       'test/data/webui/print_preview.h',
574       'test/data/webui/webui_resource_browsertest.cc',
575       'test/gpu/webgl_infobar_browsertest.cc',
576       'test/ppapi/ppapi_browsertest.cc',
577     ],
578     # Cross-platform views browser tests ready for toolkit-views on Mac.
579     'chrome_browser_tests_views_sources': [
580       'browser/ui/views/extensions/extension_uninstall_dialog_view_browsertest.cc',
581       'browser/ui/views/frame/browser_non_client_frame_view_ash_browsertest.cc',
582       'browser/ui/views/frame/browser_window_property_manager_browsertest_win.cc',
583       'browser/ui/views/select_file_dialog_extension_browsertest.cc',
584     ],
585     # Cross-platform (except Mac) views browser tests. Assumes app list is
586     # enabled (as for chrome_browser_ui_views_non_mac_sources).
587     'chrome_browser_tests_views_non_mac_sources': [
588       # TODO(tapted): These assume the AppListService is views-based. Enable
589       # with toolkit-views app launcher on Mac. http://crbug.com/365977.
590       'browser/apps/custom_launcher_page_browsertest_views.cc',
591       'browser/ui/app_list/app_list_service_views_browsertest.cc',
593       # TODO(tapted): Move these to chrome_browser_tests_views_sources when the
594       # the corresponding files are moved in chrome_browser_ui.gypi (i.e. out of
595       # chrome_browser_ui_views_non_mac_sources). http://crbug.com/404979.
596       'browser/ui/views/autofill/autofill_dialog_view_tester_views.cc',
597       'browser/ui/views/autofill/autofill_dialog_view_tester_views.h',
598       'browser/ui/views/autofill/autofill_popup_base_view_browsertest.cc',
599       'browser/ui/views/autofill/card_unmask_prompt_view_tester_views.cc',
600       'browser/ui/views/autofill/card_unmask_prompt_view_tester_views.h',
601       'browser/ui/views/autofill/password_generation_popup_view_tester_views.cc',
602       'browser/ui/views/autofill/password_generation_popup_view_tester_views.h',
603       'browser/ui/views/bookmarks/bookmark_bubble_sign_in_delegate_browsertest.cc',
604       'browser/ui/views/collected_cookies_views_browsertest.cc',
605       'browser/ui/views/extensions/bookmark_override_browsertest.cc',
606       'browser/ui/views/extensions/extension_install_dialog_view_browsertest.cc',
607       'browser/ui/views/extensions/extension_message_bubble_view_browsertest.cc',
608       'browser/ui/views/frame/browser_view_browsertest.cc',
609       'browser/ui/views/location_bar/zoom_bubble_view_browsertest.cc',
610       'browser/ui/views/profiles/avatar_menu_button_browsertest.cc',
611       'browser/ui/views/profiles/profile_chooser_view_browsertest.cc',
612       'browser/ui/views/toolbar/browser_actions_container_browsertest.cc',
613       'browser/ui/views/toolbar/toolbar_view_browsertest.cc',
614       'browser/ui/views/translate/translate_bubble_view_browsertest.cc',
615       'browser/ui/views/web_dialog_view_browsertest.cc',
616     ],
617     'chrome_browser_tests_chromeos_sources': [
618       'browser/chromeos/accessibility/accessibility_manager_browsertest.cc',
619       'browser/chromeos/accessibility/magnification_manager_browsertest.cc',
620       'browser/chromeos/accessibility/speech_monitor.cc',
621       'browser/chromeos/accessibility/speech_monitor.h',
622       'browser/chromeos/accessibility/touch_exploration_controller_browsertest.cc',
623       'browser/chromeos/app_mode/kiosk_app_manager_browsertest.cc',
624       'browser/chromeos/app_mode/kiosk_app_update_service_browsertest.cc',
625       'browser/chromeos/attestation/attestation_policy_browsertest.cc',
626       'browser/chromeos/customization/customization_document_browsertest.cc',
627       'browser/chromeos/customization/customization_wallpaper_downloader_browsertest.cc',
628       'browser/chromeos/device/input_service_proxy_browsertest.cc',
629       'browser/chromeos/drive/drive_integration_service_browsertest.cc',
630       'browser/chromeos/drive/drive_notification_manager_factory_browsertest.cc',
631       'browser/chromeos/drive/test_util.cc',
632       'browser/chromeos/drive/test_util.h',
633       'browser/chromeos/extensions/accessibility_features_apitest.cc',
634       'browser/chromeos/extensions/echo_private_apitest.cc',
635       'browser/chromeos/extensions/file_manager/file_browser_handler_api_test.cc',
636       'browser/chromeos/extensions/file_manager/file_manager_private_apitest.cc',
637       'browser/chromeos/extensions/file_system_provider/file_system_provider_apitest.cc',
638       'browser/chromeos/extensions/info_private_apitest.cc',
639       'browser/chromeos/extensions/input_method_apitest_chromeos.cc',
640       'browser/chromeos/extensions/virtual_keyboard_browsertest.cc',
641       'browser/chromeos/extensions/virtual_keyboard_browsertest.h',
642       'browser/chromeos/extensions/wallpaper_apitest.cc',
643       'browser/chromeos/extensions/wallpaper_manager_browsertest.cc',
644       'browser/chromeos/extensions/wallpaper_private_apitest.cc',
645       'browser/chromeos/file_manager/drive_test_util.cc',
646       'browser/chromeos/file_manager/drive_test_util.h',
647       'browser/chromeos/file_manager/external_filesystem_apitest.cc',
648       'browser/chromeos/file_manager/file_manager_browsertest.cc',
649       'browser/chromeos/file_manager/file_manager_jstest.cc',
650       'browser/chromeos/file_manager/file_manager_jstest_base.cc',
651       'browser/chromeos/file_manager/file_manager_jstest_base.h',
652       'browser/chromeos/file_manager/gallery_jstest.cc',
653       'browser/chromeos/file_manager/image_loader_jstest.cc',
654       'browser/chromeos/file_manager/zip_file_creator_browsertest.cc',
655       'browser/chromeos/first_run/drive_first_run_browsertest.cc',
656       'browser/chromeos/first_run/first_run_browsertest.cc',
657       'browser/chromeos/input_method/input_method_engine_browsertests.cc',
658       'browser/chromeos/input_method/mode_indicator_browsertest.cc',
659       'browser/chromeos/login/crash_restore_browsertest.cc',
660       'browser/chromeos/login/demo_mode/demo_app_launcher_browsertest.cc',
661       'browser/chromeos/login/easy_unlock/bootstrap_browsertest.cc',
662       'browser/chromeos/login/enable_debugging_browsertest.cc',
663       'browser/chromeos/login/enrollment/enrollment_screen_browsertest.cc',
664       'browser/chromeos/login/enrollment/mock_auto_enrollment_check_screen.cc',
665       'browser/chromeos/login/enrollment/mock_auto_enrollment_check_screen.h',
666       'browser/chromeos/login/enrollment/mock_enrollment_screen.cc',
667       'browser/chromeos/login/enrollment/mock_enrollment_screen.h',
668       'browser/chromeos/login/existing_user_controller_browsertest.cc',
669       'browser/chromeos/login/hid_detection_browsertest.cc',
670       'browser/chromeos/login/kiosk_browsertest.cc',
671       'browser/chromeos/login/lock/screen_locker_tester.cc',
672       'browser/chromeos/login/lock/screen_locker_tester.h',
673       'browser/chromeos/login/login_manager_test.cc',
674       'browser/chromeos/login/login_manager_test.h',
675       'browser/chromeos/login/login_screen_policy_browsertest.cc',
676       'browser/chromeos/login/login_ui_keyboard_browsertest.cc',
677       'browser/chromeos/login/login_utils_browsertest.cc',
678       'browser/chromeos/login/mixin_based_browser_test.cc',
679       'browser/chromeos/login/mixin_based_browser_test.h',
680       'browser/chromeos/login/oobe_localization_browsertest.cc',
681       # TODO(nkostylev) Re-enable ResourceLoaderBrowserTest.
682       #'browser/chromeos/login/resource_loader_browsertest.cc',
683       'browser/chromeos/login/proxy_auth_dialog_browsertest.cc',
684       'browser/chromeos/login/reset_browsertest.cc',
685       'browser/chromeos/login/saml/saml_browsertest.cc',
686       'browser/chromeos/login/screens/mock_base_screen_delegate.cc',
687       'browser/chromeos/login/screens/mock_base_screen_delegate.h',
688       'browser/chromeos/login/screens/mock_enable_debugging_screen.cc',
689       'browser/chromeos/login/screens/mock_enable_debugging_screen.h',
690       'browser/chromeos/login/screens/mock_error_screen.cc',
691       'browser/chromeos/login/screens/mock_error_screen.h',
692       'browser/chromeos/login/screens/mock_eula_screen.cc',
693       'browser/chromeos/login/screens/mock_eula_screen.h',
694       'browser/chromeos/login/screens/mock_network_screen.cc',
695       'browser/chromeos/login/screens/mock_network_screen.h',
696       'browser/chromeos/login/screens/mock_update_screen.cc',
697       'browser/chromeos/login/screens/mock_update_screen.h',
698       'browser/chromeos/login/screens/mock_wrong_hwid_screen.cc',
699       'browser/chromeos/login/screens/mock_wrong_hwid_screen.h',
700       'browser/chromeos/login/screens/network_screen_browsertest.cc',
701       'browser/chromeos/login/screens/update_screen_browsertest.cc',
702       'browser/chromeos/login/session_login_browsertest.cc',
703       'browser/chromeos/login/signin/oauth2_browsertest.cc',
704       'browser/chromeos/login/supervised/supervised_user_creation_browsertest.cc',
705       'browser/chromeos/login/supervised/supervised_user_password_browsertest.cc',
706       'browser/chromeos/login/supervised/supervised_user_test_base.cc',
707       'browser/chromeos/login/supervised/supervised_user_test_base.h',
708       'browser/chromeos/login/test/app_window_waiter.cc',
709       'browser/chromeos/login/test/app_window_waiter.h',
710       'browser/chromeos/login/test/https_forwarder.cc',
711       'browser/chromeos/login/test/https_forwarder.h',
712       'browser/chromeos/login/test/oobe_base_test.cc',
713       'browser/chromeos/login/test/oobe_base_test.h',
714       'browser/chromeos/login/test/wizard_in_process_browser_test.cc',
715       'browser/chromeos/login/test/wizard_in_process_browser_test.h',
716       'browser/chromeos/login/ui/captive_portal_window_browsertest.cc',
717       'browser/chromeos/login/ui/login_web_dialog_browsertest.cc',
718       'browser/chromeos/login/ui/simple_web_view_dialog_browsertest.cc',
719       'browser/chromeos/login/ui/user_adding_screen_browsertest.cc',
720       'browser/chromeos/login/users/avatar/user_image_manager_browsertest.cc',
721       'browser/chromeos/login/users/avatar/user_image_manager_test_util.cc',
722       'browser/chromeos/login/users/avatar/user_image_manager_test_util.h',
723       'browser/chromeos/login/users/wallpaper/wallpaper_manager_policy_browsertest.cc',
724       'browser/chromeos/login/users/wallpaper/wallpaper_manager_test_utils.cc',
725       'browser/chromeos/login/users/wallpaper/wallpaper_manager_test_utils.h',
726       'browser/chromeos/login/webview_login_browsertest.cc',
727       'browser/chromeos/login/wizard_controller_browsertest.cc',
728       'browser/chromeos/memory/oom_priority_manager_browsertest.cc',
729       'browser/chromeos/net/network_portal_detector_impl_browsertest.cc',
730       'browser/chromeos/policy/blocking_login_browsertest.cc',
731       'browser/chromeos/policy/device_cloud_policy_browsertest.cc',
732       'browser/chromeos/policy/device_local_account_browsertest.cc',
733       'browser/chromeos/policy/device_policy_cros_browser_test.cc',
734       'browser/chromeos/policy/device_policy_cros_browser_test.h',
735       'browser/chromeos/policy/device_status_collector_browsertest.cc',
736       'browser/chromeos/policy/device_system_use_24hour_clock_browsertest.cc',
737       'browser/chromeos/policy/force_maximize_on_first_run_chromeos_browsertest.cc',
738       'browser/chromeos/policy/login_policy_test_base.cc',
739       'browser/chromeos/policy/login_policy_test_base.h',
740       'browser/chromeos/policy/login_screen_default_policy_browsertest.cc',
741       'browser/chromeos/policy/policy_cert_verifier_browsertest.cc',
742       'browser/chromeos/policy/power_policy_browsertest.cc',
743       'browser/chromeos/policy/user_cloud_external_data_manager_browsertest.cc',
744       'browser/chromeos/policy/user_cloud_policy_manager_chromeos_browsertest.cc',
745       'browser/chromeos/policy/variations_service_policy_browsertest.cc',
746       'browser/chromeos/power/peripheral_battery_observer_browsertest.cc',
747       'browser/chromeos/preferences_browsertest.cc',
748       'browser/chromeos/profiles/profile_helper_browsertest.cc',
749       'browser/chromeos/shutdown_policy_browsertest.cc',
750       'browser/chromeos/system/device_disabling_browsertest.cc',
751       'browser/chromeos/system/tray_accessibility_browsertest.cc',
752       'browser/extensions/api/vpn_provider/vpn_provider_apitest.cc',
753       'browser/ui/webui/options/chromeos/accounts_options_browsertest.cc',
754       'browser/ui/webui/options/chromeos/guest_mode_options_ui_browsertest.cc',
755       'browser/ui/webui/options/chromeos/shared_options_browsertest.cc',
756     ],
757     'chrome_browser_tests_policy_sources': [
758       'browser/policy/cloud/cloud_policy_browsertest.cc',
759       'browser/policy/cloud/cloud_policy_manager_browsertest.cc',
760       'browser/policy/cloud/component_cloud_policy_browsertest.cc',
761       'browser/policy/cloud/device_management_service_browsertest.cc',
762       'browser/policy/cloud/test_request_interceptor.cc',
763       'browser/policy/cloud/test_request_interceptor.h',
764       'browser/policy/policy_browsertest.cc',
765       'browser/policy/policy_prefs_browsertest.cc',
766       'browser/policy/policy_startup_browsertest.cc',
767       'browser/ui/webui/options/certificate_manager_browsertest.cc',
768       'browser/ui/webui/options/preferences_browsertest.cc',
769       'browser/ui/webui/options/preferences_browsertest.h',
770       'browser/ui/webui/policy_ui_browsertest.cc',
771     ],
772     'chrome_browser_tests_speech_sources': [
773       'browser/speech/extension_api/tts_extension_apitest.cc',
774     ],
775     'chrome_browser_tests_full_safe_browsing_sources': [
776       'browser/safe_browsing/local_safebrowsing_test_server.cc',
777       'browser/safe_browsing/safe_browsing_blocking_page_test.cc',
778       'browser/safe_browsing/safe_browsing_service_browsertest.cc',
779       'browser/safe_browsing/safe_browsing_test.cc',
780       'renderer/safe_browsing/malware_dom_details_browsertest.cc',
781       'renderer/safe_browsing/phishing_classifier_browsertest.cc',
782       'renderer/safe_browsing/phishing_classifier_delegate_browsertest.cc',
783       'renderer/safe_browsing/phishing_dom_feature_extractor_browsertest.cc',
784     ],
785     'chrome_browser_tests_remoting_sources': [
786       'test/remoting/auth_browsertest.cc',
787       'test/remoting/fullscreen_browsertest.cc',
788       'test/remoting/it2me_browsertest.cc',
789       'test/remoting/key_code_conv.cc',
790       'test/remoting/key_code_conv.h',
791       'test/remoting/key_code_map.h',
792       'test/remoting/key_code_test_map.h',
793       'test/remoting/launch_browsertest.cc',
794       'test/remoting/me2me_browsertest.cc',
795       'test/remoting/page_load_notification_observer.cc',
796       'test/remoting/page_load_notification_observer.h',
797       'test/remoting/pin_browsertest.cc',
798       'test/remoting/qunit_browser_test_runner.cc',
799       'test/remoting/remote_desktop_browsertest.cc',
800       'test/remoting/remote_desktop_browsertest.h',
801       'test/remoting/remote_test_helper.cc',
802       'test/remoting/remote_test_helper.h',
803       'test/remoting/scrollbar_browsertest.cc',
804       'test/remoting/unauthenticated_browsertest.cc',
805       'test/remoting/waiter.cc',
806       'test/remoting/waiter.h',
807       'test/remoting/webapp_javascript_unittest.cc',
808     ],
809     'chrome_browser_tests_supervised_user_sources': [
810       'browser/supervised_user/supervised_user_browsertest.cc',
811       'browser/supervised_user/supervised_user_resource_throttle_browsertest.cc',
812       'browser/supervised_user/supervised_user_service_browsertest.cc',
813       'browser/ui/webui/downloads_ui_supervised_browsertest.cc',
814       'browser/ui/webui/downloads_ui_supervised_browsertest.h',
815     ],
816     'chrome_browser_tests_app_list_sources': [
817       'browser/apps/drive/drive_app_converter_browsertest.cc',
818       'browser/apps/drive/drive_app_provider_browsertest.cc',
819       'browser/ui/app_list/app_list_controller_browsertest.cc',
820       'browser/ui/app_list/app_list_service_impl_browsertest.cc',
821       'browser/ui/app_list/search/people/people_provider_browsertest.cc',
822       'browser/ui/app_list/search/webstore/webstore_provider_browsertest.cc',
823       'browser/ui/app_list/speech_recognizer_browsertest.cc',
824     ],
825     # Javascript sources. These are combined with the .cc files in the GYP build
826     # and are handled by a rule, but in the GN build theyr're in a separate
827     # action so need to be separated out.
828     'chrome_browser_tests_webui_js_sources': [
829       'browser/devtools/device/webrtc/devtools_bridge_client_browsertest.js',
830       'browser/ui/webui/app_list/start_page_browsertest.js',
831       'browser/ui/webui/chromeos/certificate_manager_dialog_browsertest.js',
832       'browser/ui/webui/chromeos/set_time_ui_browsertest.js',
833       'browser/ui/webui/downloads_ui_browsertest.js',
834       'browser/ui/webui/downloads_ui_browsertest_base.js',
835       'browser/ui/webui/downloads_ui_supervised_browsertest.js',
836       'browser/ui/webui/extensions/chromeos/kiosk_apps_browsertest.js',
837       'browser/ui/webui/extensions/extension_settings_browsertest.js',
838       'browser/ui/webui/help/help_browsertest.js',
839       'browser/ui/webui/identity_internals_ui_browsertest.js',
840       'browser/ui/webui/options/autofill_options_browsertest.js',
841       'browser/ui/webui/options/browser_options_browsertest.js',
842       'browser/ui/webui/options/certificate_manager_browsertest.js',
843       'browser/ui/webui/options/chromeos/accounts_options_browsertest.js',
844       'browser/ui/webui/options/chromeos/bluetooth_options_browsertest.js',
845       'browser/ui/webui/options/chromeos/date_time_options_browsertest.js',
846       'browser/ui/webui/options/content_options_browsertest.js',
847       'browser/ui/webui/options/content_settings_exception_area_browsertest.js',
848       'browser/ui/webui/options/cookies_view_browsertest.js',
849       'browser/ui/webui/options/edit_dictionary_browsertest.js',
850       'browser/ui/webui/options/font_settings_browsertest.js',
851       'browser/ui/webui/options/language_options_browsertest.js',
852       'browser/ui/webui/options/language_options_dictionary_download_browsertest.js',
853       'browser/ui/webui/options/manage_profile_browsertest.js',
854       'browser/ui/webui/options/options_browsertest.js',
855       'browser/ui/webui/options/options_browsertest_base.js',
856       'browser/ui/webui/options/password_manager_browsertest.js',
857       'browser/ui/webui/options/profile_settings_reset_browsertest.js',
858       'browser/ui/webui/options/search_engine_manager_browsertest.js',
859       'browser/ui/webui/options/settings_app_browsertest.js',
860       'browser/ui/webui/options/settings_format_browsertest.js',
861       'browser/ui/webui/options/startup_page_list_browsertest.js',
862       'browser/ui/webui/options/website_settings_browsertest.js',
863       'browser/ui/webui/sync_internals_browsertest.js',
864       'browser/ui/webui/sync_setup_browsertest.js',
865       'test/data/chromeos/oobe_webui_browsertest.js',
866       'test/data/webui/about_invalidations_browsertest.js',
867       'test/data/webui/accessibility_audit_browsertest.js',
868       'test/data/webui/assertions.js',
869       'test/data/webui/async_gen.js',
870       'test/data/webui/certificate_viewer_dialog_test.js',
871       'test/data/webui/chrome_send_browsertest.js',
872       'test/data/webui/history_browsertest.js',
873       'test/data/webui/mock4js_browsertest.js',
874       'test/data/webui/net_internals/bandwidth_view.js',
875       'test/data/webui/net_internals/chromeos_view.js',
876       'test/data/webui/net_internals/dns_view.js',
877       'test/data/webui/net_internals/events_view.js',
878       'test/data/webui/net_internals/hsts_view.js',
879       'test/data/webui/net_internals/log_util.js',
880       'test/data/webui/net_internals/log_view_painter.js',
881       'test/data/webui/net_internals/main.js',
882       'test/data/webui/net_internals/net_internals_test.js',
883       'test/data/webui/net_internals/prerender_view.js',
884       'test/data/webui/net_internals/timeline_view.js',
885       'test/data/webui/net_internals/waterfall_view.js',
886       'test/data/webui/net_internals/sdch_view.js',
887       'test/data/webui/ntp4.js',
888       'test/data/webui/print_preview.js',
889       'test/data/webui/sandboxstatus_browsertest.js',
890     ],
891     'chrome_interactive_ui_test_sources': [
892       '../extensions/browser/app_window/app_window_interactive_uitest.cc',
893       '../ui/base/clipboard/clipboard_android_unittest.cc',
894       '../ui/base/clipboard/clipboard_unittest.cc',
895       'browser/apps/app_browsertest_util.cc',
896       'browser/apps/app_browsertest_util.h',
897       'browser/apps/app_pointer_lock_interactive_uitest.cc',
898       'browser/apps/app_shim/app_shim_interactive_uitest_mac.mm',
899       'browser/apps/app_shim/app_shim_quit_interactive_uitest_mac.mm',
900       'browser/apps/app_window_interactive_uitest.cc',
901       'browser/apps/app_window_intercept_all_keys_uitest.cc',
902       'browser/apps/guest_view/web_view_interactive_browsertest.cc',
903       'browser/autofill/autofill_interactive_uitest.cc',
904       'browser/autofill/autofill_uitest_util.cc',
905       'browser/browser_keyevents_browsertest.cc',
906       'browser/chrome_plugin_interactive_test.cc',
907       'browser/extensions/api/extension_action/browser_action_interactive_test.cc',
908       'browser/extensions/api/omnibox/omnibox_api_interactive_test.cc',
909       'browser/extensions/browsertest_util.cc',
910       'browser/extensions/extension_apitest.cc',
911       'browser/extensions/extension_browsertest.cc',
912       'browser/extensions/extension_commands_global_registry_apitest.cc',
913       'browser/extensions/extension_crash_recovery_browsertest.cc',
914       'browser/extensions/extension_fullscreen_apitest.cc',
915       'browser/extensions/extension_function_test_utils.cc',
916       'browser/extensions/extension_keybinding_apitest.cc',
917       'browser/extensions/extension_test_notification_observer.cc',
918       'browser/extensions/updater/extension_cache_fake.cc',
919       'browser/extensions/updater/extension_cache_fake.h',
920       'browser/extensions/window_open_interactive_apitest.cc',
921       'browser/mouseleave_browsertest.cc',
922       'browser/password_manager/password_generation_interactive_uitest.cc',
923       'browser/renderer_context_menu/render_view_context_menu_browsertest_util.cc',
924       'browser/renderer_context_menu/render_view_context_menu_browsertest_util.h',
925       'browser/task_manager/task_manager_browsertest_util.cc',
926       'browser/ui/autofill/autofill_popup_controller_interactive_uitest.cc',
927       'browser/ui/browser_focus_uitest.cc',
928       'browser/ui/cocoa/apps/quit_with_apps_controller_mac_interactive_uitest.mm',
929       'browser/ui/cocoa/extensions/browser_action_button_interactive_uitest.mm',
930       'browser/ui/cocoa/panels/panel_cocoa_browsertest.mm',
931       'browser/ui/exclusive_access/flash_fullscreen_interactive_browsertest.cc',
932       'browser/ui/exclusive_access/fullscreen_controller_interactive_browsertest.cc',
933       'browser/ui/exclusive_access/fullscreen_controller_state_interactive_browsertest.cc',
934       'browser/ui/find_bar/find_bar_host_interactive_uitest.cc',
935       'browser/ui/omnibox/omnibox_view_browsertest.cc',
936       'browser/ui/panels/base_panel_browser_test.cc',
937       'browser/ui/panels/base_panel_browser_test.h',
938       'browser/ui/panels/test_panel_active_state_observer.cc',
939       'browser/ui/panels/test_panel_active_state_observer.h',
940       'browser/ui/panels/test_panel_collection_squeeze_observer.cc',
941       'browser/ui/panels/test_panel_collection_squeeze_observer.h',
942       'browser/ui/panels/test_panel_mouse_watcher.cc',
943       'browser/ui/panels/test_panel_mouse_watcher.h',
944       'browser/ui/panels/test_panel_notification_observer.cc',
945       'browser/ui/panels/test_panel_notification_observer.h',
946       'browser/ui/passwords/manage_passwords_test.cc',
947       'browser/ui/passwords/manage_passwords_test.h',
948       'browser/ui/pdf/pdf_interactive_browsertest.cc',
949       'browser/ui/search/instant_extended_interactive_uitest.cc',
950       'browser/ui/search/instant_extended_manual_interactive_uitest.cc',
951       'browser/ui/search/instant_test_utils.cc',
952       'browser/ui/search/instant_test_utils.h',
953       'browser/ui/search/local_ntp_browsertest.cc',
954       'browser/ui/startup/startup_browser_creator_interactive_uitest.cc',
955       'browser/ui/toolbar/test_toolbar_model.cc',
956       'browser/ui/toolbar/test_toolbar_model.h',
957       'browser/ui/views/accessibility/navigation_accessibility_uitest_win.cc',
958       'browser/ui/webui/options/autofill_options_interactive_uitest.cc',
959       'browser/ui/webui/options/language_dictionary_interactive_uitest.cc',
960       'browser/ui/webui/options/language_options_interactive_uitest.cc',
961       'test/base/interactive_test_utils.cc',
962       'test/base/interactive_test_utils.h',
963       'test/base/interactive_test_utils_aura.cc',
964       'test/base/interactive_test_utils_aura.h',
965       'test/base/interactive_test_utils_mac.mm',
966       'test/base/interactive_test_utils_views.cc',
967       'test/base/interactive_test_utils_win.cc',
968       'test/base/interactive_ui_tests_main.cc',
969       'test/base/view_event_test_platform_part.h',
970       'test/base/view_event_test_platform_part_ash.cc',
971       'test/base/view_event_test_platform_part_chromeos.cc',
972       'test/base/view_event_test_platform_part_mac.mm',
973       'test/ppapi/ppapi_interactive_browsertest.cc',
974     ],
975     # Panels sources not related to UI toolkit. ChromeOS doesn't use panels.
976     'chrome_interactive_ui_test_panels_sources': [
977       'browser/ui/panels/detached_panel_browsertest.cc',
978       'browser/ui/panels/docked_panel_browsertest.cc',
979       'browser/ui/panels/panel_browsertest.cc',
980       'browser/ui/panels/panel_resize_browsertest.cc',
981     ],
982     'chrome_interactive_ui_test_panels_views_sources': [
983       'browser/ui/views/message_center/web_notification_tray_browsertest.cc',
984       'browser/ui/views/panels/panel_view_browsertest.cc',
985     ],
986      # Cross-platform views interactive tests ready for toolkit-views on Mac.
987     'chrome_interactive_ui_test_views_sources': [
988       '../ui/views/controls/webview/webview_interactive_uitest.cc',
989       '../ui/views/corewm/desktop_capture_controller_unittest.cc',
990       '../ui/views/widget/desktop_aura/desktop_window_tree_host_x11_interactive_uitest.cc',
991       '../ui/views/widget/desktop_aura/x11_topmost_window_finder_interactive_uitest.cc',
992       '../ui/views/widget/widget_interactive_uitest.cc',
993       'browser/ui/views/ash/tab_scrubber_browsertest.cc',
994       'browser/ui/views/menu_controller_interactive_uitest.cc',
995       'browser/ui/views/menu_item_view_interactive_uitest.cc',
996       'browser/ui/views/menu_model_adapter_test.cc',
997       'browser/ui/views/menu_test_base.cc',
998       'browser/ui/views/menu_test_base.h',
999       'browser/ui/views/menu_view_drag_and_drop_test.cc',
1000       'browser/ui/views/status_icons/status_tray_state_changer_interactive_uitest_win.cc',
1001       'test/base/view_event_test_base.cc',
1002       'test/base/view_event_test_base.h',
1003     ],
1004     'chrome_interactive_ui_test_app_list_sources': [
1005       'browser/ui/app_list/app_list_service_interactive_uitest.cc',
1006       'browser/ui/app_list/app_list_service_mac_interactive_uitest.mm',
1007     ],
1008     'chrome_interactive_ui_test_win_sources': [
1009       '../ui/resources/cursors/aliasb.cur',
1010       '../ui/resources/cursors/cell.cur',
1011       '../ui/resources/cursors/col_resize.cur',
1012       '../ui/resources/cursors/copy.cur',
1013       '../ui/resources/cursors/none.cur',
1014       '../ui/resources/cursors/row_resize.cur',
1015       '../ui/resources/cursors/vertical_text.cur',
1016       '../ui/resources/cursors/zoom_in.cur',
1017       '../ui/resources/cursors/zoom_out.cur',
1018       'app/chrome_dll.rc',
1019       'test/data/resource.rc',
1020     ],
1021     # Cross-platform (except Mac) views interactive tests.
1022     # TODO(tapted): Move these to chrome_interactive_ui_test_views_sources when
1023     # the corresponding files are moved in chrome_browser_ui.gypi (i.e. out of
1024     # chrome_browser_ui_views_non_mac_sources).
1025     'chrome_interactive_ui_test_views_non_mac_sources': [
1026       'browser/ui/views/bookmarks/bookmark_bar_view_test.cc',
1027       'browser/ui/views/bookmarks/bookmark_bar_view_test_helper.h',
1028       'browser/ui/views/certificate_selector_browsertest.cc',
1029       'browser/ui/views/constrained_window_views_browsertest.cc',
1030       'browser/ui/views/extensions/extension_dialog_interactive_uitest.cc',
1031       'browser/ui/views/find_bar_controller_interactive_uitest.cc',
1032       'browser/ui/views/find_bar_host_interactive_uitest.cc',
1033       'browser/ui/views/frame/browser_view_focus_uitest.cc',
1034       'browser/ui/views/frame/browser_view_interactive_uitest.cc',
1035       'browser/ui/views/keyboard_access_browsertest.cc',
1036       'browser/ui/views/location_bar/location_icon_view_interactive_uitest.cc',
1037       'browser/ui/views/location_bar/star_view_browsertest.cc',
1038       'browser/ui/views/omnibox/omnibox_view_views_browsertest.cc',
1039       'browser/ui/views/passwords/manage_passwords_bubble_view_browsertest.cc',
1040       'browser/ui/views/passwords/manage_passwords_icon_view_browsertest.cc',
1041       'browser/ui/views/ssl_client_certificate_selector_browsertest.cc',
1042       'browser/ui/views/tabs/tab_drag_controller_interactive_uitest.cc',
1043       'browser/ui/views/tabs/tab_drag_controller_interactive_uitest.h',
1044       'browser/ui/views/toolbar/toolbar_button_test.cc',
1045       'browser/ui/views/toolbar/toolbar_view_interactive_uitest.cc',
1046     ],
1047     'chrome_interactive_ui_test_notifications_sources': [
1048       'browser/extensions/api/notifications/notifications_apitest.cc',
1049       'browser/notifications/message_center_notifications_browsertest.cc',
1050     ],
1051     'chrome_interactive_ui_test_chromeos_sources': [
1052       '../ash/accelerators/accelerator_interactive_uitest_chromeos.cc',
1053       'browser/chromeos/accessibility/magnification_controller_browsertest.cc',
1054       'browser/chromeos/accessibility/speech_monitor.cc',
1055       'browser/chromeos/accessibility/speech_monitor.h',
1056       'browser/chromeos/accessibility/spoken_feedback_browsertest.cc',
1057       'browser/chromeos/accessibility/sticky_keys_browsertest.cc',
1058       'browser/chromeos/input_method/textinput_browsertest.cc',
1059       'browser/chromeos/input_method/textinput_surroundingtext_browsertest.cc',
1060       'browser/chromeos/input_method/textinput_test_helper.cc',
1061       'browser/chromeos/input_method/textinput_test_helper.h',
1062       'browser/chromeos/login/eula_browsertest.cc',
1063       'browser/chromeos/login/lock/screen_locker_browsertest.cc',
1064       'browser/chromeos/login/lock/screen_locker_tester.cc',
1065       'browser/chromeos/login/lock/screen_locker_tester.h',
1066       'browser/chromeos/login/login_browsertest.cc',
1067       'browser/chromeos/login/login_manager_test.cc',
1068       'browser/chromeos/login/login_manager_test.h',
1069       'browser/chromeos/login/login_ui_browsertest.cc',
1070       'browser/chromeos/login/mixin_based_browser_test.cc',
1071       'browser/chromeos/login/mixin_based_browser_test.h',
1072       'browser/chromeos/login/oobe_browsertest.cc',
1073       'browser/chromeos/login/screenshot_testing/SkDiffPixelsMetric.h',
1074       'browser/chromeos/login/screenshot_testing/SkDiffPixelsMetric_cpu.cpp',
1075       'browser/chromeos/login/screenshot_testing/SkImageDiffer.cpp',
1076       'browser/chromeos/login/screenshot_testing/SkImageDiffer.h',
1077       'browser/chromeos/login/screenshot_testing/SkPMetric.cpp',
1078       'browser/chromeos/login/screenshot_testing/SkPMetric.h',
1079       'browser/chromeos/login/screenshot_testing/screenshot_tester.cc',
1080       'browser/chromeos/login/screenshot_testing/screenshot_tester.h',
1081       'browser/chromeos/login/screenshot_testing/screenshot_tester.h',
1082       'browser/chromeos/login/screenshot_testing/screenshot_testing_mixin.cc',
1083       'browser/chromeos/login/screenshot_testing/screenshot_testing_mixin.h',
1084       'browser/chromeos/login/test/https_forwarder.cc',
1085       'browser/chromeos/login/test/https_forwarder.h',
1086       'browser/chromeos/login/test/oobe_base_test.cc',
1087       'browser/chromeos/login/test/oobe_base_test.h',
1088       'browser/chromeos/login/users/wallpaper/wallpaper_manager_browsertest.cc',
1089       'browser/chromeos/login/users/wallpaper/wallpaper_manager_test_utils.cc',
1090       'browser/chromeos/login/users/wallpaper/wallpaper_manager_test_utils.h',
1091       'test/data/chromeos/service_login.html',
1092     ],
1093     'chrome_interactive_ui_test_ash_sources': [
1094       '../ash/drag_drop/drag_drop_interactive_uitest.cc',
1095       '../ash/wm/ash_native_cursor_manager_interactive_uitest.cc',
1096       'browser/ui/window_sizer/window_sizer_ash_uitest.cc',
1097     ],
1098     'chrome_interactive_ui_test_non_desktop_linux_sources': [
1099       # TODO(port): Everything here times out. Attempts have been made to fix
1100       # the individual failures, but each time I disable a test from these
1101       # suites, it seems like one or another starts timing out too.
1102       'browser/extensions/api/tabs/tabs_interactive_test.cc',
1103     ],
1104     'chrome_interactive_ui_test_non_linux_and_chromeos_sources': [
1105       # TODO(port): Disable all the interactive panel tests on all linux
1106       # platforms. These are badly busted on linux_aura, also time out
1107       # when run under openbox. ChromeOS doesn't use this panels code.
1108       'browser/ui/panels/panel_drag_browsertest.cc',
1109       'browser/ui/panels/stacked_panel_browsertest.cc',
1110     ],
1111     'chrome_automation_client_lib_sources': [
1112       'test/chromedriver/chrome/adb.h',
1113       'test/chromedriver/chrome/adb_impl.cc',
1114       'test/chromedriver/chrome/adb_impl.h',
1115       'test/chromedriver/chrome/automation_extension.cc',
1116       'test/chromedriver/chrome/automation_extension.h',
1117       'test/chromedriver/chrome/chrome.h',
1118       'test/chromedriver/chrome/chrome_android_impl.cc',
1119       'test/chromedriver/chrome/chrome_android_impl.h',
1120       'test/chromedriver/chrome/chrome_desktop_impl.cc',
1121       'test/chromedriver/chrome/chrome_desktop_impl.h',
1122       'test/chromedriver/chrome/chrome_finder.cc',
1123       'test/chromedriver/chrome/chrome_finder.h',
1124       'test/chromedriver/chrome/chrome_finder_mac.mm',
1125       'test/chromedriver/chrome/chrome_impl.cc',
1126       'test/chromedriver/chrome/chrome_impl.h',
1127       'test/chromedriver/chrome/chrome_remote_impl.cc',
1128       'test/chromedriver/chrome/chrome_remote_impl.h',
1129       'test/chromedriver/chrome/console_logger.cc',
1130       'test/chromedriver/chrome/console_logger.h',
1131       'test/chromedriver/chrome/debugger_tracker.cc',
1132       'test/chromedriver/chrome/debugger_tracker.h',
1133       'test/chromedriver/chrome/device_manager.cc',
1134       'test/chromedriver/chrome/device_manager.h',
1135       'test/chromedriver/chrome/device_metrics.cc',
1136       'test/chromedriver/chrome/device_metrics.h',
1137       'test/chromedriver/chrome/devtools_client.h',
1138       'test/chromedriver/chrome/devtools_client_impl.cc',
1139       'test/chromedriver/chrome/devtools_client_impl.h',
1140       'test/chromedriver/chrome/devtools_event_listener.cc',
1141       'test/chromedriver/chrome/devtools_event_listener.h',
1142       'test/chromedriver/chrome/devtools_http_client.cc',
1143       'test/chromedriver/chrome/devtools_http_client.h',
1144       'test/chromedriver/chrome/dom_tracker.cc',
1145       'test/chromedriver/chrome/dom_tracker.h',
1146       'test/chromedriver/chrome/frame_tracker.cc',
1147       'test/chromedriver/chrome/frame_tracker.h',
1148       'test/chromedriver/chrome/geolocation_override_manager.cc',
1149       'test/chromedriver/chrome/geolocation_override_manager.h',
1150       'test/chromedriver/chrome/geoposition.h',
1151       'test/chromedriver/chrome/heap_snapshot_taker.cc',
1152       'test/chromedriver/chrome/heap_snapshot_taker.h',
1153       'test/chromedriver/chrome/javascript_dialog_manager.cc',
1154       'test/chromedriver/chrome/javascript_dialog_manager.h',
1155       'test/chromedriver/chrome/log.cc',
1156       'test/chromedriver/chrome/log.h',
1157       'test/chromedriver/chrome/mobile_device.cc',
1158       'test/chromedriver/chrome/mobile_device.h',
1159       'test/chromedriver/chrome/mobile_device_list.cc',
1160       'test/chromedriver/chrome/mobile_device_list.h',
1161       'test/chromedriver/chrome/mobile_emulation_override_manager.cc',
1162       'test/chromedriver/chrome/mobile_emulation_override_manager.h',
1163       'test/chromedriver/chrome/navigation_tracker.cc',
1164       'test/chromedriver/chrome/navigation_tracker.h',
1165       'test/chromedriver/chrome/network_conditions.cc',
1166       'test/chromedriver/chrome/network_conditions.h',
1167       'test/chromedriver/chrome/network_conditions_override_manager.cc',
1168       'test/chromedriver/chrome/network_conditions_override_manager.h',
1169       'test/chromedriver/chrome/network_list.cc',
1170       'test/chromedriver/chrome/network_list.h',
1171       'test/chromedriver/chrome/status.cc',
1172       'test/chromedriver/chrome/status.h',
1173       'test/chromedriver/chrome/ui_events.cc',
1174       'test/chromedriver/chrome/ui_events.h',
1175       'test/chromedriver/chrome/util.cc',
1176       'test/chromedriver/chrome/util.h',
1177       'test/chromedriver/chrome/version.cc',
1178       'test/chromedriver/chrome/version.h',
1179       'test/chromedriver/chrome/web_view.h',
1180       'test/chromedriver/chrome/web_view_impl.cc',
1181       'test/chromedriver/chrome/web_view_impl.h',
1182       'test/chromedriver/net/adb_client_socket.cc',
1183       'test/chromedriver/net/adb_client_socket.h',
1184       'test/chromedriver/net/net_util.cc',
1185       'test/chromedriver/net/net_util.h',
1186       'test/chromedriver/net/port_server.cc',
1187       'test/chromedriver/net/port_server.h',
1188       'test/chromedriver/net/sync_websocket.h',
1189       'test/chromedriver/net/sync_websocket_factory.cc',
1190       'test/chromedriver/net/sync_websocket_factory.h',
1191       'test/chromedriver/net/sync_websocket_impl.cc',
1192       'test/chromedriver/net/sync_websocket_impl.h',
1193       'test/chromedriver/net/url_request_context_getter.cc',
1194       'test/chromedriver/net/url_request_context_getter.h',
1195       'test/chromedriver/net/websocket.cc',
1196       'test/chromedriver/net/websocket.h',
1197     ],
1198     'performance_browser_tests_sources': [
1199       '../components/autofill/content/renderer/test_password_autofill_agent.cc',
1200       '../components/autofill/content/renderer/test_password_autofill_agent.h',
1201       '../components/autofill/content/renderer/test_password_generation_agent.cc',
1202       '../components/autofill/content/renderer/test_password_generation_agent.h',
1203       'app/chrome_command_ids.h',
1204       'app/chrome_dll.rc',
1205       'app/chrome_dll_resource.h',
1206       'app/chrome_version.rc.version',
1207       'browser/extensions/api/cast_streaming/performance_test.cc',
1208       'browser/extensions/api/tab_capture/tab_capture_performancetest.cc',
1209       'browser/extensions/browsertest_util.cc',
1210       'browser/extensions/extension_apitest.cc',
1211       'browser/extensions/extension_browsertest.cc',
1212       'browser/extensions/extension_test_notification_observer.cc',
1213       'browser/extensions/updater/extension_cache_fake.cc',
1214       'browser/extensions/updater/extension_cache_fake.h',
1215       'test/base/browser_perf_tests_main.cc',
1216       'test/base/chrome_render_view_test.cc',
1217       'test/base/chrome_render_view_test.h',
1218       'test/perf/mach_ports_performancetest.cc',
1219       'test/perf/url_parse_perftest.cc',
1220     ],
1221     'chrome_driver_lib_sources': [
1222       '../third_party/webdriver/atoms.cc',
1223       '../third_party/webdriver/atoms.h',
1224       'common/chrome_constants.cc',
1225       'common/chrome_constants.h',
1226       'test/chromedriver/alert_commands.cc',
1227       'test/chromedriver/alert_commands.h',
1228       'test/chromedriver/basic_types.cc',
1229       'test/chromedriver/basic_types.h',
1230       'test/chromedriver/capabilities.cc',
1231       'test/chromedriver/capabilities.h',
1232       'test/chromedriver/chrome/browser_info.cc',
1233       'test/chromedriver/chrome/browser_info.h',
1234       'test/chromedriver/chrome_launcher.cc',
1235       'test/chromedriver/chrome_launcher.h',
1236       'test/chromedriver/command.h',
1237       'test/chromedriver/command_listener.h',
1238       'test/chromedriver/command_listener_proxy.cc',
1239       'test/chromedriver/command_listener_proxy.h',
1240       'test/chromedriver/commands.cc',
1241       'test/chromedriver/commands.h',
1242       'test/chromedriver/element_commands.cc',
1243       'test/chromedriver/element_commands.h',
1244       'test/chromedriver/element_util.cc',
1245       'test/chromedriver/element_util.h',
1246       'test/chromedriver/key_converter.cc',
1247       'test/chromedriver/key_converter.h',
1248       'test/chromedriver/keycode_text_conversion.h',
1249       'test/chromedriver/keycode_text_conversion_mac.mm',
1250       'test/chromedriver/keycode_text_conversion_ozone.cc',
1251       'test/chromedriver/keycode_text_conversion_win.cc',
1252       'test/chromedriver/keycode_text_conversion_x.cc',
1253       'test/chromedriver/logging.cc',
1254       'test/chromedriver/logging.h',
1255       'test/chromedriver/performance_logger.cc',
1256       'test/chromedriver/performance_logger.h',
1257       'test/chromedriver/server/http_handler.cc',
1258       'test/chromedriver/server/http_handler.h',
1259       'test/chromedriver/session.cc',
1260       'test/chromedriver/session.h',
1261       'test/chromedriver/session_commands.cc',
1262       'test/chromedriver/session_commands.h',
1263       'test/chromedriver/session_thread_map.h',
1264       'test/chromedriver/util.cc',
1265       'test/chromedriver/util.h',
1266       'test/chromedriver/window_commands.cc',
1267       'test/chromedriver/window_commands.h',
1268     ],
1269     'chrome_driver_unittests_sources': [
1270       'test/chromedriver/capabilities_unittest.cc',
1271       'test/chromedriver/chrome/browser_info_unittest.cc',
1272       'test/chromedriver/chrome/chrome_finder_unittest.cc',
1273       'test/chromedriver/chrome/console_logger_unittest.cc',
1274       'test/chromedriver/chrome/device_manager_unittest.cc',
1275       'test/chromedriver/chrome/devtools_client_impl_unittest.cc',
1276       'test/chromedriver/chrome/devtools_http_client_unittest.cc',
1277       'test/chromedriver/chrome/dom_tracker_unittest.cc',
1278       'test/chromedriver/chrome/frame_tracker_unittest.cc',
1279       'test/chromedriver/chrome/geolocation_override_manager_unittest.cc',
1280       'test/chromedriver/chrome/heap_snapshot_taker_unittest.cc',
1281       'test/chromedriver/chrome/javascript_dialog_manager_unittest.cc',
1282       'test/chromedriver/chrome/mobile_emulation_override_manager_unittest.cc',
1283       'test/chromedriver/chrome/navigation_tracker_unittest.cc',
1284       'test/chromedriver/chrome/network_conditions_override_manager_unittest.cc',
1285       'test/chromedriver/chrome/recorder_devtools_client.cc',
1286       'test/chromedriver/chrome/recorder_devtools_client.h',
1287       'test/chromedriver/chrome/status_unittest.cc',
1288       'test/chromedriver/chrome/stub_chrome.cc',
1289       'test/chromedriver/chrome/stub_chrome.h',
1290       'test/chromedriver/chrome/stub_devtools_client.cc',
1291       'test/chromedriver/chrome/stub_devtools_client.h',
1292       'test/chromedriver/chrome/stub_web_view.cc',
1293       'test/chromedriver/chrome/stub_web_view.h',
1294       'test/chromedriver/chrome/web_view_impl_unittest.cc',
1295       'test/chromedriver/chrome_launcher_unittest.cc',
1296       'test/chromedriver/command_listener_proxy_unittest.cc',
1297       'test/chromedriver/commands_unittest.cc',
1298       'test/chromedriver/logging_unittest.cc',
1299       'test/chromedriver/performance_logger_unittest.cc',
1300       'test/chromedriver/server/http_handler_unittest.cc',
1301       'test/chromedriver/session_commands_unittest.cc',
1302       'test/chromedriver/session_unittest.cc',
1303       'test/chromedriver/util_unittest.cc',
1304     ],
1305     'chrome_driver_tests_sources': [
1306       'test/chromedriver/key_converter_unittest.cc',
1307       'test/chromedriver/keycode_text_conversion_unittest.cc',
1308       'test/chromedriver/net/net_util_unittest.cc',
1309       'test/chromedriver/net/port_server_unittest.cc',
1310       'test/chromedriver/net/sync_websocket_impl_unittest.cc',
1311       'test/chromedriver/net/test_http_server.cc',
1312       'test/chromedriver/net/test_http_server.h',
1313       'test/chromedriver/net/websocket_unittest.cc',
1314       'test/chromedriver/test_util.cc',
1315       'test/chromedriver/test_util.h',
1316     ],
1317     'sync_integration_tests_sources': [
1318       'app/chrome_command_ids.h',
1319       'app/chrome_dll.rc',
1320       'app/chrome_dll_resource.h',
1321       'app/chrome_version.rc.version',
1322       'browser/sync/test/integration/cross_platform_sync_test.cc',
1323       'browser/sync/test/integration/enable_disable_test.cc',
1324       'browser/sync/test/integration/migration_test.cc',
1325       'browser/sync/test/integration/multiple_client_bookmarks_sync_test.cc',
1326       'browser/sync/test/integration/multiple_client_dictionary_sync_test.cc',
1327       'browser/sync/test/integration/multiple_client_passwords_sync_test.cc',
1328       'browser/sync/test/integration/multiple_client_preferences_sync_test.cc',
1329       'browser/sync/test/integration/multiple_client_sessions_sync_test.cc',
1330       'browser/sync/test/integration/multiple_client_typed_urls_sync_test.cc',
1331       'browser/sync/test/integration/single_client_app_list_sync_test.cc',
1332       'browser/sync/test/integration/single_client_apps_sync_test.cc',
1333       'browser/sync/test/integration/single_client_backup_rollback_test.cc',
1334       'browser/sync/test/integration/single_client_bookmarks_sync_test.cc',
1335       'browser/sync/test/integration/single_client_dictionary_sync_test.cc',
1336       'browser/sync/test/integration/single_client_directory_sync_test.cc',
1337       'browser/sync/test/integration/single_client_e2e_test.cc',
1338       'browser/sync/test/integration/single_client_extensions_sync_test.cc',
1339       'browser/sync/test/integration/single_client_passwords_sync_test.cc',
1340       'browser/sync/test/integration/single_client_preferences_sync_test.cc',
1341       'browser/sync/test/integration/single_client_search_engines_sync_test.cc',
1342       'browser/sync/test/integration/single_client_sessions_sync_test.cc',
1343       'browser/sync/test/integration/single_client_supervised_user_settings_sync_test.cc',
1344       'browser/sync/test/integration/single_client_themes_sync_test.cc',
1345       'browser/sync/test/integration/single_client_typed_urls_sync_test.cc',
1346       'browser/sync/test/integration/single_client_wallet_sync_test.cc',
1347       'browser/sync/test/integration/single_client_wifi_credentials_sync_test.cc',
1348       'browser/sync/test/integration/sync_auth_test.cc',
1349       'browser/sync/test/integration/sync_errors_test.cc',
1350       'browser/sync/test/integration/sync_exponential_backoff_test.cc',
1351       'browser/sync/test/integration/two_client_app_list_sync_test.cc',
1352       'browser/sync/test/integration/two_client_apps_sync_test.cc',
1353       'browser/sync/test/integration/two_client_autofill_sync_test.cc',
1354       'browser/sync/test/integration/two_client_bookmarks_sync_test.cc',
1355       'browser/sync/test/integration/two_client_dictionary_sync_test.cc',
1356       'browser/sync/test/integration/two_client_e2e_test.cc',
1357       'browser/sync/test/integration/two_client_extension_settings_and_app_settings_sync_test.cc',
1358       'browser/sync/test/integration/two_client_extensions_sync_test.cc',
1359       'browser/sync/test/integration/two_client_passwords_sync_test.cc',
1360       'browser/sync/test/integration/two_client_preferences_sync_test.cc',
1361       'browser/sync/test/integration/two_client_search_engines_sync_test.cc',
1362       'browser/sync/test/integration/two_client_sessions_sync_test.cc',
1363       'browser/sync/test/integration/two_client_themes_sync_test.cc',
1364       'browser/sync/test/integration/two_client_typed_urls_sync_test.cc',
1365       'browser/sync/test/integration/two_client_wifi_credentials_sync_test.cc',
1366       'test/base/browser_tests_main.cc',
1367       'test/data/resource.rc',
1368     ],
1369     'test_support_sync_integration_sources': [
1370       'browser/sync/test/integration/apps_helper.cc',
1371       'browser/sync/test/integration/apps_helper.h',
1372       'browser/sync/test/integration/autofill_helper.cc',
1373       'browser/sync/test/integration/autofill_helper.h',
1374       'browser/sync/test/integration/bookmarks_helper.cc',
1375       'browser/sync/test/integration/bookmarks_helper.h',
1376       'browser/sync/test/integration/dictionary_helper.cc',
1377       'browser/sync/test/integration/dictionary_helper.h',
1378       'browser/sync/test/integration/dictionary_load_observer.cc',
1379       'browser/sync/test/integration/dictionary_load_observer.h',
1380       'browser/sync/test/integration/extension_settings_helper.cc',
1381       'browser/sync/test/integration/extension_settings_helper.h',
1382       'browser/sync/test/integration/extensions_helper.cc',
1383       'browser/sync/test/integration/extensions_helper.h',
1384       'browser/sync/test/integration/fake_server_invalidation_service.cc',
1385       'browser/sync/test/integration/fake_server_invalidation_service.h',
1386       'browser/sync/test/integration/migration_waiter.cc',
1387       'browser/sync/test/integration/migration_waiter.h',
1388       'browser/sync/test/integration/migration_watcher.cc',
1389       'browser/sync/test/integration/migration_watcher.h',
1390       'browser/sync/test/integration/multi_client_status_change_checker.cc',
1391       'browser/sync/test/integration/multi_client_status_change_checker.h',
1392       'browser/sync/test/integration/p2p_invalidation_forwarder.cc',
1393       'browser/sync/test/integration/p2p_invalidation_forwarder.h',
1394       'browser/sync/test/integration/p2p_sync_refresher.cc',
1395       'browser/sync/test/integration/p2p_sync_refresher.h',
1396       'browser/sync/test/integration/passwords_helper.cc',
1397       'browser/sync/test/integration/passwords_helper.h',
1398       'browser/sync/test/integration/preferences_helper.cc',
1399       'browser/sync/test/integration/preferences_helper.h',
1400       'browser/sync/test/integration/profile_sync_service_harness.cc',
1401       'browser/sync/test/integration/profile_sync_service_harness.h',
1402       'browser/sync/test/integration/quiesce_status_change_checker.cc',
1403       'browser/sync/test/integration/quiesce_status_change_checker.h',
1404       'browser/sync/test/integration/retry_verifier.cc',
1405       'browser/sync/test/integration/retry_verifier.h',
1406       'browser/sync/test/integration/search_engines_helper.cc',
1407       'browser/sync/test/integration/search_engines_helper.h',
1408       'browser/sync/test/integration/sessions_helper.cc',
1409       'browser/sync/test/integration/sessions_helper.h',
1410       'browser/sync/test/integration/single_client_status_change_checker.cc',
1411       'browser/sync/test/integration/single_client_status_change_checker.h',
1412       'browser/sync/test/integration/status_change_checker.cc',
1413       'browser/sync/test/integration/status_change_checker.h',
1414       'browser/sync/test/integration/sync_app_helper.cc',
1415       'browser/sync/test/integration/sync_app_helper.h',
1416       'browser/sync/test/integration/sync_app_list_helper.cc',
1417       'browser/sync/test/integration/sync_app_list_helper.h',
1418       'browser/sync/test/integration/sync_datatype_helper.cc',
1419       'browser/sync/test/integration/sync_datatype_helper.h',
1420       'browser/sync/test/integration/sync_extension_helper.cc',
1421       'browser/sync/test/integration/sync_extension_helper.h',
1422       'browser/sync/test/integration/sync_extension_installer.cc',
1423       'browser/sync/test/integration/sync_extension_installer.h',
1424       'browser/sync/test/integration/sync_integration_test_util.cc',
1425       'browser/sync/test/integration/sync_integration_test_util.h',
1426       'browser/sync/test/integration/sync_test.cc',
1427       'browser/sync/test/integration/sync_test.h',
1428       'browser/sync/test/integration/themes_helper.cc',
1429       'browser/sync/test/integration/themes_helper.h',
1430       'browser/sync/test/integration/typed_urls_helper.cc',
1431       'browser/sync/test/integration/typed_urls_helper.h',
1432       'browser/sync/test/integration/updated_progress_marker_checker.cc',
1433       'browser/sync/test/integration/updated_progress_marker_checker.h',
1434       'browser/sync/test/integration/wifi_credentials_helper.cc',
1435       'browser/sync/test/integration/wifi_credentials_helper.h',
1436       'browser/sync/test/integration/wifi_credentials_helper_chromeos.cc',
1437       'browser/sync/test/integration/wifi_credentials_helper_chromeos.h',
1438     ],
1439     'sync_performance_tests_sources': [
1440       'app/chrome_command_ids.h',
1441       'app/chrome_dll.rc',
1442       'app/chrome_dll_resource.h',
1443       'app/chrome_version.rc.version',
1444       'browser/sync/test/integration/performance/autofill_sync_perf_test.cc',
1445       'browser/sync/test/integration/performance/bookmarks_sync_perf_test.cc',
1446       'browser/sync/test/integration/performance/dictionary_sync_perf_test.cc',
1447       'browser/sync/test/integration/performance/extensions_sync_perf_test.cc',
1448       'browser/sync/test/integration/performance/passwords_sync_perf_test.cc',
1449       'browser/sync/test/integration/performance/sessions_sync_perf_test.cc',
1450       'browser/sync/test/integration/performance/sync_timing_helper.cc',
1451       'browser/sync/test/integration/performance/sync_timing_helper.h',
1452       'browser/sync/test/integration/performance/typed_urls_sync_perf_test.cc',
1453       'test/base/browser_perf_tests_main.cc',
1454       'test/data/resource.rc',
1455     ],
1456   },
1457   'includes': [
1458     'js_unittest_vars.gypi',
1459   ],
1460   'targets': [
1461     {
1462       # GN version: //chrome/test:interactive_ui_tests
1463       'target_name': 'interactive_ui_tests',
1464       'type': 'executable',
1465       'dependencies': [
1466         'browser',
1467         'chrome_resources.gyp:chrome_resources',
1468         'chrome_resources.gyp:chrome_strings',
1469         'chrome_resources.gyp:packed_extra_resources',
1470         'chrome_resources.gyp:packed_resources',
1471         'debugger',
1472         'renderer',
1473         'test_support_common',
1474         '../content/app/resources/content_resources.gyp:content_resources',
1475         '../crypto/crypto.gyp:crypto_test_support',
1476         '../google_apis/google_apis.gyp:google_apis_test_support',
1477         '../net/net.gyp:net',
1478         '../net/net.gyp:net_resources',
1479         '../net/net.gyp:net_test_support',
1480         '../ppapi/ppapi_internal.gyp:ppapi_tests',
1481         '../skia/skia.gyp:skia',
1482         '../sync/sync.gyp:sync',
1483         '../testing/gmock.gyp:gmock',
1484         '../testing/gtest.gyp:gtest',
1485         '../third_party/hunspell/hunspell.gyp:hunspell',
1486         '../third_party/icu/icu.gyp:icui18n',
1487         '../third_party/icu/icu.gyp:icuuc',
1488         '../third_party/libpng/libpng.gyp:libpng',
1489         '../third_party/npapi/npapi.gyp:npapi',
1490         '../third_party/zlib/zlib.gyp:zlib',
1491         '../ui/base/ui_base.gyp:ui_base_test_support',
1492         '../ui/resources/ui_resources.gyp:ui_test_pak',
1493         '../ui/web_dialogs/web_dialogs.gyp:web_dialogs_test_support',
1494         # Runtime dependencies
1495         '../third_party/mesa/mesa.gyp:osmesa',
1496       ],
1497       'include_dirs': [
1498         '..',
1499       ],
1500       'defines': [
1501         'HAS_OUT_OF_PROC_TEST_RUNNER',
1502       ],
1503       'sources': [
1504         '<@(chrome_interactive_ui_test_sources)',
1505       ],
1506       'conditions': [
1507         [ 'cld_version==0 or cld_version==2', {
1508           'dependencies': [
1509             # Interactive tests should use whatever CLD2 data access mode that
1510             # the application embedder is using.
1511             '<(DEPTH)/third_party/cld_2/cld_2.gyp:cld2_platform_impl', ],
1512         }],
1513         ['use_x11==1', {
1514           'dependencies': [
1515             '../build/linux/system.gyp:xtst',
1516             '../tools/xdisplaycheck/xdisplaycheck.gyp:xdisplaycheck',
1517           ],
1518         }],
1519         ['OS=="linux"', {
1520           # TODO(gbillock): aura linux does not support the automation for
1521           # SendMouseMoveNotifyWhenDone
1522           'sources!': [
1523             'browser/ui/views/toolbar/toolbar_button_test.cc',
1524           ],
1525         }],
1526         ['OS=="linux"', {
1527           'dependencies': [
1528             '../build/linux/system.gyp:ssl',
1529           ],
1530         }, {  # Non-Linux platforms (Linux includes ChromeOS here).
1531           'sources': [
1532             '<@(chrome_interactive_ui_test_non_linux_and_chromeos_sources)',
1533           ],
1534         }],
1535         ['OS=="linux" and chromeos==0', {
1536           'sources!': [
1537             # TODO(port): This times out. Attempts have been made to fix the
1538             # individual failures, but each time I disable a test from these
1539             # suites, it seems like one or another starts timing out too.
1541             # Note: list duplicated in GN build.
1542             'browser/ui/views/keyboard_access_browsertest.cc',
1543           ],
1544         }, {  # Everything but desktop Linux.
1545           'sources': [ '<@(chrome_interactive_ui_test_non_desktop_linux_sources)' ],
1546         }],
1547         ['use_ash==1', {
1548           'sources': [ '<@(chrome_interactive_ui_test_ash_sources)' ],
1549           'dependencies': [
1550             '../ash/ash.gyp:ash_test_support',
1551           ],
1552         }],
1553         ['OS=="mac"', {
1554           'dependencies': [
1555             'chrome'
1556           ],
1557           # See comment about the same line in chrome/chrome_tests.gypi.
1558           'xcode_settings': {'OTHER_LDFLAGS': ['-Wl,-ObjC']},
1559         }, {  # Non-Mac.
1560           'sources': [ '<@(chrome_interactive_ui_test_views_non_mac_sources)' ],
1561         }],
1562         ['notifications == 1', {
1563           # Common notifications tests.
1564           'sources': [
1565             '<@(chrome_interactive_ui_test_notifications_sources)',
1566           ],
1567           'conditions': [
1568             ['chromeos == 1', {
1569               'sources': [
1570                 'browser/notifications/login_state_notification_blocker_chromeos_browsertest.cc',
1571               ],
1572             }, {
1573               # Non-ChromeOS notifications tests (ChromeOS does not use
1574               # cross-platform panels).
1575               'sources': [
1576                 # Note: List duplicated in GN build.
1577                 'browser/notifications/notification_browsertest.cc',
1578                 'browser/notifications/platform_notification_service_browsertest.cc',
1579               ],
1580             }],
1581             ['OS=="android"', {
1582               'sources!': [
1583                 # Note: List duplicated in GN build.
1585                 # Android does not use the message center-based Notification system.
1586                 'browser/notifications/message_center_notifications_browsertest.cc',
1588                 # TODO(peter): Enable the Notification browser tests.
1589                 'browser/notifications/notification_browsertest.cc',
1590                 'browser/notifications/platform_notification_service_browsertest.cc',
1591               ]
1592             }],
1593           ],
1594         }],
1595         ['toolkit_views==1', {
1596           'sources': [ '<@(chrome_interactive_ui_test_views_sources)' ],
1597           'dependencies': [
1598             '../ui/views/controls/webview/webview_tests.gyp:webview_test_support',
1599             '../ui/views/views.gyp:views',
1600             '../ui/views/views.gyp:views_test_support',
1601           ],
1602         }],
1603         ['use_aura==0 or chromeos==1', {
1604           'sources!': [
1605             '../ui/views/corewm/desktop_capture_controller_unittest.cc',
1606           ],
1607         }],
1608         ['chromeos==1', {
1609           'dependencies': [
1610             '../ash/ash_resources.gyp:ash_resources',
1611             '../chromeos/chromeos.gyp:chromeos',
1612           ],
1613           'conditions': [
1614             ['disable_nacl==0 and disable_nacl_untrusted==0', {
1615               'dependencies': [
1616                 '../native_client/src/trusted/service_runtime/linux/nacl_bootstrap.gyp:nacl_helper_bootstrap',
1617                 '../components/nacl.gyp:nacl_helper',
1618                 '../components/nacl_nonsfi.gyp:nacl_helper_nonsfi',
1619               ],
1620             }],
1621           ],
1622           'sources': [
1623             '<@(chrome_interactive_ui_test_chromeos_sources)',
1624           ],
1625           'sources!': [
1626             # Note: List duplicated in GN build.
1627             '../ui/views/widget/desktop_aura/desktop_window_tree_host_x11_interactive_uitest.cc',
1628             '../ui/views/widget/desktop_aura/x11_topmost_window_finder_interactive_uitest.cc',
1630             # Use only the _chromeos version on ChromeOS.
1631             'test/base/view_event_test_platform_part_ash.cc',
1632           ],
1633         }, {  # Non-ChromeOS.
1634           # ChromeOS doesn't use panels, everybody else does.
1635           'sources': [ '<@(chrome_interactive_ui_test_panels_sources)' ],
1636           'conditions': [
1637             # TODO(tapted): Include on mac when views panels are ported.
1638             [ 'toolkit_views==1 and OS != "mac"', {
1639               'sources': [
1640                 '<@(chrome_interactive_ui_test_panels_views_sources)',
1641               ],
1642             }],
1643           ],
1644         }],
1645         ['chromeos==1 and branding=="Chrome"', {
1646           'sources!': [
1647             # These tests are failing on official cros bots. crbug.com/431450.
1648             # Note: list duplicated in GN build.
1649             'browser/ui/views/bookmarks/bookmark_bar_view_test.cc',
1650           ],
1651         }],
1652         ['OS=="win"', {
1653           'include_dirs': [
1654             '../third_party/wtl/include',
1655           ],
1656           'dependencies': [
1657             '../third_party/isimpledom/isimpledom.gyp:isimpledom',
1658             '../ui/resources/ui_resources.gyp:ui_resources',
1659             'chrome.gyp:chrome_version_resources',
1660           ],
1661           'sources': [
1662             '<@(chrome_interactive_ui_test_win_sources)',
1664             # TODO:  It would be nice to have these pulled in
1665             # automatically from direct_dependent_settings in
1666             # their various targets (net.gyp:net_resources, etc.),
1667             # but that causes errors in other targets when
1668             # resulting .res files get referenced multiple times.
1669             '<(SHARED_INTERMEDIATE_DIR)/chrome_version/other_version.rc',
1670             '<(SHARED_INTERMEDIATE_DIR)/ui/resources/ui_unscaled_resources.rc',
1671           ],
1672           'conditions': [
1673             ['win_use_allocator_shim==1', {
1674               'dependencies': [
1675                  '../base/allocator/allocator.gyp:allocator',
1676               ],
1677             }],
1678           ],
1679           'msvs_settings': {
1680             'VCLinkerTool': {
1681               'conditions': [
1682                 ['incremental_chrome_dll==1', {
1683                   'UseLibraryDependencyInputs': "true",
1684                 }],
1685               ],
1686             },
1687           },
1688           # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
1689           'msvs_disabled_warnings': [ 4267, ],
1690         }],  # OS != "win"
1691         ['enable_app_list==1', {
1692           'sources': [ '<@(chrome_interactive_ui_test_app_list_sources)' ],
1693         }],
1694       ],  # conditions
1695     },
1696     {
1697       # GN version: //chrome/test/chromedriver:automation_client_lib
1698       'target_name': 'automation_client_lib',
1699       'type': 'static_library',
1700       'hard_dependency': 1,
1701       'dependencies': [
1702         '../base/base.gyp:base',
1703         '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
1704         '../net/net.gyp:net',
1705         '../third_party/zlib/zlib.gyp:minizip',
1706         '../third_party/zlib/zlib.gyp:zlib',
1707         '../ui/accessibility/accessibility.gyp:ax_gen',
1708         '../ui/base/ui_base.gyp:ui_base',
1709         '../ui/gfx/gfx.gyp:gfx',
1710         '../ui/gfx/gfx.gyp:gfx_geometry',
1711         '../url/url.gyp:url_lib',
1712       ],
1713       'include_dirs': [
1714         '..',
1715         '<(SHARED_INTERMEDIATE_DIR)',
1716       ],
1717       'direct_dependent_settings': {
1718         'include_dirs': [
1719           '<(SHARED_INTERMEDIATE_DIR)',
1720         ],
1721       },
1722       'sources': [
1723         '<@(chrome_automation_client_lib_sources)',
1724         '<(SHARED_INTERMEDIATE_DIR)/chrome/test/chromedriver/chrome/embedded_automation_extension.cc',
1725         '<(SHARED_INTERMEDIATE_DIR)/chrome/test/chromedriver/chrome/embedded_automation_extension.h',
1726         '<(SHARED_INTERMEDIATE_DIR)/chrome/test/chromedriver/chrome/js.cc',
1727         '<(SHARED_INTERMEDIATE_DIR)/chrome/test/chromedriver/chrome/js.h',
1728         '<(SHARED_INTERMEDIATE_DIR)/chrome/test/chromedriver/chrome/user_data_dir.cc',
1729         '<(SHARED_INTERMEDIATE_DIR)/chrome/test/chromedriver/chrome/user_data_dir.h',
1730       ],
1731       'actions': [
1732         {
1733           # GN version: //chrome/test/chromedriver:embed_js_in_cpp
1734           'action_name': 'embed_js_in_cpp',
1735           'inputs': [
1736             'test/chromedriver/cpp_source.py',
1737             'test/chromedriver/embed_js_in_cpp.py',
1738             'test/chromedriver/js/add_cookie.js',
1739             'test/chromedriver/js/call_function.js',
1740             'test/chromedriver/js/execute_async_script.js',
1741             'test/chromedriver/js/focus.js',
1742             'test/chromedriver/js/get_element_region.js',
1743             'test/chromedriver/js/is_option_element_toggleable.js',
1744           ],
1745           'outputs': [
1746             '<(SHARED_INTERMEDIATE_DIR)/chrome/test/chromedriver/chrome/js.cc',
1747             '<(SHARED_INTERMEDIATE_DIR)/chrome/test/chromedriver/chrome/js.h',
1748           ],
1749           'action': [ 'python',
1750                       'test/chromedriver/embed_js_in_cpp.py',
1751                       '--directory',
1752                       '<(SHARED_INTERMEDIATE_DIR)/chrome/test/chromedriver/chrome',
1753                       'test/chromedriver/js/add_cookie.js',
1754                       'test/chromedriver/js/call_function.js',
1755                       'test/chromedriver/js/execute_async_script.js',
1756                       'test/chromedriver/js/focus.js',
1757                       'test/chromedriver/js/get_element_region.js',
1758                       'test/chromedriver/js/is_option_element_toggleable.js',
1759           ],
1760           'message': 'Generating sources for embedding js in chromedriver',
1761         },
1762         {
1763           # GN version: //chrome/test/chromedriver:embed_user_data_dir_in_cpp
1764           'action_name': 'embed_user_data_dir_in_cpp',
1765           'inputs': [
1766             'test/chromedriver/cpp_source.py',
1767             'test/chromedriver/embed_user_data_dir_in_cpp.py',
1768             'test/chromedriver/chrome/preferences.txt',
1769             'test/chromedriver/chrome/local_state.txt',
1770           ],
1771           'outputs': [
1772             '<(SHARED_INTERMEDIATE_DIR)/chrome/test/chromedriver/chrome/user_data_dir.cc',
1773             '<(SHARED_INTERMEDIATE_DIR)/chrome/test/chromedriver/chrome/user_data_dir.h',
1774           ],
1775           'action': [ 'python',
1776                       'test/chromedriver/embed_user_data_dir_in_cpp.py',
1777                       '--directory',
1778                       '<(SHARED_INTERMEDIATE_DIR)/chrome/test/chromedriver/chrome',
1779                       'test/chromedriver/chrome/preferences.txt',
1780                       'test/chromedriver/chrome/local_state.txt',
1781           ],
1782           'message': 'Generating sources for embedding user data dir in chromedriver',
1783         },
1784         {
1785           # GN version: //chrome/test/chromedriver:embed_extension_in_cpp
1786           'action_name': 'embed_extension_in_cpp',
1787           'inputs': [
1788             'test/chromedriver/cpp_source.py',
1789             'test/chromedriver/embed_extension_in_cpp.py',
1790             'test/chromedriver/extension/background.js',
1791             'test/chromedriver/extension/manifest.json',
1792           ],
1793           'outputs': [
1794             '<(SHARED_INTERMEDIATE_DIR)/chrome/test/chromedriver/chrome/embedded_automation_extension.cc',
1795             '<(SHARED_INTERMEDIATE_DIR)/chrome/test/chromedriver/chrome/embedded_automation_extension.h',
1796           ],
1797           'action': [ 'python',
1798                       'test/chromedriver/embed_extension_in_cpp.py',
1799                       '--directory',
1800                       '<(SHARED_INTERMEDIATE_DIR)/chrome/test/chromedriver/chrome',
1801                       'test/chromedriver/extension/background.js',
1802                       'test/chromedriver/extension/manifest.json',
1803           ],
1804           'message': 'Generating sources for embedding automation extension',
1805         },
1806       ],
1807       # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
1808       'msvs_disabled_warnings': [ 4267, ],
1809     },
1810     {
1811       # GN version: //chrome/test/chromedriver:lib
1812       'target_name': 'chromedriver_lib',
1813       'type': 'static_library',
1814       'hard_dependency': 1,
1815       'dependencies': [
1816         'automation_client_lib',
1817         '../base/base.gyp:base',
1818         '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
1819         '../crypto/crypto.gyp:crypto',
1820         '../net/net.gyp:http_server',
1821         '../net/net.gyp:net',
1822         '../third_party/zlib/google/zip.gyp:zip',
1823         '../ui/base/ui_base.gyp:ui_base',
1824         '../ui/events/events.gyp:events_base',
1825         '../ui/gfx/gfx.gyp:gfx',
1826         '../ui/gfx/gfx.gyp:gfx_geometry',
1827       ],
1828       'include_dirs': [
1829         '..',
1830       ],
1831       'sources': [
1832         '<@(chrome_driver_lib_sources)',
1833         '<(SHARED_INTERMEDIATE_DIR)/chrome/test/chromedriver/version.cc',
1834         '<(SHARED_INTERMEDIATE_DIR)/chrome/test/chromedriver/version.h',
1835       ],
1836       'actions': [
1837         {
1838           # GN version: //chrome/test/chromedriver:embed_version_in_cpp
1839           'action_name': 'embed_version_in_cpp',
1840           'inputs': [
1841             'test/chromedriver/cpp_source.py',
1842             'test/chromedriver/embed_version_in_cpp.py',
1843             'test/chromedriver/VERSION',
1844           ],
1845           'outputs': [
1846             '<(SHARED_INTERMEDIATE_DIR)/chrome/test/chromedriver/version.cc',
1847             '<(SHARED_INTERMEDIATE_DIR)/chrome/test/chromedriver/version.h',
1848           ],
1849           'action': [ 'python',
1850                       'test/chromedriver/embed_version_in_cpp.py',
1851                       '--version-file',
1852                       'test/chromedriver/VERSION',
1853                       '--directory',
1854                       '<(SHARED_INTERMEDIATE_DIR)/chrome/test/chromedriver',
1855           ],
1856           'message': 'Generating version info',
1857         },
1858       ],
1859       'direct_dependent_settings': {
1860         'include_dirs': [
1861           '<(SHARED_INTERMEDIATE_DIR)',
1862         ],
1863       },
1864       'conditions': [
1865         ['use_x11==1', {
1866           'dependencies': [
1867             '../build/linux/system.gyp:x11',
1868             '../ui/gfx/x/gfx_x11.gyp:gfx_x11',
1869           ]
1870         }]
1871       ],
1872       # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
1873       'msvs_disabled_warnings': [ 4267, ],
1874     },
1875     {
1876       # GN version: //chrome/test/chromedriver
1877       'target_name': 'chromedriver',
1878       'type': 'executable',
1879       'dependencies': [
1880         'chromedriver_lib',
1881       ],
1882       'include_dirs': [
1883         '..',
1884       ],
1885       'sources': [
1886         'test/chromedriver/server/chromedriver_server.cc',
1887       ],
1888       # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
1889       'msvs_disabled_warnings': [ 4267, ],
1890     },
1891     {
1892       # GN version: //chrome/test/chromedriver:chromedriver_unittests
1893       'target_name': 'chromedriver_unittests',
1894       'type': 'executable',
1895       'dependencies': [
1896         'chromedriver_lib',
1897         '../base/base.gyp:base',
1898         '../base/base.gyp:run_all_unittests',
1899         '../net/net.gyp:http_server',
1900         '../net/net.gyp:net',
1901         '../testing/gtest.gyp:gtest',
1902         '../ui/base/ui_base.gyp:ui_base',
1903         '../ui/gfx/gfx.gyp:gfx',
1904         '../ui/gfx/gfx.gyp:gfx_geometry',
1905       ],
1906       'include_dirs': [
1907         '..,'
1908       ],
1909       'sources': [
1910         '<@(chrome_driver_unittests_sources)',
1911       ],
1912       # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
1913       'msvs_disabled_warnings': [ 4267, ],
1914     },
1915     # ChromeDriver tests that aren't run on the main buildbot. Available
1916     # as an optional test type on trybots.
1917     {
1918       # GN version: //chrome/test/chromedriver:chromedriver_tests
1919       'target_name': 'chromedriver_tests',
1920       'type': 'executable',
1921       'dependencies': [
1922         'chromedriver_lib',
1923         '../base/base.gyp:base',
1924         '../base/base.gyp:run_all_unittests',
1925         '../net/net.gyp:http_server',
1926         '../net/net.gyp:net',
1927         '../net/net.gyp:net_test_support',
1928         '../testing/gtest.gyp:gtest',
1929         '../url/url.gyp:url_lib',
1930       ],
1931       'include_dirs': [
1932         '..,'
1933       ],
1934       'sources': [
1935         '<@(chrome_driver_tests_sources)',
1936       ],
1937       # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
1938       'msvs_disabled_warnings': [ 4267, ],
1939     },
1940     {
1941       # Executable that runs each browser test in a new process.
1942       'target_name': 'browser_tests',
1943       'type': 'executable',
1944       'dependencies': [
1945         'browser',
1946         'chrome_resources.gyp:browser_tests_pak',
1947         'chrome_resources.gyp:chrome_resources',
1948         'chrome_resources.gyp:chrome_strings',
1949         'chrome_resources.gyp:packed_extra_resources',
1950         'chrome_resources.gyp:packed_resources',
1951         'common/extensions/api/api.gyp:chrome_api',
1952         'renderer',
1953         'test_support_common',
1954         'test_support_sync_integration',
1955         '../base/base.gyp:base',
1956         '../base/base.gyp:base_i18n',
1957         '../base/base.gyp:test_support_base',
1958         '../components/components.gyp:autofill_content_risk_proto',
1959         '../components/components.gyp:autofill_content_test_support',
1960         '../components/components.gyp:captive_portal_test_support',
1961         '../components/components.gyp:dom_distiller_content',
1962         '../components/components.gyp:dom_distiller_test_support',
1963         '../components/components.gyp:translate_core_common',
1964         '../components/components_resources.gyp:components_resources',
1965         '../components/components_strings.gyp:components_strings',
1966         '../crypto/crypto.gyp:crypto_test_support',
1967         '../device/bluetooth/bluetooth.gyp:device_bluetooth_mocks',
1968         '../device/serial/serial.gyp:device_serial_test_util',
1969         '../extensions/common/api/api.gyp:extensions_api',
1970         '../google_apis/google_apis.gyp:google_apis_test_support',
1971         '../media/cast/cast.gyp:cast_test_utility',
1972         '../media/media.gyp:media',
1973         '../net/net.gyp:net',
1974         '../net/net.gyp:net_test_support',
1975         '../sdch/sdch.gyp:sdch',
1976         '../skia/skia.gyp:skia',
1977         '../sync/sync.gyp:sync',
1978         '../sync/sync.gyp:test_support_sync_api',
1979         '../testing/gmock.gyp:gmock',
1980         '../testing/gtest.gyp:gtest',
1981         '../testing/perf/perf_test.gyp:*',
1982         '../third_party/cacheinvalidation/cacheinvalidation.gyp:cacheinvalidation',
1983         '../third_party/icu/icu.gyp:icui18n',
1984         '../third_party/icu/icu.gyp:icuuc',
1985         '../third_party/leveldatabase/leveldatabase.gyp:leveldatabase',
1986         '../third_party/libaddressinput/libaddressinput.gyp:libaddressinput',
1987         '../third_party/libjingle/libjingle.gyp:peerconnection_server',
1988         '../third_party/safe_browsing/safe_browsing.gyp:safe_browsing',
1989         '../third_party/widevine/cdm/widevine_cdm.gyp:widevine_cdm_version_h',
1990         '../ui/accessibility/accessibility.gyp:accessibility_test_support',
1991         '../ui/compositor/compositor.gyp:compositor_test_support',
1992         '../ui/resources/ui_resources.gyp:ui_resources',
1993         '../ui/web_dialogs/web_dialogs.gyp:web_dialogs_test_support',
1994         '../v8/tools/gyp/v8.gyp:v8',
1995         # Runtime dependencies
1996         '../ppapi/ppapi_internal.gyp:ppapi_tests',
1997         '../remoting/remoting.gyp:remoting_browser_test_resources',
1998         '../remoting/remoting.gyp:remoting_webapp_unittests',
1999         '../third_party/mesa/mesa.gyp:osmesa',
2000         '../third_party/widevine/cdm/widevine_cdm.gyp:widevine_test_license_server',
2001       ],
2002       'include_dirs': [
2003         '..',
2004         '<(SHARED_INTERMEDIATE_DIR)',
2005       ],
2006       'defines': [
2007         'HAS_OUT_OF_PROC_TEST_RUNNER',
2008       ],
2009       'sources': [
2010         '<@(chrome_browser_tests_sources)',
2011         '<@(chrome_browser_tests_webui_js_sources)',
2012         '<@(chrome_browser_extensions_test_support_sources)',
2013         'test/base/browser_tests_main.cc',
2014       ],
2015       'rules': [
2016         {
2017           'rule_name': 'js2webui',
2018           'extension': 'js',
2019           'msvs_external_rule': 1,
2020           'variables': {
2021             'conditions': [
2022               ['v8_use_external_startup_data==1', {
2023                 'external_v8': 'y',
2024               }, {
2025                 'external_v8': 'n',
2026               }],
2027             ],
2028           },
2029           'inputs': [
2030             '<(gypv8sh)',
2031             '<(PRODUCT_DIR)/d8<(EXECUTABLE_SUFFIX)',
2032             '<(mock_js)',
2033             '<(test_api_js)',
2034             '<(js2gtest)',
2035           ],
2036           'outputs': [
2037             '<(INTERMEDIATE_DIR)/chrome/<(RULE_INPUT_DIRNAME)/<(RULE_INPUT_ROOT)-gen.cc',
2038             '<(PRODUCT_DIR)/test_data/chrome/<(RULE_INPUT_DIRNAME)/<(RULE_INPUT_ROOT).js',
2039           ],
2040           'process_outputs_as_sources': 1,
2041           'action': [
2042             'python',
2043             '<@(_inputs)',
2044             '--external', '<(external_v8)',
2045             'webui',
2046             '<(RULE_INPUT_PATH)',
2047             'chrome/<(RULE_INPUT_DIRNAME)/<(RULE_INPUT_ROOT).js',
2048             '<@(_outputs)',
2049           ],
2050         },
2051       ],
2052       'msvs_settings': {
2053         'VCLinkerTool': {
2054           'conditions': [
2055             ['incremental_chrome_dll==1', {
2056               'UseLibraryDependencyInputs': "true",
2057             }],
2058           ],
2059         },
2060       },
2061       'conditions': [
2062         [ 'cld_version==0 or cld_version==2', {
2063           'dependencies': [
2064             # Because the browser_tests use translate, they need CLD data.
2065             '<(DEPTH)/third_party/cld_2/cld_2.gyp:cld2_platform_impl', ],
2066         }],
2067         ['enable_one_click_signin==0', {
2068           'sources!': [
2069             'browser/ui/sync/one_click_signin_bubble_links_delegate_browsertest.cc',
2070           ]
2071         }],
2072         ['enable_autofill_dialog==0', {
2073           'sources!': [
2074             'browser/ui/autofill/autofill_dialog_controller_browsertest.cc',
2075           ]
2076         }],
2077         ['disable_nacl==0', {
2078           'sources':[
2079             'browser/extensions/extension_nacl_browsertest.cc',
2080             'browser/nacl_host/test/gdb_debug_stub_browsertest.cc',
2081           ],
2082           'conditions': [
2083             ['disable_nacl_untrusted==0', {
2084               'sources': [
2085                 'test/nacl/nacl_browsertest.cc',
2086                 'test/nacl/nacl_browsertest_uma.cc',
2087                 'test/nacl/nacl_browsertest_util.cc',
2088                 'test/nacl/nacl_browsertest_util.h',
2089                 'test/nacl/pnacl_header_test.cc',
2090                 'test/nacl/pnacl_header_test.h',
2091               ],
2092               'dependencies': [
2093                 'test/data/nacl/nacl_test_data.gyp:*',
2094                 '../ppapi/native_client/native_client.gyp:nacl_irt',
2095                 '../ppapi/ppapi_nacl.gyp:ppapi_nacl_tests',
2096                 '../ppapi/tests/extensions/extensions.gyp:ppapi_tests_extensions_background_keepalive',
2097                 '../ppapi/tests/extensions/extensions.gyp:ppapi_tests_extensions_media_galleries',
2098                 '../ppapi/tests/extensions/extensions.gyp:ppapi_tests_extensions_packaged_app',
2099                 '../ppapi/tests/extensions/extensions.gyp:ppapi_tests_extensions_socket_permissions',
2100                 '../ppapi/ppapi_tests_mojo.gyp:ppapi_tests_mojo',
2101               ],
2102               'conditions': [
2103                 ['chromeos==1', {
2104                   'sources': [
2105                     '../third_party/liblouis/nacl_wrapper/liblouis_wrapper_browsertest.cc',
2106                   ],
2107                   'dependencies': [
2108                     'browser_chromeos',
2109                     '../third_party/liblouis/liblouis_nacl.gyp:liblouis_test_data',
2110                   ],
2111                 }],
2112               ],
2113             }],
2114             ['OS=="win" or OS=="linux"', {
2115               'sources': [
2116                 'browser/nacl_host/test/nacl_gdb_browsertest.cc',
2117               ],
2118               'dependencies': [
2119                 'browser/nacl_host/test/mock_nacl_gdb.gyp:mock_nacl_gdb',
2120               ],
2121             }],
2122             ['OS=="win"', {
2123               # TODO(halyavin) NaCl on Windows can't open debug stub socket
2124               # in browser process as needed by this test.
2125               # See http://crbug.com/157312.
2126               'sources!': [
2127                 'browser/nacl_host/test/gdb_debug_stub_browsertest.cc',
2128               ],
2129               'dependencies': [
2130                 'chrome.gyp:chrome_nacl_win64',
2131               ],
2132             }],
2133             ['OS=="linux"', {
2134               'dependencies': [
2135                 '../native_client/src/trusted/service_runtime/linux/nacl_bootstrap.gyp:nacl_helper_bootstrap',
2136                 '../components/nacl.gyp:nacl_helper',
2137                 '../components/nacl_nonsfi.gyp:nacl_helper_nonsfi',
2138               ],
2139             }],
2140             ['chromeos==0', {
2141               'sources!': [
2142                 'test/data/chromeos/oobe_webui_browsertest.js',
2143               ],
2144             }],
2145           ],
2146         }],
2147         ['debug_devtools==1', {
2148           'defines': [
2149             'DEBUG_DEVTOOLS=1',
2150           ],
2151         }],
2152         ['use_ash==1', {
2153           'dependencies': [
2154             '../ash/ash.gyp:ash_test_support',
2155           ],
2156         }],
2157         ['use_aura==1 or toolkit_views==1', {
2158           'dependencies': [
2159             '../ui/events/events.gyp:events_test_support',
2160           ],
2161         }],
2162         ['chromeos == 1', {
2163           'sources': [ '<@(chrome_browser_tests_chromeos_sources)' ],
2164           'sources!': [
2165             '../apps/load_and_launch_browsertest.cc',
2166             'browser/printing/cloud_print/test/cloud_print_policy_browsertest.cc',
2167             'browser/printing/cloud_print/test/cloud_print_proxy_process_browsertest.cc',
2168             'browser/policy/policy_startup_browsertest.cc',
2169             # chromeos does not support profile list avatar menu
2170             'browser/profiles/profile_list_desktop_browsertest.cc',
2171             'browser/service_process/service_process_control_browsertest.cc',
2172             'browser/signin/signin_browsertest.cc',
2173             # bookmark sign in promo not used on chromeos
2174             'browser/ui/bookmarks/bookmark_bubble_sign_in_delegate_browsertest.cc',
2175             # chromeos does not use cross-platform panels
2176             'browser/ui/panels/panel_extension_browsertest.cc',
2177             # chromeos does not use the desktop user manager
2178             'browser/ui/webui/signin/user_manager_ui_browsertest.cc',
2179           ],
2180           'dependencies': [
2181             '../dbus/dbus.gyp:dbus_test_support',
2182             '../build/linux/system.gyp:dbus',
2183             '../ui/login/login.gyp:login_resources',
2184           ],
2185         }, {  # Non-ChromeOS
2186           'sources!': [
2187             'browser/extensions/api/enterprise_platform_keys/enterprise_platform_keys_apitest_nss.cc',
2188             'browser/extensions/api/platform_keys/platform_keys_apitest_nss.cc',
2189             'browser/extensions/api/terminal/terminal_private_apitest.cc',
2190             'browser/invalidation/profile_invalidation_provider_factory_browsertest.cc',
2191             'browser/net/nss_context_chromeos_browsertest.cc',
2192             'browser/ui/ash/keyboard_controller_browsertest.cc',
2193             'browser/ui/views/select_file_dialog_extension_browsertest.cc',
2194             'test/data/webui/certificate_viewer_dialog_test.js',
2195             'test/data/webui/certificate_viewer_ui_test-inl.h',
2196           ],
2197         }],
2198         ['configuration_policy==1', {
2199           'sources': [ '<@(chrome_browser_tests_policy_sources)' ],
2200         }],
2201         ['enable_web_speech==1', {
2202           'sources': [ '<@(chrome_browser_tests_speech_sources)' ],
2203         }],
2204         # TODO(nparker) enable tests for safe_browsing==2.
2205         ['safe_browsing==1', {
2206           'sources': [ '<@(chrome_browser_tests_full_safe_browsing_sources)' ],
2207         }],
2208         ['enable_captive_portal_detection==1', {
2209           'sources': [ 'browser/captive_portal/captive_portal_browsertest.cc' ],
2210         }],
2211         ['enable_webrtc==0', {
2212           'sources!': [
2213             'browser/extensions/api/webrtc_audio_private/webrtc_audio_private_browsertest.cc',
2214             'browser/extensions/api/webrtc_logging_private/webrtc_logging_private_apitest.cc',
2215             'browser/media/chrome_webrtc_browsertest.cc',
2216             'browser/media/chrome_webrtc_disable_encryption_flag_browsertest.cc',
2217             'browser/media/chrome_webrtc_getmediadevices_browsertest.cc',
2218          ],
2219         }],
2220         ['OS=="win"', {
2221           'sources': [
2222             '<(SHARED_INTERMEDIATE_DIR)/chrome_version/other_version.rc',
2223             '<(SHARED_INTERMEDIATE_DIR)/ui/resources/ui_unscaled_resources.rc',
2224           ],
2225           'include_dirs': [
2226             '<(DEPTH)/third_party/wtl/include',
2227           ],
2228           'dependencies': [
2229             'chrome_version_resources',
2230           ],
2231           'conditions': [
2232             ['win_use_allocator_shim==1', {
2233               'dependencies': [
2234                 '<(allocator_target)',
2235               ],
2236             }],
2237           ],
2238         }, { # else: OS != "win"
2239           'sources!': [
2240             'app/chrome_command_ids.h',
2241             'app/chrome_dll.rc',
2242             'app/chrome_dll_resource.h',
2243             'app/chrome_version.rc.version',
2244           ],
2245         }],
2246         ['chromeos==0 and use_aura==1', {
2247           'sources!': [
2248             # On Windows and Linux, we currently don't support enough of the
2249             # ash environment to run these unit tests.
2250             #
2251             # TODO: enable these on windows and linux.
2252             'browser/ui/ash/accelerator_commands_browsertest.cc',
2253             'browser/ui/ash/accelerator_controller_browsertest.cc',
2254             'browser/ui/ash/launcher/chrome_launcher_controller_browsertest.cc',
2255             'browser/ui/ash/launcher/launcher_favicon_loader_browsertest.cc',
2256             'browser/ui/ash/shelf_browsertest.cc',
2257             'browser/ui/views/frame/browser_non_client_frame_view_ash_browsertest.cc',
2258           ],
2259         }],
2260         ['OS=="linux"', {
2261           'dependencies': [
2262             '../build/linux/system.gyp:ssl',
2263           ],
2264         }],
2265         ['OS=="mac"', {
2266           # TODO(mark): We really want this for all non-static library
2267           # targets, but when we tried to pull it up to the common.gypi
2268           # level, it broke other things like the ui and startup tests. *shrug*
2269           'xcode_settings': {
2270             'OTHER_LDFLAGS': [
2271               '-Wl,-ObjC',
2272             ],
2273           },
2274           # Other platforms only need
2275           # chrome_resources.gyp:{packed_extra_resources,packed_resources},
2276           # and can build this target standalone much faster.
2277           'dependencies': [
2278             'app_mode_app_support',
2279             'chrome',
2280             '../components/components.gyp:breakpad_stubs',
2281             '../third_party/ocmock/ocmock.gyp:ocmock',
2282           ],
2283           'sources': [
2284             'browser/media_galleries/fileapi/iphoto_data_provider_browsertest.cc',
2285             'browser/renderer_host/chrome_render_widget_host_view_mac_history_swiper_browsertest.mm',
2286             'browser/spellchecker/spellcheck_message_filter_mac_browsertest.cc',
2287           ],
2288           'sources!': [
2289             # TODO(groby): This test depends on hunspell and we cannot run it on
2290             # Mac, which does not use hunspell by default.
2291             'browser/spellchecker/spellcheck_service_browsertest.cc',
2293             # TODO(rouslan): This test depends on the custom dictionary UI,
2294             # which is disabled on Mac.
2295             'browser/ui/webui/options/edit_dictionary_browsertest.js',
2296             # TODO(rouslan): This test depends on hunspell and we cannot run it
2297             # on Mac, which does use hunspell by default.
2298             'browser/ui/webui/options/language_options_dictionary_download_browsertest.js',
2299             # This test depends on GetCommandLineForRelaunch, which is not
2300             # available on Mac.
2301             'browser/printing/cloud_print/test/cloud_print_policy_browsertest.cc',
2302             # ProcessSingletonMac doesn't do anything.
2303             'browser/process_singleton_browsertest.cc',
2304             # single-process mode hangs on Mac sometimes because of multiple UI
2305             # message loops. See 306348
2306             'renderer/safe_browsing/phishing_classifier_browsertest.cc',
2307             'renderer/safe_browsing/phishing_classifier_delegate_browsertest.cc',
2308             'renderer/safe_browsing/phishing_dom_feature_extractor_browsertest.cc',
2309           ],
2310         }],  # OS=="mac"
2311         ['OS=="mac" or OS=="win"', {
2312           'sources': [
2313             'browser/extensions/api/networking_private/networking_private_apitest.cc',
2314             'browser/extensions/api/networking_private/networking_private_service_client_apitest.cc',
2315             'browser/media_galleries/fileapi/itunes_data_provider_browsertest.cc',
2316             'browser/media_galleries/fileapi/picasa_data_provider_browsertest.cc',
2317           ],
2318           'dependencies': [
2319             '../components/components.gyp:wifi_test_support',
2320           ],
2321         }],
2322         ['os_posix == 0 or chromeos == 1', {
2323           'sources!': [
2324             'common/time_format_browsertest.cc',
2325           ],
2326         }],
2327         ['OS=="android"', {
2328           'sources!': [
2329             'browser/policy/cloud/component_cloud_policy_browsertest.cc',
2330             'browser/prefs/pref_hash_browsertest.cc',
2331             'browser/ui/bookmarks/bookmark_bubble_sign_in_delegate_browsertest.cc',
2332           ],
2333         }],
2334         ['os_posix == 1 and OS != "mac" and OS != "android"', {
2335           'conditions': [
2336             ['use_allocator!="none"', {
2337               'dependencies': [
2338                 '../base/allocator/allocator.gyp:allocator',
2339               ],
2340             }],
2341           ],
2342         }],
2343         ['chromeos == 1', {
2344           'sources': [
2345             'browser/extensions/api/networking_private/networking_private_apitest.cc',
2346             'browser/extensions/api/networking_private/networking_private_chromeos_apitest.cc',
2347           ],
2348         }],
2349         ['toolkit_views==1', {
2350           'sources': [ '<@(chrome_browser_tests_views_sources)' ],
2351           'dependencies': [
2352             '../ui/views/views.gyp:views',
2353           ],
2354         }],
2355         ['toolkit_views==1 and OS!="mac"', {
2356           'sources': [ '<@(chrome_browser_tests_views_non_mac_sources)' ],
2357         }],
2358         ['OS!="android" and OS!="ios"', {
2359           'sources': [
2360             'browser/copresence/chrome_whispernet_client_browsertest.cc',
2361           ],
2362           'dependencies': [
2363             '../components/components.gyp:copresence',
2364             # build time dependency.
2365             '../v8/src/d8.gyp:d8#host',
2366           ],
2367         }],
2368         ['OS!="android" and OS!="ios" and OS!="linux"', {
2369           # npapi test plugin doesn't build on android or ios
2370           'dependencies': [
2371             # build time dependency.
2372             '../content/content_shell_and_tests.gyp:copy_npapi_test_plugin',
2373           ],
2374         }],
2375         ['enable_app_list==1', {
2376           'sources': [ '<@(chrome_browser_tests_app_list_sources)' ],
2377         }, {
2378           'sources!': [ 'browser/ui/webui/app_list/start_page_browsertest.js' ],
2379         }],
2380         ['enable_supervised_users==1', {
2381           'sources': [ '<@(chrome_browser_tests_supervised_user_sources)' ],
2382         }, {
2383           'sources!': [
2384             'browser/ui/webui/downloads_ui_supervised_browsertest.js',
2385           ],
2386         }],
2387         ['enable_pepper_cdms==1', {
2388           'dependencies': [
2389             # Runtime dependencies.
2390             '../third_party/widevine/cdm/widevine_cdm.gyp:widevinecdmadapter',
2391             '../media/media.gyp:clearkeycdmadapter',
2392           ],
2393         }],
2394         ['enable_print_preview==0', {
2395           'sources!': [
2396             'browser/extensions/api/cloud_print_private/cloud_print_private_apitest.cc',
2397             'browser/printing/cloud_print/test/cloud_print_policy_browsertest.cc',
2398             'browser/printing/cloud_print/test/cloud_print_proxy_process_browsertest.cc',
2399             'browser/printing/print_preview_dialog_controller_browsertest.cc',
2400             'browser/printing/print_preview_pdf_generated_browsertest.cc',
2401             'browser/service_process/service_process_control_browsertest.cc',
2402             'browser/ui/webui/print_preview/print_preview_ui_browsertest.cc',
2403             'test/data/webui/print_preview.cc',
2404             'test/data/webui/print_preview.h',
2405             'test/data/webui/print_preview.js',
2406           ],
2407         }],
2408         ['enable_mdns==1', {
2409           'sources' : [
2410             'browser/ui/webui/local_discovery/local_discovery_ui_browsertest.cc',
2411           ]
2412         }],
2413         [ 'use_brlapi==0', {
2414           'sources!': [
2415             'browser/extensions/api/braille_display_private/braille_display_private_apitest.cc'
2416             ]
2417         }],
2418         ['branding=="Chrome"', {
2419           'sources!': [
2420             # crbug.com/230471
2421             'test/data/webui/accessibility_audit_browsertest.js',
2422             # These tests depend on single process mode, which is disabled in
2423             # official builds.
2424             'renderer/safe_browsing/phishing_classifier_browsertest.cc',
2425             'renderer/safe_browsing/phishing_classifier_delegate_browsertest.cc',
2426             'renderer/safe_browsing/phishing_dom_feature_extractor_browsertest.cc',
2427           ]
2428         }],
2429         ['enable_autofill_dialog!=1 or OS=="android" or OS=="ios"', {
2430           'dependencies!': [
2431             '../third_party/libaddressinput/libaddressinput.gyp:libaddressinput',
2432           ],
2433         }],
2434         ['remoting==1', {
2435           'sources': [ '<@(chrome_browser_tests_remoting_sources)' ],
2436           'dependencies': [
2437             '../remoting/remoting.gyp:remoting_webapp',
2438           ]
2439         }],
2440         ['use_x11==1', {
2441           'dependencies': [
2442             '../tools/xdisplaycheck/xdisplaycheck.gyp:xdisplaycheck',
2443           ],
2444         }],
2445       ],  # conditions
2446     },  # target browser_tests
2447     {
2448       # Executable that runs each perf browser test in a new process.
2449       'target_name': 'performance_browser_tests',
2450       'type': 'executable',
2451       'dependencies': [
2452         'browser',
2453         'chrome_resources.gyp:chrome_resources',
2454         'chrome_resources.gyp:chrome_strings',
2455         'chrome_resources.gyp:packed_extra_resources',
2456         'chrome_resources.gyp:packed_resources',
2457         'renderer',
2458         'test_support_common',
2459         '../base/base.gyp:base',
2460         '../base/base.gyp:base_i18n',
2461         '../base/base.gyp:test_support_base',
2462         '../media/cast/cast.gyp:cast_test_utility',
2463         '../net/net.gyp:net',
2464         '../net/net.gyp:net_test_support',
2465         '../skia/skia.gyp:skia',
2466         '../sync/sync.gyp:sync',
2467         '../testing/gmock.gyp:gmock',
2468         '../testing/gtest.gyp:gtest',
2469         '../testing/perf/perf_test.gyp:*',
2470         '../third_party/icu/icu.gyp:icui18n',
2471         '../third_party/icu/icu.gyp:icuuc',
2472         '../third_party/leveldatabase/leveldatabase.gyp:leveldatabase',
2473         '../v8/tools/gyp/v8.gyp:v8',
2474         # Runtime dependencies
2475         '../third_party/mesa/mesa.gyp:osmesa',
2476       ],
2477       'include_dirs': [
2478         '..',
2479       ],
2480       'defines': [
2481         'HAS_OUT_OF_PROC_TEST_RUNNER',
2482       ],
2483       'sources': [
2484         '<@(performance_browser_tests_sources)',
2485       ],
2486       'rules': [
2487         {
2488           'rule_name': 'js2webui',
2489           'extension': 'js',
2490           'msvs_external_rule': 1,
2491           'variables': {
2492             'conditions': [
2493               ['v8_use_external_startup_data==1', {
2494                 'external_v8': 'y',
2495               }, {
2496                 'external_v8': 'n',
2497               }],
2498             ],
2499           },
2500           'inputs': [
2501             '<(gypv8sh)',
2502             '<(PRODUCT_DIR)/d8<(EXECUTABLE_SUFFIX)',
2503             '<(mock_js)',
2504             '<(test_api_js)',
2505             '<(js2gtest)',
2506           ],
2507           'outputs': [
2508             '<(INTERMEDIATE_DIR)/chrome/<(RULE_INPUT_DIRNAME)/<(RULE_INPUT_ROOT)-gen.cc',
2509             '<(PRODUCT_DIR)/test_data/chrome/<(RULE_INPUT_DIRNAME)/<(RULE_INPUT_ROOT).js',
2510           ],
2511           'process_outputs_as_sources': 1,
2512           'action': [
2513             'python',
2514             '<@(_inputs)',
2515             'webui',
2516             '--external', '<(external_v8)',
2517             '<(RULE_INPUT_PATH)',
2518             'chrome/<(RULE_INPUT_DIRNAME)/<(RULE_INPUT_ROOT).js',
2519             '<@(_outputs)',
2520           ],
2521         },
2522       ],
2523       'conditions': [
2524         [ 'cld_version==0 or cld_version==2', {
2525           'dependencies': [
2526             # Interactive tests should use whatever CLD2 data access mode that
2527             # the application embedder is using.
2528             '<(DEPTH)/third_party/cld_2/cld_2.gyp:cld2_platform_impl', ],
2529         }],
2530         ['OS=="win"', {
2531           'sources': [
2532             '<(SHARED_INTERMEDIATE_DIR)/chrome_version/other_version.rc',
2533             '<(SHARED_INTERMEDIATE_DIR)/ui/resources/ui_unscaled_resources.rc',
2534           ],
2535           'include_dirs': [
2536             '<(DEPTH)/third_party/wtl/include',
2537           ],
2538           'dependencies': [
2539             'chrome_version_resources',
2540           ],
2541           'conditions': [
2542             ['win_use_allocator_shim==1', {
2543               'dependencies': [
2544                 '<(allocator_target)',
2545               ],
2546             }],
2547           ],
2548           'configurations': {
2549             'Debug_Base': {
2550               'msvs_settings': {
2551                 'VCLinkerTool': {
2552                   'LinkIncremental': '<(msvs_debug_link_nonincremental)',
2553                 },
2554               },
2555             },
2556           }
2557         }, { # else: OS != "win"
2558           'sources!': [
2559             'app/chrome_command_ids.h',
2560             'app/chrome_dll.rc',
2561             'app/chrome_dll_resource.h',
2562             'app/chrome_version.rc.version',
2563           ],
2564         }],
2565         ['use_x11==1', {
2566           'dependencies': [
2567             '../tools/xdisplaycheck/xdisplaycheck.gyp:xdisplaycheck',
2568           ],
2569         }],
2570         ['OS=="linux"', {
2571           'dependencies': [
2572             '../build/linux/system.gyp:ssl',
2573           ],
2574         }],
2575         ['OS=="mac"', {
2576           # TODO(mark): We really want this for all non-static library
2577           # targets, but when we tried to pull it up to the common.gypi
2578           # level, it broke other things like the ui and startup tests. *shrug*
2579           'xcode_settings': {
2580             'OTHER_LDFLAGS': [
2581               '-Wl,-ObjC',
2582             ],
2583           },
2584           # Other platforms only need
2585           # chrome_resources.gyp:{packed_extra_resources,packed_resources},
2586           # and can build this target standalone much faster.
2587           'dependencies': [
2588             'chrome',
2589             '../components/components.gyp:breakpad_stubs',
2590           ],
2591         }, {  # OS!="mac"
2592           'sources!': [
2593             'test/perf/mach_ports_performancetest.cc',
2594           ],
2595         }],
2596         ['os_posix == 1 and OS != "mac" and OS != "android"', {
2597           'conditions': [
2598             ['use_allocator!="none"', {
2599               'dependencies': [
2600                 '../base/allocator/allocator.gyp:allocator',
2601               ],
2602             }],
2603           ],
2604         }],
2605         ['OS=="win" and component!="shared_library" and win_use_allocator_shim==1', {
2606           'dependencies': [
2607             '<(DEPTH)/base/allocator/allocator.gyp:allocator',
2608           ],
2609         }],
2610       ],  # conditions
2611     },  # target performance_browser_tests
2612     {
2613       # GN version: //chrome/test:sync_integration_test_support
2614       'target_name': 'test_support_sync_integration',
2615       'type': 'static_library',
2616       'dependencies': [
2617         'browser',
2618         'chrome',
2619         'test_support_common',
2620         '../base/base.gyp:base',
2621         '../components/components.gyp:invalidation',
2622         '../components/components.gyp:invalidation_test_support',
2623         '../net/net.gyp:net',
2624         '../skia/skia.gyp:skia',
2625         '../sync/sync.gyp:sync',
2626         '../sync/sync.gyp:test_support_sync_testserver',
2627         '../sync/sync.gyp:test_support_sync_fake_server',
2628         '../ui/app_list/app_list.gyp:app_list_test_support',
2629       ],
2630       'include_dirs': [
2631         '..',
2632         '<(INTERMEDIATE_DIR)',
2633         '<(protoc_out_dir)',
2634       ],
2635       'direct_dependent_settings': {
2636         'include_dirs': [
2637           '..',
2638           '<(INTERMEDIATE_DIR)',
2639           '<(protoc_out_dir)',
2640         ],
2641       },
2642       'export_dependent_settings': [
2643         'browser',
2644       ],
2645       'sources': [
2646         '<@(test_support_sync_integration_sources)',
2647       ],
2648       'conditions': [
2649         ['OS=="mac"', {
2650           # Dictionary sync is disabled on Mac.
2651           # Note: this list is duplicated in the GN build.
2652           'sources!': [
2653             'browser/sync/test/integration/dictionary_helper.cc',
2654             'browser/sync/test/integration/dictionary_helper.h',
2655             'browser/sync/test/integration/dictionary_load_observer.cc',
2656             'browser/sync/test/integration/dictionary_load_observer.h',
2657           ],
2658         }],
2659         ['chromeos==0', {
2660           # Note: this list is duplicated in the GN build.
2661           'sources!': [
2662             'browser/sync/test/integration/wifi_credentials_helper.cc',
2663             'browser/sync/test/integration/wifi_credentials_helper.h',
2664             # 'browser/sync/test/integration/wifi_credentials_helper_chromeos.cc',
2665             # 'browser/sync/test/integration/wifi_credentials_helper_chromeos.h',
2666           ],
2667         }],
2668         ['enable_app_list==0', {
2669           # Note: this list is duplicated in the GN build.
2670           'sources!': [
2671             'browser/sync/test/integration/sync_app_list_helper.cc',
2672             'browser/sync/test/integration/sync_app_list_helper.h',
2673           ],
2674         }],
2675       ]
2676     },
2677     {
2678       # GN version: //chrome/test:sync_integration_tests
2679       'target_name': 'sync_integration_tests',
2680       'type': 'executable',
2681       'dependencies': [
2682         'chrome_resources.gyp:chrome_resources',
2683         'chrome_resources.gyp:chrome_strings',
2684         'chrome_resources.gyp:packed_extra_resources',
2685         'chrome_resources.gyp:packed_resources',
2686         'common',
2687         'renderer',
2688         'test_support_common',
2689         'test_support_sync_integration',
2690         '../sync/sync.gyp:sync',
2691         '../testing/gmock.gyp:gmock',
2692         '../testing/gtest.gyp:gtest',
2693         '../third_party/icu/icu.gyp:icui18n',
2694         '../third_party/icu/icu.gyp:icuuc',
2695         '../third_party/leveldatabase/leveldatabase.gyp:leveldatabase',
2696         '../third_party/npapi/npapi.gyp:npapi',
2697         '../third_party/WebKit/public/blink.gyp:blink',
2698       ],
2699       'include_dirs': [
2700         '..',
2701         '<(INTERMEDIATE_DIR)',
2702         '<(protoc_out_dir)',
2703       ],
2704       # TODO(phajdan.jr): Only temporary, to make transition easier.
2705       'defines': [
2706         'HAS_OUT_OF_PROC_TEST_RUNNER',
2707       ],
2708       'sources': [
2709         '<@(sync_integration_tests_sources)',
2710       ],
2711       'conditions': [
2712         [ 'cld_version==0 or cld_version==2', {
2713           'dependencies': [
2714             # Language detection is irrelevant to sync, so it can depend on
2715             # any implementation for CLD2. Dynamic is smaller, so go with
2716             # dynamic.
2717             '<(DEPTH)/third_party/cld_2/cld_2.gyp:cld2_dynamic', ],
2718         }],
2719         ['OS=="linux"', {
2720           'dependencies': [
2721             '../build/linux/system.gyp:ssl',
2722           ],
2723         }],
2724         ['OS=="mac"', {
2725           # The sync_integration_tests do not run on mac without this flag.
2726           # Search for comments about "xcode_settings" elsewhere in this file.
2727           'xcode_settings': {'OTHER_LDFLAGS': ['-Wl,-ObjC']},
2728           # Dictionary sync is disabled on Mac.
2729           # Note: list duplicated in GN build.
2730           'sources!': [
2731             'browser/sync/test/integration/multiple_client_dictionary_sync_test.cc',
2732             'browser/sync/test/integration/single_client_dictionary_sync_test.cc',
2733             'browser/sync/test/integration/two_client_dictionary_sync_test.cc',
2734           ],
2735         }],
2736         ['OS=="win"', {
2737           'sources': [
2738             '<(SHARED_INTERMEDIATE_DIR)/chrome_version/other_version.rc',
2739             '<(SHARED_INTERMEDIATE_DIR)/ui/resources/ui_unscaled_resources.rc',
2740           ],
2741           'include_dirs': [
2742             '<(DEPTH)/third_party/wtl/include',
2743           ],
2744           'dependencies': [
2745             'chrome_version_resources',
2746           ],
2747           'conditions': [
2748             ['win_use_allocator_shim==1', {
2749               'dependencies': [
2750                 '<(allocator_target)',
2751               ],
2752             }],
2753           ],
2754           'configurations': {
2755             'Debug': {
2756               'msvs_settings': {
2757                 'VCLinkerTool': {
2758                   'LinkIncremental': '<(msvs_debug_link_nonincremental)',
2759                 },
2760               },
2761             },
2762           },
2763         }, { # else: OS != "win"
2764           'sources!': [
2765             'app/chrome_dll.rc',
2766             'app/chrome_version.rc.version',
2767             'test/data/resource.rc',
2768           ],
2769         }],
2770         ['toolkit_views==1', {
2771           'dependencies': [
2772             '../ui/views/views.gyp:views',
2773           ],
2774         }],
2775         ['chromeos == 0', {
2776           'sources!': [
2777             # Note: this list is duplicated in the GN build.
2778             'browser/sync/test/integration/single_client_wifi_credentials_sync_test.cc',
2779             'browser/sync/test/integration/two_client_wifi_credentials_sync_test.cc',
2780           ],
2781         }],
2782         ['enable_basic_printing==1 or enable_print_preview==1', {
2783           'dependencies': [
2784             '../printing/printing.gyp:printing',
2785           ],
2786         }],
2787         ['enable_app_list==0', {
2788           'sources!': [
2789             'browser/sync/test/integration/single_client_app_list_sync_test.cc',
2790             'browser/sync/test/integration/two_client_app_list_sync_test.cc',
2791           ],
2792         }],
2793         ['enable_supervised_users==0', {
2794           'sources!': [
2795             'browser/sync/test/integration/single_client_supervised_user_settings_sync_test.cc',
2796           ],
2797         }],
2798       ],
2799     },
2800     {
2801       # GN version: //chrome/test:sync_performance_tests
2802       'target_name': 'sync_performance_tests',
2803       'type': 'executable',
2804       'dependencies': [
2805         'test_support_sync_integration',
2806         '../sync/sync.gyp:sync',
2807         '../testing/gmock.gyp:gmock',
2808         '../testing/gtest.gyp:gtest',
2809       ],
2810       'include_dirs': [
2811         '..',
2812         '<(INTERMEDIATE_DIR)',
2813         '<(protoc_out_dir)',
2814       ],
2815       'defines': [
2816         'HAS_OUT_OF_PROC_TEST_RUNNER',
2817       ],
2818       'sources': [
2819         '<@(sync_performance_tests_sources)',
2820       ],
2821       'conditions': [
2822         [ 'cld_version==0 or cld_version==2', {
2823           'dependencies': [
2824             # Language detection is irrelevant to sync, so it can depend on
2825             # any implementation for CLD2. Dynamic is smaller, so go with
2826             # dynamic.
2827             '<(DEPTH)/third_party/cld_2/cld_2.gyp:cld2_dynamic', ],
2828         }],
2829         ['OS=="linux"', {
2830           'dependencies': [
2831             '../build/linux/system.gyp:ssl',
2832           ],
2833         }],
2834         ['OS=="mac"', {
2835           # The sync_performance_tests do not run on mac without this flag.
2836           # Search for comments about "xcode_settings" elsewhere in this file.
2837           'xcode_settings': {'OTHER_LDFLAGS': ['-Wl,-ObjC']},
2838           # Dictionary sync is disabled on Mac.
2839           'sources!': [
2840             'browser/sync/test/integration/performance/dictionary_sync_perf_test.cc',
2841           ],
2842         }],
2843         ['OS=="win"', {
2844           'sources': [
2845             '<(SHARED_INTERMEDIATE_DIR)/chrome_version/other_version.rc',
2846           ],
2847           'include_dirs': [
2848             '<(DEPTH)/third_party/wtl/include',
2849           ],
2850           'dependencies': [
2851             'chrome_version_resources',
2852           ],
2853           'conditions': [
2854             ['win_use_allocator_shim==1', {
2855               'dependencies': [
2856                 '<(allocator_target)',
2857               ],
2858             }],
2859           ],
2860           'configurations': {
2861             'Debug': {
2862               'msvs_settings': {
2863                 'VCLinkerTool': {
2864                   'LinkIncremental': '<(msvs_debug_link_nonincremental)',
2865                 },
2866               },
2867             },
2868           },
2869         }, { # else: OS != "win"
2870           'sources!': [
2871             'app/chrome_dll.rc',
2872             'app/chrome_version.rc.version',
2873             'test/data/resource.rc',
2874           ],
2875         }],
2876         ['toolkit_views==1', {
2877           'dependencies': [
2878             '../ui/views/views.gyp:views',
2879           ],
2880         }],
2881       ],
2882     },
2883     {
2884       # Executable to measure time to load libraries.
2885       # GN version: //chrome/test:load_library_perf_tests
2886       'target_name': 'load_library_perf_tests',
2887       'type': '<(gtest_target_type)',
2888       'dependencies': [
2889         '../base/base.gyp:test_support_perf',
2890         '../testing/gtest.gyp:gtest',
2891         '../testing/perf/perf_test.gyp:*',
2892         '../third_party/widevine/cdm/widevine_cdm.gyp:widevine_cdm_version_h',
2893       ],
2894       'sources': [
2895         'browser/load_library_perf_test.cc',
2896       ],
2897       'include_dirs': [
2898         '..',
2899         '<(SHARED_INTERMEDIATE_DIR)',
2900       ],
2901       'conditions': [
2902         ['enable_pepper_cdms==1', {
2903           'dependencies': [
2904             # Runtime dependencies.
2905             '../media/media.gyp:clearkeycdmadapter',
2906             '../third_party/widevine/cdm/widevine_cdm.gyp:widevinecdmadapter',
2907           ],
2908         }],
2909       ],
2910     },  # target 'load_library_perf_tests'
2911   ],
2912   'conditions': [
2913     ['OS == "android"', {
2914       'targets': [
2915         {
2916           # GN: //chrome/android:chrome_shell_test_apk
2917           'target_name': 'chrome_shell_test_apk',
2918           'type': 'none',
2919           'dependencies': [
2920             'chrome_java',
2921             'chrome_shell_apk_java',
2922             'chrome_java_test_support',
2923             '../base/base.gyp:base',
2924             '../base/base.gyp:base_java_test_support',
2925             '../components/components.gyp:invalidation_javatests',
2926             '../components/components.gyp:precache_javatests',
2927             '../content/content_shell_and_tests.gyp:content_java_test_support',
2928             '../sync/sync.gyp:sync_javatests',
2929             '../ui/android/ui_android.gyp:ui_javatests',
2930           ],
2931           'variables': {
2932             'apk_name': 'ChromeShellTest',
2933             'java_in_dir': 'android/shell/javatests',
2934             'additional_src_dirs': ['android/javatests/src'],
2935             'is_test_apk': 1,
2936           },
2937           'includes': [ '../build/java_apk.gypi' ],
2938         },
2939         {
2940           # GN: //chrome/android:chrome_junit_tests
2941           'target_name': 'chrome_junit_tests',
2942           'type': 'none',
2943           'dependencies': [
2944             'chrome_java',
2945             '../base/base.gyp:base',
2946             '../base/base.gyp:base_java_test_support',
2947             '../testing/android/junit/junit_test.gyp:junit_test_support',
2948           ],
2949           'variables': {
2950             'main_class': 'org.chromium.testing.local.JunitTestMain',
2951             'src_paths': [
2952               'android/junit/',
2953             ],
2954           },
2955           'includes': [
2956             '../build/host_jar.gypi',
2957           ],
2958         },
2959         {
2960           # GN: //chrome/test/chromedriver/test/webview_shell:chromedriver_webview_shell_apk
2961           'target_name': 'chromedriver_webview_shell_apk',
2962           'type': 'none',
2963           'variables': {
2964             'apk_name': 'ChromeDriverWebViewShell',
2965             'java_in_dir': 'test/chromedriver/test/webview_shell/java',
2966             'resource_dir': 'test/chromedriver/test/webview_shell/java/res',
2967           },
2968           'includes': [ '../build/java_apk.gypi' ],
2969         },
2970         {
2971           # GN: //chrome/android:uiautomator_tests_java
2972           'target_name': 'chrome_shell_uiautomator_tests_java',
2973           'type': 'none',
2974           'variables': {
2975             'java_in_dir': 'android/uiautomator_tests',
2976           },
2977           'dependencies': [
2978             '../base/base.gyp:base_java_test_support',
2979             '../third_party/android_tools/android_tools.gyp:uiautomator_jar',
2980           ],
2981           'includes': [ '../build/java.gypi' ],
2982         },
2983         {
2984           # GN: //chrome/android:uiautomator_tests
2985           'target_name': 'chrome_shell_uiautomator_tests',
2986           'type': 'none',
2987           'dependencies': [
2988             'chrome_shell_uiautomator_tests_java',
2989           ],
2990           'includes': [ '../build/uiautomator_test.gypi' ],
2991         },
2992         {
2993           # GN: //chrome/android:chrome_sync_shell_test_apk
2994           'target_name': 'chrome_sync_shell_test_apk',
2995           'type': 'none',
2996           'dependencies': [
2997             'chrome_java',
2998             'chrome_sync_shell_apk_java',
2999             'chrome_java_test_support',
3000             '../base/base.gyp:base',
3001             '../base/base.gyp:base_java_test_support',
3002             '../content/content_shell_and_tests.gyp:content_java_test_support',
3003             '../sync/sync.gyp:test_support_sync_proto_java',
3004           ],
3005           'variables': {
3006             'apk_name': 'ChromeSyncShellTest',
3007             'java_in_dir': 'android/sync_shell/javatests',
3008             'additional_src_dirs': [ 'android/shell/javatests', ],
3009             'is_test_apk': 1,
3010           },
3011           'includes': [ '../build/java_apk.gypi' ],
3012         },
3013         {
3014           # GN: //chrome/test/android:chrome_java_test_support
3015           'target_name': 'chrome_java_test_support',
3016           'type': 'none',
3017           'variables': {
3018             'java_in_dir': '../chrome/test/android/javatests',
3019           },
3020           'dependencies': [
3021             'chrome_java',
3022             '../content/content_shell_and_tests.gyp:content_java_test_support',
3023             '../net/net.gyp:net_java_test_support',
3024             '../sync/sync.gyp:sync_java',
3025             '../sync/sync.gyp:sync_java_test_support',
3026           ],
3027           'includes': [ '../build/java.gypi' ],
3028         },
3029       ],
3030     }],
3031     ['test_isolation_mode != "noop"', {
3032       'targets': [
3033         {
3034           'target_name': 'browser_tests_run',
3035           'type': 'none',
3036           'dependencies': [
3037             '../content/content_shell_and_tests.gyp:copy_test_netscape_plugin',
3038             'browser_tests',
3039             'chrome',
3040           ],
3041           'includes': [
3042             '../build/isolate.gypi',
3043           ],
3044           'sources': [
3045             'browser_tests.isolate',
3046           ],
3047           'conditions': [
3048             ['use_x11==1', {
3049               'dependencies': [
3050                 '../tools/xdisplaycheck/xdisplaycheck.gyp:xdisplaycheck',
3051               ],
3052             }],
3053           ],
3054         },
3055         {
3056           'target_name': 'interactive_ui_tests_run',
3057           'type': 'none',
3058           'dependencies': [
3059             'interactive_ui_tests',
3060           ],
3061           'conditions': [
3062             ['use_x11 == 1', {
3063               'dependencies': [
3064                 '../tools/xdisplaycheck/xdisplaycheck.gyp:xdisplaycheck',
3065               ],
3066             }],
3067           ],
3068           'includes': [
3069             '../build/isolate.gypi',
3070           ],
3071           'sources': [
3072             'interactive_ui_tests.isolate',
3073           ],
3074         },
3075         {
3076           'target_name': 'sync_integration_tests_run',
3077           'type': 'none',
3078           'dependencies': [
3079             'sync_integration_tests',
3080           ],
3081           'conditions': [
3082             ['use_x11 == 1', {
3083               'dependencies': [
3084                 '../tools/xdisplaycheck/xdisplaycheck.gyp:xdisplaycheck',
3085               ],
3086             }],
3087           ],
3088           'includes': [
3089             '../build/isolate.gypi',
3090           ],
3091           'sources': [
3092             'sync_integration_tests.isolate',
3093           ],
3094         },
3095       ],
3096       'conditions': [
3097         ['archive_gpu_tests==1', {
3098           'targets': [
3099             {
3100               'target_name': 'gpu_tests_base',
3101               'type': 'none',
3102               'dependencies': [
3103                 # depend on icu to fix races. http://crbug.com/417583
3104                 '../third_party/icu/icu.gyp:icudata',
3105               ],
3106               'direct_dependent_settings': {
3107                 'includes': [
3108                   '../build/isolate.gypi',
3109                 ],
3110               },
3111             },
3112             {
3113               'target_name': 'telemetry_isolate_base',
3114               'type': 'none',
3115               'dependencies': [
3116                 '../tools/telemetry/telemetry.gyp:bitmaptools#host',
3117               ],
3118               'conditions': [
3119                 ['OS=="linux" or OS=="mac"', {
3120                   'dependencies': [
3121                     '../breakpad/breakpad.gyp:dump_syms',
3122                   ],
3123                 }],
3124                 ['OS=="mac"', {
3125                   'dependencies': [
3126                     '../third_party/crashpad/crashpad/tools/tools.gyp:crashpad_database_util',
3127                   ],
3128                 }],
3129               ],
3130             },
3131             {
3132               'target_name': 'angle_unittests_run',
3133               'type': 'none',
3134               'dependencies': [
3135                 '../gpu/gpu.gyp:angle_unittests',
3136                 'gpu_tests_base',
3137               ],
3138               'sources': [
3139                 'angle_unittests.isolate',
3140               ],
3141             },
3142             {
3143               'target_name': 'gl_tests_run',
3144               'type': 'none',
3145               'dependencies': [
3146                 '../gpu/gpu.gyp:gl_tests',
3147                 'gpu_tests_base',
3148               ],
3149               'sources': [
3150                 'gl_tests.isolate',
3151               ],
3152             },
3153             {
3154               'target_name': 'tab_capture_end2end_tests_run',
3155               'type': 'none',
3156               'dependencies': [
3157                 'browser_tests_run',
3158                 'gpu_tests_base',
3159               ],
3160               'sources': [
3161                 'tab_capture_end2end_tests.isolate',
3162               ],
3163             },
3164             {
3165               'target_name': 'telemetry_gpu_test_run',
3166               'type': 'none',
3167               'dependencies': [
3168                 'chrome_run',
3169                 'gpu_tests_base',
3170                 'telemetry_isolate_base',
3171               ],
3172               'sources': [
3173                 'telemetry_gpu_test.isolate',
3174               ],
3175             },
3176           ],
3177           'conditions': [
3178             ['internal_gles2_conform_tests==1', {
3179               'targets': [
3180                 {
3181                   'target_name': 'gles2_conform_test_run',
3182                   'type': 'none',
3183                   'dependencies': [
3184                     '../gpu/gles2_conform_support/gles2_conform_test.gyp:gles2_conform_test',
3185                     'gpu_tests_base',
3186                   ],
3187                   'sources': [
3188                     'gles2_conform_test.isolate',
3189                   ],
3190                 },
3191               ],
3192             }],
3193             ['OS=="win"', {
3194               'targets': [
3195                 {
3196                   'target_name': 'angle_end2end_tests_run',
3197                   'type': 'none',
3198                   'dependencies': [
3199                     '../gpu/gpu.gyp:angle_end2end_tests',
3200                     'gpu_tests_base',
3201                   ],
3202                   'sources': [
3203                     'angle_end2end_tests.isolate',
3204                   ],
3205                 },
3206               ],
3207             }],
3208           ],
3209         }],
3210       ],
3211     }],
3212     [ 'enable_mdns == 1', {
3213       'targets': [{
3214           # GN version: //chrome/tools/service_discovery_sniffer
3215           'target_name': 'service_discovery_sniffer',
3216           'type': 'executable',
3217           'dependencies': [
3218             '../net/net.gyp:net',
3219             '../base/base.gyp:base',
3220             '../base/base.gyp:test_support_base',
3221             'utility',
3222           ],
3223           'sources': [
3224             'tools/service_discovery_sniffer/service_discovery_sniffer.cc',
3225             'tools/service_discovery_sniffer/service_discovery_sniffer.h',
3226           ],
3227           'conditions': [
3228             ['enable_webrtc==1', {
3229               'dependencies': [
3230                 '../third_party/libjingle/libjingle.gyp:libjingle_webrtc'
3231               ]
3232             }],
3233           ],
3234         }]
3235     }],
3236   ],  # 'conditions'