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