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