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