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