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