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