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