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