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