Return backed up TemplateURL on default search change
[chromium-blink-merge.git] / chrome / chrome_tests.gypi
blob3a06df43ccdf12d1f78af92b5ba3c06a263dcbe7
1 # Copyright (c) 2011 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     ],
17     'pyautolib_libraries': [
18     ],
19     'conditions': [
20       ['asan==1', {
21         'pyautolib_libraries': [
22           # Link in the libasan32.a because this binary will be loaded by
23           # Python that does not have libasan in.
24           '-lasan32',
25         ]
26       }],
27     ],
28   },
29   'includes': [
30     'js_unittest_vars.gypi',
31   ],
32   'targets': [
33     {
34       # This target contains mocks and test utilities that don't belong in
35       # production libraries but are used by more than one test executable.
36       'target_name': 'test_support_common',
37       'type': 'static_library',
38       'dependencies': [
39         'app/policy/cloud_policy_codegen.gyp:policy',
40         'browser',
41         'browser/sync/protocol/sync_proto.gyp:sync_proto',
42         'chrome_resources.gyp:chrome_resources',
43         'chrome_resources.gyp:chrome_strings',
44         'chrome_resources.gyp:theme_resources',
45         'common',
46         'plugin',
47         'renderer',
48         'service',
49         'utility',
50         '../base/base.gyp:test_support_base',
51         '../content/content.gyp:content_app',
52         '../content/content.gyp:content_gpu',
53         '../content/content.gyp:content_plugin',
54         '../content/content.gyp:content_ppapi_plugin',
55         '../content/content.gyp:content_renderer',
56         '../content/content.gyp:content_utility',
57         '../content/content.gyp:content_worker',
58         '../content/content.gyp:test_support_content',
59         '../ipc/ipc.gyp:test_support_ipc',
60         '../media/media.gyp:media_test_support',
61         '../net/net.gyp:net',
62         # 'test/base/test_url_request_context_getter.h' brings in this requirement.
63         '../net/net.gyp:net_test_support',
64         '../skia/skia.gyp:skia',
65         '../testing/gmock.gyp:gmock',
66         '../testing/gtest.gyp:gtest',
67         '../third_party/leveldatabase/leveldatabase.gyp:leveldatabase',
68         '../ui/gfx/compositor/compositor.gyp:compositor_test_support',
69       ],
70       'export_dependent_settings': [
71         'renderer',
72         'app/policy/cloud_policy_codegen.gyp:policy',
73         '../base/base.gyp:test_support_base',
74       ],
75       'include_dirs': [
76         '..',
77       ],
78       'sources': [
79         'app/breakpad_mac_stubs.mm',
80         'app/chrome_main_delegate.cc',
81         'app/chrome_main_delegate.h',
82         'browser/autofill/autofill_common_test.cc',
83         'browser/autofill/autofill_common_test.h',
84         'browser/autofill/data_driven_test.cc',
85         'browser/autofill/data_driven_test.h',
86         'browser/automation/mock_tab_event_observer.cc',
87         'browser/automation/mock_tab_event_observer.h',
88         'browser/chromeos/cros/mock_cryptohome_library.cc',
89         'browser/chromeos/cros/mock_cryptohome_library.h',
90         'browser/chromeos/cros/mock_library_loader.cc',
91         'browser/chromeos/cros/mock_library_loader.h',
92         'browser/chromeos/cros/mock_network_library.cc',
93         'browser/chromeos/cros/mock_network_library.h',
94         'browser/chromeos/dbus/mock_bluetooth_adapter_client.cc',
95         'browser/chromeos/dbus/mock_bluetooth_adapter_client.h',
96         'browser/chromeos/dbus/mock_bluetooth_manager_client.cc',
97         'browser/chromeos/dbus/mock_bluetooth_manager_client.h',
98         'browser/chromeos/dbus/mock_cros_disks_client.cc',
99         'browser/chromeos/dbus/mock_cros_disks_client.h',
100         'browser/chromeos/dbus/mock_dbus_thread_manager.cc',
101         'browser/chromeos/dbus/mock_dbus_thread_manager.h',
102         'browser/chromeos/dbus/mock_power_manager_client.cc',
103         'browser/chromeos/dbus/mock_power_manager_client.h',
104         'browser/chromeos/dbus/mock_sensors_client.cc',
105         'browser/chromeos/dbus/mock_sensors_client.h',
106         'browser/chromeos/dbus/mock_session_manager_client.cc',
107         'browser/chromeos/dbus/mock_session_manager_client.h',
108         'browser/chromeos/dbus/mock_speech_synthesizer_client.cc',
109         'browser/chromeos/dbus/mock_speech_synthesizer_client.h',
110         'browser/chromeos/dbus/mock_update_engine_client.cc',
111         'browser/chromeos/dbus/mock_update_engine_client.h',
112         'browser/chromeos/login/mock_signed_settings_helper.cc',
113         'browser/chromeos/login/mock_signed_settings_helper.h',
114         # The only thing used from browser is Browser::Type.
115         'browser/extensions/mock_extension_special_storage_policy.cc',
116         'browser/extensions/mock_extension_special_storage_policy.h',
117         'browser/extensions/test_extension_prefs.cc',
118         'browser/extensions/test_extension_prefs.h',
119         'browser/extensions/test_extension_service.cc',
120         'browser/extensions/test_extension_service.h',
121         'browser/mock_browsing_data_appcache_helper.cc',
122         'browser/mock_browsing_data_appcache_helper.h',
123         'browser/mock_browsing_data_cookie_helper.cc',
124         'browser/mock_browsing_data_cookie_helper.h',
125         'browser/mock_browsing_data_database_helper.cc',
126         'browser/mock_browsing_data_database_helper.h',
127         'browser/mock_browsing_data_file_system_helper.cc',
128         'browser/mock_browsing_data_file_system_helper.h',
129         'browser/mock_browsing_data_indexed_db_helper.cc',
130         'browser/mock_browsing_data_indexed_db_helper.h',
131         'browser/mock_browsing_data_local_storage_helper.cc',
132         'browser/mock_browsing_data_local_storage_helper.h',
133         'browser/mock_browsing_data_quota_helper.cc',
134         'browser/mock_browsing_data_quota_helper.h',
135         'browser/notifications/notification_test_util.cc',
136         'browser/notifications/notification_test_util.h',
137         'browser/policy/mock_cloud_policy_data_store.cc',
138         'browser/policy/mock_cloud_policy_data_store.h',
139         'browser/policy/mock_device_management_service.cc',
140         'browser/policy/mock_device_management_service.h',
141         'browser/prefs/pref_observer_mock.cc',
142         'browser/prefs/pref_observer_mock.h',
143         'browser/prefs/pref_service_mock_builder.cc',
144         'browser/prefs/pref_service_mock_builder.h',
145         'browser/prefs/testing_pref_store.cc',
146         'browser/prefs/testing_pref_store.h',
147         'browser/search_engines/template_url_service_test_util.cc',
148         'browser/search_engines/template_url_service_test_util.h',
149         'browser/sessions/session_service_test_helper.cc',
150         'browser/sessions/session_service_test_helper.h',
151         'browser/sync/profile_sync_service_mock.cc',
152         'browser/sync/profile_sync_service_mock.h',
153         'browser/sync/syncable/syncable_mock.cc',
154         'browser/sync/syncable/syncable_mock.h',
155         'browser/ui/browser.h',
156         'browser/ui/panels/base_panel_browser_test.cc',
157         'browser/ui/panels/base_panel_browser_test.h',
158         'browser/ui/panels/test_panel_mouse_watcher.cc',
159         'browser/ui/panels/test_panel_mouse_watcher.h',
160         'browser/ui/tab_contents/test_tab_contents_wrapper.cc',
161         'browser/ui/tab_contents/test_tab_contents_wrapper.h',
162         'common/pref_store_observer_mock.cc',
163         'common/pref_store_observer_mock.h',
164         'renderer/chrome_mock_render_thread.cc',
165         'renderer/chrome_mock_render_thread.h',
166         'renderer/mock_printer.cc',
167         'renderer/mock_printer.h',
168         'renderer/safe_browsing/mock_feature_extractor_clock.cc',
169         'renderer/safe_browsing/mock_feature_extractor_clock.h',
170         'test/automation/automation_handle_tracker.cc',
171         'test/automation/automation_handle_tracker.h',
172         'test/automation/automation_json_requests.cc',
173         'test/automation/automation_json_requests.h',
174         'test/automation/automation_proxy.cc',
175         'test/automation/automation_proxy.h',
176         'test/automation/browser_proxy.cc',
177         'test/automation/browser_proxy.h',
178         'test/automation/dom_element_proxy.cc',
179         'test/automation/dom_element_proxy.h',
180         'test/automation/extension_proxy.cc',
181         'test/automation/extension_proxy.h',
182         'test/automation/javascript_execution_controller.cc',
183         'test/automation/javascript_execution_controller.h',
184         'test/automation/javascript_message_utils.h',
185         'test/automation/tab_proxy.cc',
186         'test/automation/tab_proxy.h',
187         'test/automation/value_conversion_traits.cc',
188         'test/automation/value_conversion_traits.h',
189         'test/automation/value_conversion_util.h',
190         'test/automation/window_proxy.cc',
191         'test/automation/window_proxy.h',
192         'test/base/bookmark_load_observer.cc',
193         'test/base/bookmark_load_observer.h',
194         'test/base/chrome_process_util.cc',
195         'test/base/chrome_process_util.h',
196         'test/base/chrome_process_util_mac.cc',
197         'test/base/chrome_render_view_host_test_harness.cc',
198         'test/base/chrome_render_view_host_test_harness.h',
199         'test/base/chrome_test_suite.cc',
200         'test/base/chrome_test_suite.h',
201         'test/base/in_process_browser_test.cc',
202         'test/base/in_process_browser_test.h',
203         'test/base/model_test_utils.cc',
204         'test/base/model_test_utils.h',
205         'test/base/profile_mock.cc',
206         'test/base/profile_mock.h',
207         'test/base/test_browser_window.cc',
208         'test/base/test_browser_window.h',
209         'test/base/test_html_dialog_observer.cc',
210         'test/base/test_html_dialog_observer.h',
211         'test/base/test_launcher_utils.cc',
212         'test/base/test_launcher_utils.h',
213         'test/base/test_location_bar.cc',
214         'test/base/test_location_bar.h',
215         'test/base/test_switches.cc',
216         'test/base/test_switches.h',
217         'test/base/test_tab_strip_model_observer.cc',
218         'test/base/test_tab_strip_model_observer.h',
219         'test/base/test_url_request_context_getter.cc',
220         'test/base/test_url_request_context_getter.h',
221         'test/base/testing_browser_process.cc',
222         'test/base/testing_browser_process.h',
223         'test/base/testing_pref_service.cc',
224         'test/base/testing_pref_service.h',
225         'test/base/testing_profile.cc',
226         'test/base/testing_profile.h',
227         'test/base/testing_profile_manager.cc',
228         'test/base/testing_profile_manager.h',
229         'test/base/thread_observer_helper.h',
230         'test/base/tracing.cc',
231         'test/base/tracing.h',
232         'test/base/ui_test_utils.cc',
233         'test/base/ui_test_utils.h',
234         'test/base/ui_test_utils_aura.cc',
235         'test/base/ui_test_utils_gtk.cc',
236         'test/base/ui_test_utils_mac.mm',
237         'test/base/ui_test_utils_win.cc',
238         'test/base/values_test_util.cc',
239         'test/base/values_test_util.h',
240         'test/perf/perf_test.cc',
241         'test/perf/perf_test.h',
242         # TODO:  these should live here but are currently used by
243         # production code code in libbrowser (in chrome.gyp).
244         #'../content/browser/net/url_request_mock_http_job.cc',
245         #'../content/browser/net/url_request_mock_http_job.h',
246         '../content/browser/ssl/ssl_client_auth_handler_mock.h',
247         '../content/test/notification_observer_mock.cc',
248         '../content/test/notification_observer_mock.h',
249         '../ui/gfx/image/image_unittest_util.h',
250         '../ui/gfx/image/image_unittest_util.cc',
251         '../webkit/quota/mock_quota_manager.cc',
252         '../webkit/quota/mock_quota_manager.h',
253       ],
254       'conditions': [
255         ['chromeos==0', {
256           'sources/': [
257             ['exclude', '^browser/chromeos'],
258           ],
259         }],
260         ['toolkit_uses_gtk == 1', {
261           'dependencies': [
262             '../build/linux/system.gyp:gtk',
263           ],
264         }],
265         ['toolkit_uses_gtk == 1 or chromeos==1 or (OS=="linux" and use_aura==1)', {
266           'dependencies': [
267             '../build/linux/system.gyp:ssl',
268           ],
269         }],
270         ['OS=="win"', {
271           'include_dirs': [
272             '<(DEPTH)/third_party/wtl/include',
273           ],
274         }],
275         ['OS=="win" and use_aura==1', {
276           'sources/': [
277             ['exclude', 'test/base/ui_test_utils_win.cc'],
278           ],
279         }],
280         ['use_webkit_compositor==0', {
281           'dependencies': [
282             '../ui/gfx/compositor/compositor.gyp:test_compositor',
283           ],
284         }],
285       ],
286     },
287     {
288       'target_name': 'test_support_ui',
289       'type': 'static_library',
290       'dependencies': [
291         'chrome_resources.gyp:chrome_resources',
292         'chrome_resources.gyp:chrome_strings',
293         'chrome_resources.gyp:theme_resources',
294         'test_support_common',
295         '../skia/skia.gyp:skia',
296         '../testing/gtest.gyp:gtest',
297       ],
298       'export_dependent_settings': [
299         'test_support_common',
300       ],
301       'include_dirs': [
302         '..',
303       ],
304       'sources': [
305         'test/automation/proxy_launcher.cc',
306         'test/automation/proxy_launcher.h',
307         'test/base/layout_test_http_server.cc',
308         'test/base/layout_test_http_server.h',
309         'test/reliability/automated_ui_test_base.cc',
310         'test/reliability/automated_ui_test_base.h',
311         'test/ui/javascript_test_util.cc',
312         'test/ui/npapi_test_helper.cc',
313         'test/ui/npapi_test_helper.h',
314         'test/ui/run_all_unittests.cc',
315         'test/ui/ui_layout_test.cc',
316         'test/ui/ui_layout_test.h',
317         'test/ui/ui_perf_test.cc',
318         'test/ui/ui_perf_test.h',
319         'test/ui/ui_test.cc',
320         'test/ui/ui_test.h',
321         'test/ui/ui_test_suite.cc',
322         'test/ui/ui_test_suite.h',
323       ],
324       'conditions': [
325         ['OS=="win"', {
326           'dependencies': [
327             'chrome.gyp:crash_service',  # run time dependency
328             'chrome.gyp:crash_service_win64',  # run time dependency
329           ],
330         }],
331         ['toolkit_uses_gtk == 1', {
332           'dependencies': [
333             '../build/linux/system.gyp:gtk',
334           ],
335         }],
336       ],
337     },
338     {
339       'target_name': 'test_support_sync',
340       'type': 'static_library',
341       'dependencies': [
342         '../base/base.gyp:base',
343         '../testing/gmock.gyp:gmock',
344         '../testing/gtest.gyp:gtest',
345         'sync',
346       ],
347       'export_dependent_settings': [
348         '../base/base.gyp:base',
349         '../testing/gmock.gyp:gmock',
350         '../testing/gtest.gyp:gtest',
351         'sync',
352       ],
353       'include_dirs': [
354         '..',
355       ],
356       'sources': [
357         'browser/sync/js/js_test_util.cc',
358         'browser/sync/js/js_test_util.h',
359         'browser/sync/syncable/model_type_test_util.cc',
360         'browser/sync/syncable/model_type_test_util.h',
361         'browser/sync/test/null_directory_change_delegate.cc',
362         'browser/sync/test/null_directory_change_delegate.h',
363         'browser/sync/test/null_transaction_observer.cc',
364         'browser/sync/test/null_transaction_observer.h',
365         'browser/sync/test/engine/test_directory_setter_upper.cc',
366         'browser/sync/test/engine/test_directory_setter_upper.h',
367       ],
368     },
369     {
370       'target_name': 'test_support_syncapi',
371       'type': 'static_library',
372       'dependencies': [
373         '../base/base.gyp:base',
374         'syncapi_core',
375         'test_support_sync',
376       ],
377       'export_dependent_settings': [
378         '../base/base.gyp:base',
379         'syncapi_core',
380         'test_support_sync',
381       ],
382       'include_dirs': [
383         '..',
384       ],
385       'sources': [
386         'browser/sync/test/engine/test_user_share.cc',
387         'browser/sync/test/engine/test_user_share.h',
388       ],
389     },
390     {
391       'target_name': 'test_support_syncapi_service',
392       'type': 'static_library',
393       'dependencies': [
394         '../testing/gmock.gyp:gmock',
395         'syncapi_service',
396       ],
397       'export_dependent_settings': [
398         '../testing/gmock.gyp:gmock',
399         'syncapi_service',
400       ],
401       'include_dirs': [
402         '..',
403       ],
404       'sources': [
405         'browser/sync/api/syncable_service_mock.cc',
406         'browser/sync/api/syncable_service_mock.h',
407       ],
408     },
409     {
410       'target_name': 'test_support_sync_notifier',
411       'type': 'static_library',
412       'dependencies': [
413         '../testing/gmock.gyp:gmock',
414         'sync_notifier',
415       ],
416       'include_dirs': [
417         '..',
418       ],
419       'sources': [
420         'browser/sync/notifier/mock_sync_notifier_observer.cc',
421         'browser/sync/notifier/mock_sync_notifier_observer.h',
422       ],
423     },
424     {
425       'target_name': 'test_support_unit',
426       'type': 'static_library',
427       'dependencies': [
428         'chrome_resources.gyp:chrome_resources',
429         'chrome_resources.gyp:chrome_strings',
430         'test_support_common',
431         '../skia/skia.gyp:skia',
432         '../testing/gtest.gyp:gtest',
433       ],
434       'include_dirs': [
435         '..',
436       ],
437       'sources': [
438         'test/base/run_all_unittests.cc',
439       ],
440       'conditions': [
441         ['toolkit_uses_gtk == 1', {
442           'dependencies': [
443             # Needed for the following #include chain:
444             #   test/base/run_all_unittests.cc
445             #   test/base/chrome_test_suite.h
446             #   gtk/gtk.h
447             '../build/linux/system.gyp:gtk',
448           ],
449         }],
450       ],
451     },
452     {
453       'target_name': 'automated_ui_tests',
454       'type': 'executable',
455       'dependencies': [
456         'browser',
457         'chrome_resources.gyp:theme_resources',
458         'renderer',
459         'test_support_common',
460         'test_support_ui',
461         '../base/base.gyp:base',
462         '../skia/skia.gyp:skia',
463         '../third_party/libxml/libxml.gyp:libxml',
464         '../testing/gtest.gyp:gtest',
465       ],
466       'include_dirs': [
467         '..',
468       ],
469       'sources': [
470         'test/reliability/automated_ui_test_interactive_test.cc',
471         'test/reliability/automated_ui_tests.cc',
472         'test/reliability/automated_ui_tests.h',
473       ],
474       'conditions': [
475         ['OS=="win" and buildtype=="Official"', {
476           'configurations': {
477             'Release': {
478               'msvs_settings': {
479                 'VCCLCompilerTool': {
480                   'WholeProgramOptimization': 'false',
481                 },
482               },
483             },
484           },
485         },],
486         ['use_x11 == 1', {
487           'dependencies': [
488             '../tools/xdisplaycheck/xdisplaycheck.gyp:xdisplaycheck',
489           ],
490         }],
491         ['OS=="win"', {
492           'include_dirs': [
493             '<(DEPTH)/third_party/wtl/include',
494           ],
495           'conditions': [
496             ['win_use_allocator_shim==1', {
497               'dependencies': [
498                 '<(allocator_target)',
499               ],
500             }],
501           ],
502         }],
503       ],
504     },
505     {
506       'target_name': 'interactive_ui_tests',
507       'type': 'executable',
508       'dependencies': [
509         'browser/sync/protocol/sync_proto.gyp:sync_proto',
510         'chrome',
511         'chrome_resources.gyp:chrome_resources',
512         'chrome_resources.gyp:chrome_strings',
513         'debugger',
514         'syncapi_core',
515         'test_support_common',
516         'test_support_ui',
517         '../third_party/hunspell/hunspell.gyp:hunspell',
518         '../net/net.gyp:net',
519         '../net/net.gyp:net_resources',
520         '../net/net.gyp:net_test_support',
521         '../skia/skia.gyp:skia',
522         '../third_party/icu/icu.gyp:icui18n',
523         '../third_party/libpng/libpng.gyp:libpng',
524         '../third_party/zlib/zlib.gyp:zlib',
525         '../testing/gmock.gyp:gmock',
526         '../testing/gtest.gyp:gtest',
527         '../third_party/npapi/npapi.gyp:npapi',
528         # run time dependency
529         '../webkit/support/webkit_support.gyp:webkit_resources',
530       ],
531       'include_dirs': [
532         '..',
533       ],
534       'defines': [
535         'HAS_OUT_OF_PROC_TEST_RUNNER',
536         'BROWSER_TESTS_HEADER_OVERRIDE="chrome/test/base/in_process_browser_test.h"',
537       ],
538       'sources': [
539         'browser/accessibility/accessibility_mac_uitest.mm',
540         'browser/autofill/autofill_browsertest.cc',
541         'browser/browser_focus_uitest.cc',
542         'browser/browser_keyevents_browsertest.cc',
543         'browser/collected_cookies_uitest.cc',
544         'browser/debugger/devtools_sanity_unittest.cc',
545         'browser/infobars/infobars_uitest.cc',
546         'browser/instant/instant_browsertest.cc',
547         'browser/keyboard_access_uitest.cc',
548         'browser/mouseleave_interactive_uitest.cc',
549         'browser/notifications/notifications_interactive_uitest.cc',
550         'browser/npapi_interactive_test.cc',
551         'browser/task_manager/task_manager_browsertest_util.cc',
552         'browser/ui/gtk/bookmarks/bookmark_bar_gtk_interactive_uitest.cc',
553         'browser/ui/omnibox/omnibox_view_browsertest.cc',
554         'browser/ui/panels/panel_browsertest.cc',
555         'browser/ui/panels/panel_overflow_browsertest.cc',
556         'browser/ui/views/bookmarks/bookmark_bar_view_test.cc',
557         'browser/ui/views/button_dropdown_test.cc',
558         'browser/ui/views/constrained_window_views_browsertest.cc',
559         'browser/ui/views/find_bar_host_interactive_uitest.cc',
560         'browser/ui/views/menu_item_view_test.cc',
561         'browser/ui/views/menu_model_adapter_test.cc',
562         'browser/ui/views/ssl_client_certificate_selector_browsertest.cc',
563         'browser/ui/views/tabs/tab_dragging_test.cc',
564         'browser/ui/webui/workers_ui_browsertest.cc',
565         'test/base/chrome_test_launcher.cc',
566         'test/base/view_event_test_base.cc',
567         'test/base/view_event_test_base.h',
568         '../content/app/startup_helper_win.cc',
569         '../content/test/test_launcher.cc',
570         '../content/test/test_launcher.h',
571       ],
572       'conditions': [
573         ['toolkit_uses_gtk == 1', {
574           'dependencies': [
575             '../build/linux/system.gyp:gtk',
576             '../tools/xdisplaycheck/xdisplaycheck.gyp:xdisplaycheck',
577           ],
578         }],
579         ['toolkit_uses_gtk == 1 or chromeos==1 or (OS=="linux" and use_aura==1)', {
580           'dependencies': [
581             '../build/linux/system.gyp:ssl',
582           ],
583         }],
584         # For troubleshooting crbug.com/103497.
585         ['chromeos==1 and use_aura==1', {
586           'sources': [
587             'browser/printing/print_dialog_cloud_uitest.cc',
588           ],
589         }],
590         ['toolkit_uses_gtk == 1 and toolkit_views == 0', {
591           'sources!': [
592             # TODO(port)
593             'browser/npapi_interactive_test.cc',
594             'browser/ui/views/crypto_module_password_dialog_view_unittest.cc',
595             'browser/ui/views/bookmarks/bookmark_bar_view_test.cc',
596             'browser/ui/views/button_dropdown_test.cc',
597             'browser/ui/views/find_bar_host_interactive_uitest.cc',
598             'browser/ui/views/menu_item_view_test.cc',
599             'browser/ui/views/menu_model_adapter_test.cc',
600             'browser/ui/views/tabs/tab_dragging_test.cc',
601             'test/base/view_event_test_base.cc',
602             'test/base/view_event_test_base.h',
603           ],
604         }],
605         ['OS=="linux" and toolkit_views==1', {
606           'sources!': [
607             # TODO(port)
608             'browser/npapi_interactive_test.cc',
610             'browser/ui/gtk/bookmarks/bookmark_bar_gtk_interactive_uitest.cc',
611           ],
612         }],
613         ['target_arch!="arm"', {
614           'dependencies': [
615             # run time dependency
616             '../webkit/webkit.gyp:npapi_test_plugin',
617           ],
618         }],  # target_arch
619         ['OS=="mac"', {
620           'sources!': [
621             # TODO(port)
622             'browser/npapi_interactive_test.cc',
623             'browser/ui/views/bookmarks/bookmark_bar_view_test.cc',
624             'browser/ui/views/button_dropdown_test.cc',
625             'browser/ui/views/find_bar_host_interactive_uitest.cc',
626             'browser/ui/views/menu_item_view_test.cc',
627             'browser/ui/views/menu_model_adapter_test.cc',
628             'browser/ui/views/tabs/tab_dragging_test.cc',
629             'test/base/view_event_test_base.cc',
630             'test/base/view_event_test_base.h',
631           ],
632           # See comment about the same line in chrome/chrome_tests.gypi.
633           'xcode_settings': {'OTHER_LDFLAGS': ['-Wl,-ObjC']},
634         }],  # OS=="mac"
635         ['notifications==0', {
636           'sources/': [
637             ['exclude', '^browser/notifications/'],
638           ],
639         }],
640         ['toolkit_views==1', {
641           'dependencies': [
642             '../ui/views/views.gyp:views',
643           ],
644         }],
645         ['chromeos==1', {
646           'sources!': [
647             'browser/ui/panels/panel_browsertest.cc',
648             'browser/ui/panels/panel_overflow_browsertest.cc',
649           ],
650         }],
651         ['OS=="win"', {
652           'include_dirs': [
653             '../third_party/wtl/include',
654           ],
655           'dependencies': [
656             'chrome.gyp:chrome_version_resources',
657             'chrome.gyp:installer_util_strings',
658             '../sandbox/sandbox.gyp:sandbox',
659             '../third_party/iaccessible2/iaccessible2.gyp:iaccessible2',
660             '../third_party/isimpledom/isimpledom.gyp:isimpledom',
661             '../ui/ui.gyp:ui_resources',
662             '../ui/ui.gyp:ui_resources_standard',
663           ],
664           'sources': [
665             '../webkit/glue/resources/aliasb.cur',
666             '../webkit/glue/resources/cell.cur',
667             '../webkit/glue/resources/col_resize.cur',
668             '../webkit/glue/resources/copy.cur',
669             '../webkit/glue/resources/none.cur',
670             '../webkit/glue/resources/row_resize.cur',
671             '../webkit/glue/resources/vertical_text.cur',
672             '../webkit/glue/resources/zoom_in.cur',
673             '../webkit/glue/resources/zoom_out.cur',
675             'app/chrome_dll.rc',
676             'test/data/resource.rc',
678             # TODO:  It would be nice to have these pulled in
679             # automatically from direct_dependent_settings in
680             # their various targets (net.gyp:net_resources, etc.),
681             # but that causes errors in other targets when
682             # resulting .res files get referenced multiple times.
683             '<(SHARED_INTERMEDIATE_DIR)/chrome/browser_resources.rc',
684             '<(SHARED_INTERMEDIATE_DIR)/chrome/common_resources.rc',
685             '<(SHARED_INTERMEDIATE_DIR)/chrome/renderer_resources.rc',
686             '<(SHARED_INTERMEDIATE_DIR)/chrome/theme_resources.rc',
687             '<(SHARED_INTERMEDIATE_DIR)/chrome/theme_resources_standard.rc',
688             '<(SHARED_INTERMEDIATE_DIR)/chrome_version/other_version.rc',
689             '<(SHARED_INTERMEDIATE_DIR)/net/net_resources.rc',
690             '<(SHARED_INTERMEDIATE_DIR)/ui/ui_resources/ui_resources.rc',
691             '<(SHARED_INTERMEDIATE_DIR)/ui/ui_resources_standard/ui_resources_standard.rc',
692             '<(SHARED_INTERMEDIATE_DIR)/webkit/webkit_chromium_resources.rc',
693             '<(SHARED_INTERMEDIATE_DIR)/webkit/webkit_resources.rc',
695             'browser/accessibility/accessibility_win_browsertest.cc',
696             'browser/accessibility/browser_views_accessibility_browsertest.cc',
697           ],
698           'conditions': [
699             ['win_use_allocator_shim==1', {
700               'dependencies': [
701                  '../base/allocator/allocator.gyp:allocator',
702               ],
703             }],
704           ],
705           'configurations': {
706             'Debug_Base': {
707               'msvs_settings': {
708                 'VCLinkerTool': {
709                   'LinkIncremental': '<(msvs_debug_link_nonincremental)',
710                 },
711               },
712             },
713           },  # configurations
714         }, { # else: OS != "win"
715           'sources!': [
716             'browser/ui/views/constrained_window_views_browsertest.cc',
717             'browser/ui/views/ssl_client_certificate_selector_browsertest.cc',
718           ],
719         }],  # OS != "win"
720       ],  # conditions
721     },
722     {
723       'target_name': 'ui_tests',
724       'type': 'executable',
725       'copies': [
726         {
727           'destination': '<(PRODUCT_DIR)',
728           'files': [
729             # Keep 'test_case.html.mock-http-headers' with 'test_case.html'.
730             '../ppapi/tests/test_case.html',
731             '../ppapi/tests/test_case.html.mock-http-headers',
732             '../ppapi/tests/test_page.css',
733             '../ppapi/native_client/tests/ppapi_tests/test_case.nmf',
734           ],
735         },
736         {
737           'destination': '<(PRODUCT_DIR)/test_url_loader_data',
738           'files': [
739             '../ppapi/tests/test_url_loader_data/hello.txt',
740           ],
741         },
742       ],
743       'dependencies': [
744         'browser',
745         'chrome',
746         'chrome_resources.gyp:chrome_resources',
747         'chrome_resources.gyp:chrome_strings',
748         'common',
749         'test_support_ui',
750         '../base/base.gyp:base',
751         '../net/net.gyp:net',
752         '../net/net.gyp:net_test_support',
753         '../build/temp_gyp/googleurl.gyp:googleurl',
754         '../skia/skia.gyp:skia',
755         '../testing/gmock.gyp:gmock',
756         '../testing/gtest.gyp:gtest',
757         '../third_party/icu/icu.gyp:icui18n',
758         '../third_party/icu/icu.gyp:icuuc',
759         '../third_party/libxml/libxml.gyp:libxml',
760         # run time dependencies
761         '../ppapi/ppapi_internal.gyp:ppapi_tests',
762         '../third_party/mesa/mesa.gyp:osmesa',
763         '../third_party/WebKit/Source/WebKit/chromium/WebKit.gyp:copy_TestNetscapePlugIn',
764       ],
765       'include_dirs': [
766         '..',
767       ],
768       'sources': [
769         'app/chrome_main_uitest.cc',
770         'browser/browser_encoding_uitest.cc',
771         'browser/custom_handlers/custom_handlers_uitest.cc',
772         'browser/download/save_page_uitest.cc',
773         'browser/default_plugin_uitest.cc',
774         'browser/fast_shutdown_uitest.cc',
775         'browser/history/multipart_uitest.cc',
776         'browser/history/redirect_uitest.cc',
777         'browser/iframe_uitest.cc',
778         'browser/images_uitest.cc',
779         'browser/locale_tests_uitest.cc',
780         'browser/media_uitest.cc',
781         'browser/metrics/metrics_service_uitest.cc',
782         'browser/net/load_timing_observer_uitest.cc',
783         'browser/prefs/pref_service_uitest.cc',
784         'browser/printing/printing_layout_uitest.cc',
785         'browser/process_singleton_linux_uitest.cc',
786         'browser/process_singleton_uitest.cc',
787         'browser/repost_form_warning_uitest.cc',
788         'browser/sanity_uitest.cc',
789         'browser/session_history_uitest.cc',
790         'browser/sessions/session_restore_uitest.cc',
791         'browser/tab_contents/view_source_uitest.cc',
792         'browser/tab_restore_uitest.cc',
793         'browser/unload_uitest.cc',
794         'browser/ui/login/login_prompt_uitest.cc',
795         'browser/ui/tests/browser_uitest.cc',
796         'browser/ui/views/find_bar_host_uitest.cc',
797         'browser/ui/webui/bookmarks_ui_uitest.cc',
798         'browser/ui/webui/ntp/new_tab_ui_uitest.cc',
799         'browser/ui/webui/options/chromeos/guest_mode_options_ui_uitest.cc',
800         'browser/ui/webui/options/options_ui_uitest.cc',
801         'browser/ui/webui/options/options_ui_uitest.h',
802         'browser/ui/webui/print_preview_ui_uitest.cc',
803         'common/chrome_switches_uitest.cc',
804         'common/logging_chrome_uitest.cc',
805         'renderer/external_extension_uitest.cc',
806         'renderer/loadtimes_extension_bindings_uitest.cc',
807         'test/automation/automation_proxy_uitest.cc',
808         'test/automation/automation_proxy_uitest.h',
809         'test/automation/extension_proxy_uitest.cc',
810         'test/base/chrome_process_util_uitest.cc',
811         'test/reliability/automated_ui_test_test.cc',
812         'test/ui/history_uitest.cc',
813         'test/ui/layout_plugin_uitest.cc',
814         'test/ui/named_interface_uitest.cc',
815         'test/ui/npapi_uitest.cc',
816         'test/ui/ppapi_uitest.cc',
817         'test/ui/sandbox_uitests.cc',
818         '../content/browser/appcache/appcache_ui_test.cc',
819         '../content/browser/in_process_webkit/dom_storage_uitest.cc',
820         '../content/browser/renderer_host/resource_dispatcher_host_uitest.cc',
821         '../content/worker/test/worker_uitest.cc',
822       ],
823       'conditions': [
824         ['disable_nacl==0 and disable_nacl_untrusted==0', {
825           'dependencies': [
826             '../ppapi/ppapi_untrusted.gyp:ppapi_nacl_tests',
827           ],
828         }],
829         ['target_arch!="arm"', {
830           'dependencies': [
831             '../webkit/webkit.gyp:copy_npapi_test_plugin',
832           ],
833         }],
834         ['toolkit_uses_gtk == 1', {
835           'dependencies': [
836             '../build/linux/system.gyp:gtk',
837             '../tools/xdisplaycheck/xdisplaycheck.gyp:xdisplaycheck',
838           ],
839         }, { # else: toolkit_uses_gtk != 1
840           'sources!': [
841             'browser/process_singleton_linux_uitest.cc',
842           ],
843         }],
844         ['toolkit_views==1', {
845           'dependencies': [
846             '../ui/views/views.gyp:views',
847           ],
848         }],
849         ['use_aura==1', {
850           'sources!': [
851             'test/automation/automation_proxy_uitest.cc',
852             'test/ui/npapi_uitest.cc',
853             'browser/default_plugin_uitest.cc',
854           ],
855           'dependencies': [
856             '../ui/aura/aura.gyp:aura',
857           ],
858         }],
859         ['OS=="mac"', {
860           # See the comment in this section of the unit_tests target for an
861           # explanation (crbug.com/43791 - libwebcore.a is too large to mmap).
862           'dependencies+++': [
863             '../third_party/WebKit/Source/WebCore/WebCore.gyp/WebCore.gyp:webcore',
864           ],
865           'sources!': [
866             # ProcessSingletonMac doesn't do anything.
867             'browser/process_singleton_uitest.cc',
868           ],
869         }],
870         ['OS=="win"', {
871           'include_dirs': [
872             '<(DEPTH)/third_party/wtl/include',
873           ],
874           'dependencies': [
875             'security_tests',  # run time dependency
876             'test_support_common',
877             '../google_update/google_update.gyp:google_update',
878           ],
879           'conditions': [
880             ['win_use_allocator_shim==1', {
881               'dependencies': [
882                 '<(allocator_target)',
883               ],
884             }],
885             ['use_aura==0', {
886               'dependencies': [
887                 # Runtime dependency
888                 'default_plugin/default_plugin.gyp:default_plugin',
889               ]
890             }],
891           ],
892           'link_settings': {
893             'libraries': [
894               '-lOleAcc.lib',
895             ],
896           },
897           'configurations': {
898             'Debug_Base': {
899               'msvs_settings': {
900                 'VCLinkerTool': {
901                   'LinkIncremental': '<(msvs_large_module_debug_link_mode)',
902                 },
903               },
904             },
905           },
906         }, { # else: OS != "win"
907           'sources!': [
908             # TODO(port): http://crbug.com/45770
909             'browser/printing/printing_layout_uitest.cc',
910           ],
911         }],
912         ['os_posix == 1 and OS != "mac"', {
913           'conditions': [
914             ['linux_use_tcmalloc==1', {
915               'dependencies': [
916                 '../base/allocator/allocator.gyp:allocator',
917               ],
918             }],
919           ],
920         }],
921         ['chromeos==0', {
922           'sources/': [
923             ['exclude', '^browser/ui/webui/options/chromeos/'],
924             ['exclude', '^browser/ui/webui/options2/chromeos/'],
925           ],
926         }],
927       ],
928     },
929     {
930       # Third-party support sources for chromedriver_lib.
931       'target_name': 'chromedriver_support',
932       'type': 'static_library',
933       'sources': [
934         '../third_party/mongoose/mongoose.c',
935         '../third_party/mongoose/mongoose.h',
936         '../third_party/webdriver/atoms.cc',
937         '../third_party/webdriver/atoms.h',
938       ],
939     },
940     {
941       # chromedriver is the chromium implementation of WebDriver.
942       # See http://www.chromium.org/developers/testing/webdriver-for-chrome
943       'target_name': 'chromedriver_lib',
944       'type': 'static_library',
945       'dependencies': [
946         'browser',
947         'chrome',
948         'chrome_resources.gyp:chrome_resources',
949         'chrome_resources.gyp:chrome_strings',
950         'chromedriver_support',
951         'common',
952         'syncapi_core',
953         'test_support_ui',
954         '../base/base.gyp:base',
955         '../build/temp_gyp/googleurl.gyp:googleurl',
956         '../net/net.gyp:net',
957         '../skia/skia.gyp:skia',
958         '../testing/gtest.gyp:gtest',
959         '../third_party/icu/icu.gyp:icui18n',
960         '../third_party/icu/icu.gyp:icuuc',
961         '../third_party/libxml/libxml.gyp:libxml',
962       ],
963       'include_dirs': [
964         '..',
965       ],
966       'sources': [
967         'test/webdriver/commands/alert_commands.cc',
968         'test/webdriver/commands/alert_commands.h',
969         'test/webdriver/commands/appcache_status_command.cc',
970         'test/webdriver/commands/appcache_status_command.h',
971         'test/webdriver/commands/browser_connection_commands.cc',
972         'test/webdriver/commands/browser_connection_commands.h',
973         'test/webdriver/commands/chrome_commands.cc',
974         'test/webdriver/commands/chrome_commands.h',
975         'test/webdriver/commands/command.cc',
976         'test/webdriver/commands/command.h',
977         'test/webdriver/commands/cookie_commands.cc',
978         'test/webdriver/commands/cookie_commands.h',
979         'test/webdriver/commands/create_session.cc',
980         'test/webdriver/commands/create_session.h',
981         'test/webdriver/commands/execute_async_script_command.cc',
982         'test/webdriver/commands/execute_async_script_command.h',
983         'test/webdriver/commands/execute_command.cc',
984         'test/webdriver/commands/execute_command.h',
985         'test/webdriver/commands/find_element_commands.cc',
986         'test/webdriver/commands/find_element_commands.h',
987         'test/webdriver/commands/log_command.cc',
988         'test/webdriver/commands/log_command.h',
989         'test/webdriver/commands/navigate_commands.cc',
990         'test/webdriver/commands/navigate_commands.h',
991         'test/webdriver/commands/mouse_commands.cc',
992         'test/webdriver/commands/mouse_commands.h',
993         'test/webdriver/commands/response.h',
994         'test/webdriver/commands/response.cc',
995         'test/webdriver/commands/screenshot_command.cc',
996         'test/webdriver/commands/screenshot_command.h',
997         'test/webdriver/commands/session_with_id.cc',
998         'test/webdriver/commands/session_with_id.h',
999         'test/webdriver/commands/set_timeout_commands.cc',
1000         'test/webdriver/commands/set_timeout_commands.h',
1001         'test/webdriver/commands/source_command.cc',
1002         'test/webdriver/commands/source_command.h',
1003         'test/webdriver/commands/target_locator_commands.cc',
1004         'test/webdriver/commands/target_locator_commands.h',
1005         'test/webdriver/commands/title_command.cc',
1006         'test/webdriver/commands/title_command.h',
1007         'test/webdriver/commands/url_command.cc',
1008         'test/webdriver/commands/url_command.h',
1009         'test/webdriver/commands/webdriver_command.cc',
1010         'test/webdriver/commands/webdriver_command.h',
1011         'test/webdriver/commands/webelement_commands.cc',
1012         'test/webdriver/commands/webelement_commands.h',
1013         'test/webdriver/frame_path.cc',
1014         'test/webdriver/frame_path.h',
1015         'test/webdriver/http_response.cc',
1016         'test/webdriver/http_response.h',
1017         'test/webdriver/keycode_text_conversion.h',
1018         'test/webdriver/keycode_text_conversion_linux.cc',
1019         'test/webdriver/keycode_text_conversion_mac.mm',
1020         'test/webdriver/keycode_text_conversion_win.cc',
1021         'test/webdriver/webdriver_automation.cc',
1022         'test/webdriver/webdriver_automation.h',
1023         'test/webdriver/webdriver_basic_types.cc',
1024         'test/webdriver/webdriver_basic_types.h',
1025         'test/webdriver/webdriver_capabilities_parser.cc',
1026         'test/webdriver/webdriver_capabilities_parser.h',
1027         'test/webdriver/webdriver_dispatch.cc',
1028         'test/webdriver/webdriver_dispatch.h',
1029         'test/webdriver/webdriver_element_id.cc',
1030         'test/webdriver/webdriver_element_id.h',
1031         'test/webdriver/webdriver_error.cc',
1032         'test/webdriver/webdriver_error.h',
1033         'test/webdriver/webdriver_key_converter.cc',
1034         'test/webdriver/webdriver_key_converter.h',
1035         'test/webdriver/webdriver_logging.cc',
1036         'test/webdriver/webdriver_logging.h',
1037         'test/webdriver/webdriver_session.cc',
1038         'test/webdriver/webdriver_session.h',
1039         'test/webdriver/webdriver_session_manager.cc',
1040         'test/webdriver/webdriver_session_manager.h',
1041         'test/webdriver/webdriver_util.cc',
1042         'test/webdriver/webdriver_util.h',
1043         'test/webdriver/webdriver_util_mac.mm',
1044       ],
1045       'conditions': [
1046         ['toolkit_uses_gtk == 1', {
1047           'dependencies': [
1048             '../build/linux/system.gyp:gtk',
1049             '../tools/xdisplaycheck/xdisplaycheck.gyp:xdisplaycheck',
1050           ],
1051         }],
1052         ['OS=="linux" and toolkit_views==1', {
1053           'dependencies': [
1054             '../ui/views/views.gyp:views',
1055           ],
1056         }],
1057         ['os_posix == 1 and OS != "mac"', {
1058           'conditions': [
1059             ['linux_use_tcmalloc==1', {
1060               'dependencies': [
1061                 '../base/allocator/allocator.gyp:allocator',
1062               ],
1063             }],
1064           ],
1065         }],
1066       ],
1067     },
1068     {
1069       'target_name': 'chromedriver',
1070       'type': 'executable',
1071       'dependencies': [
1072         'chromedriver_lib',
1073         '../base/base.gyp:base',
1074         '../skia/skia.gyp:skia',
1075         '../testing/gtest.gyp:gtest',
1076       ],
1077       'include_dirs': [
1078         '..',
1079       ],
1080       'sources': [
1081         'test/webdriver/webdriver_server.cc',
1082       ],
1083       'conditions': [
1084         ['OS=="win"', {
1085           'conditions': [
1086             ['win_use_allocator_shim==1', {
1087               'dependencies': [
1088                 '<(allocator_target)',
1089               ],
1090             }],
1091           ],
1092           'link_settings': {
1093             'libraries': [
1094               '-lOleAcc.lib',
1095               '-lws2_32.lib',
1096             ],
1097           },
1098           'configurations': {
1099             'Debug': {
1100               'msvs_settings': {
1101                 'VCLinkerTool': {
1102                   'LinkIncremental': '<(msvs_large_module_debug_link_mode)',
1103                 },
1104               },
1105             },
1106           },
1107         }],
1108       ]
1109     },
1110     {
1111       'target_name': 'chromedriver_unittests',
1112       'type': 'executable',
1113       'dependencies': [
1114         'chromedriver_lib',
1115         '../base/base.gyp:test_support_base',
1116         '../testing/gtest.gyp:gtest',
1117         '../skia/skia.gyp:skia',
1118       ],
1119       'include_dirs': [
1120         '..',
1121       ],
1122       'sources': [
1123         '../base/test/run_all_unittests.cc',
1124         'test/webdriver/commands/set_timeout_commands_unittest.cc',
1125         'test/webdriver/frame_path_unittest.cc',
1126         'test/webdriver/http_response_unittest.cc',
1127         'test/webdriver/keycode_text_conversion_unittest.cc',
1128         'test/webdriver/webdriver_capabilities_parser_unittest.cc',
1129         'test/webdriver/webdriver_dispatch_unittest.cc',
1130         'test/webdriver/webdriver_key_converter_unittest.cc',
1131         'test/webdriver/webdriver_test_util.cc',
1132         'test/webdriver/webdriver_test_util.h',
1133         'test/webdriver/webdriver_util_unittest.cc',
1134       ],
1135       'conditions': [
1136         ['OS=="win"', {
1137           'conditions': [
1138             ['win_use_allocator_shim==1', {
1139               'dependencies': [
1140                 '<(allocator_target)',
1141               ],
1142             }],
1143           ],
1144           'link_settings': {
1145             'libraries': [
1146               '-lOleAcc.lib',
1147               '-lws2_32.lib',
1148             ],
1149           },
1150           'configurations': {
1151             'Debug': {
1152               'msvs_settings': {
1153                 'VCLinkerTool': {
1154                   'LinkIncremental': '<(msvs_large_module_debug_link_mode)',
1155                 },
1156               },
1157             },
1158           },
1159         }],
1160       ],
1161     },
1162     {
1163       'target_name': 'unit_tests',
1164       'type': 'executable',
1165       'dependencies': [
1166         # unit tests should only depend on
1167         # 1) everything that the chrome binaries depend on:
1168         '<@(chromium_dependencies)',
1169         # 2) test-specific support libraries:
1170         '../gpu/gpu.gyp:gpu_unittest_utils',
1171         '../media/media.gyp:media_test_support',
1172         '../net/net.gyp:net',
1173         '../net/net.gyp:net_test_support',
1174         '../testing/gmock.gyp:gmock',
1175         '../testing/gtest.gyp:gtest',
1176         'test_support_common',
1177         'test_support_sync',
1178         'test_support_syncapi',
1179         'test_support_syncapi_service',
1180         'test_support_unit',
1181         # 3) anything tests directly depend on
1182         '../skia/skia.gyp:skia',
1183         '../third_party/bzip2/bzip2.gyp:bzip2',
1184         '../third_party/cld/cld.gyp:cld',
1185         '../third_party/icu/icu.gyp:icui18n',
1186         '../third_party/icu/icu.gyp:icuuc',
1187         '../third_party/leveldatabase/leveldatabase.gyp:leveldatabase',
1188         '../third_party/libjingle/libjingle.gyp:libjingle',
1189         '../third_party/libxml/libxml.gyp:libxml',
1190         '../ui/gfx/gl/gl.gyp:gl',
1191         '../ui/ui.gyp:ui_resources',
1192         '../ui/ui.gyp:ui_resources_standard',
1193         '../ui/ui.gyp:ui_test_support',
1194         '../v8/tools/gyp/v8.gyp:v8',
1195         'chrome_resources.gyp:chrome_resources',
1196         'chrome_resources.gyp:chrome_strings',
1197       ],
1198       'include_dirs': [
1199         '..',
1200       ],
1201       # TODO(scr): Use this in browser_tests too.
1202       'includes': [
1203         'js_unittest_rules.gypi',
1204       ],
1205       'defines': [
1206         'CLD_WINDOWS',
1207       ],
1208       'direct_dependent_settings': {
1209         'defines': [
1210           'CLD_WINDOWS',
1211         ],
1212       },
1213       'sources': [
1214         'app/breakpad_mac_stubs.mm',
1215         'app/chrome_dll.rc',
1216         # All unittests in browser, common, renderer and service.
1217         'browser/about_flags_unittest.cc',
1218         'browser/accessibility/browser_accessibility_mac_unittest.mm',
1219         'browser/app_controller_mac_unittest.mm',
1220         'browser/autocomplete/autocomplete_edit_unittest.cc',
1221         'browser/autocomplete/autocomplete_popup_model_unittest.cc',
1222         'browser/autocomplete/autocomplete_result_unittest.cc',
1223         'browser/autocomplete/autocomplete_unittest.cc',
1224         'browser/autocomplete/builtin_provider_unittest.cc',
1225         'browser/autocomplete/extension_app_provider_unittest.cc',
1226         'browser/autocomplete/history_contents_provider_unittest.cc',
1227         'browser/autocomplete/history_quick_provider_unittest.cc',
1228         'browser/autocomplete/history_url_provider_unittest.cc',
1229         'browser/autocomplete/keyword_provider_unittest.cc',
1230         'browser/autocomplete/network_action_predictor_unittest.cc',
1231         'browser/autocomplete/network_action_predictor_database_unittest.cc',
1232         'browser/autocomplete/search_provider_unittest.cc',
1233         'browser/autocomplete/shortcuts_provider_unittest.cc',
1234         'browser/autocomplete_history_manager_unittest.cc',
1235         'browser/autofill/address_field_unittest.cc',
1236         'browser/autofill/address_unittest.cc',
1237         'browser/autofill/autofill_country_unittest.cc',
1238         'browser/autofill/autofill_download_unittest.cc',
1239         'browser/autofill/autofill_field_unittest.cc',
1240         'browser/autofill/autofill_ie_toolbar_import_win_unittest.cc',
1241         'browser/autofill/autofill_manager_unittest.cc',
1242         'browser/autofill/autofill_merge_unittest.cc',
1243         'browser/autofill/autofill_metrics_unittest.cc',
1244         'browser/autofill/autofill_profile_unittest.cc',
1245         'browser/autofill/autofill_type_unittest.cc',
1246         'browser/autofill/autofill_xml_parser_unittest.cc',
1247         'browser/autofill/contact_info_unittest.cc',
1248         'browser/autofill/credit_card_field_unittest.cc',
1249         'browser/autofill/credit_card_unittest.cc',
1250         'browser/autofill/form_field_unittest.cc',
1251         'browser/autofill/form_structure_unittest.cc',
1252         'browser/autofill/name_field_unittest.cc',
1253         'browser/autofill/personal_data_manager_unittest.cc',
1254         'browser/autofill/phone_field_unittest.cc',
1255         'browser/autofill/phone_number_unittest.cc',
1256         'browser/autofill/phone_number_i18n_unittest.cc',
1257         'browser/autofill/select_control_handler_unittest.cc',
1258         'browser/automation/automation_provider_unittest.cc',
1259         'browser/automation/automation_tab_helper_unittest.cc',
1260         'browser/background/background_application_list_model_unittest.cc',
1261         'browser/background/background_contents_service_unittest.cc',
1262         'browser/background/background_mode_manager_unittest.cc',
1263         'browser/bookmarks/bookmark_codec_unittest.cc',
1264         'browser/bookmarks/bookmark_context_menu_controller_unittest.cc',
1265         'browser/bookmarks/bookmark_expanded_state_tracker_unittest.cc',
1266         'browser/bookmarks/bookmark_extension_helpers_unittest.cc',
1267         'browser/bookmarks/bookmark_html_writer_unittest.cc',
1268         'browser/bookmarks/bookmark_index_unittest.cc',
1269         'browser/bookmarks/bookmark_model_test_utils.cc',
1270         'browser/bookmarks/bookmark_model_test_utils.h',
1271         'browser/bookmarks/bookmark_model_unittest.cc',
1272         'browser/bookmarks/bookmark_node_data_unittest.cc',
1273         'browser/bookmarks/bookmark_utils_unittest.cc',
1274         'browser/bookmarks/recently_used_folders_combo_model_unittest.cc',
1275         'browser/browser_about_handler_unittest.cc',
1276         'browser/browser_commands_unittest.cc',
1277         'browser/browsing_data_appcache_helper_unittest.cc',
1278         'browser/browsing_data_cookie_helper_unittest.cc',
1279         'browser/browsing_data_database_helper_unittest.cc',
1280         'browser/browsing_data_file_system_helper_unittest.cc',
1281         'browser/browsing_data_indexed_db_helper_unittest.cc',
1282         'browser/browsing_data_local_storage_helper_unittest.cc',
1283         'browser/browsing_data_quota_helper_unittest.cc',
1284         'browser/browsing_data_remover_unittest.cc',
1285         'browser/chrome_browser_application_mac_unittest.mm',
1286         'browser/chrome_browser_main_unittest.cc',
1287         'browser/chrome_page_zoom_unittest.cc',
1288         'browser/chromeos/cros/network_library.cc',
1289         'browser/chromeos/cros/network_library.h',
1290         'browser/chromeos/cros/network_library_unittest.cc',
1291         'browser/chromeos/cros/network_ui_data_unittest.cc',
1292         'browser/chromeos/cros/onc_network_parser_unittest.cc',
1293         'browser/chromeos/cros_settings_unittest.cc',
1294         'browser/chromeos/customization_document_unittest.cc',
1295         'browser/chromeos/dbus/cros_dbus_service_unittest.cc',
1296         'browser/chromeos/dbus/proxy_resolution_service_provider_unittest.cc',
1297         'browser/chromeos/extensions/file_browser_notifications_unittest.cc',
1298         'browser/chromeos/external_metrics_unittest.cc',
1299         'browser/chromeos/gview_request_interceptor_unittest.cc',
1300         'browser/chromeos/input_method/candidate_window_view_unittest.cc',
1301         'browser/chromeos/input_method/hotkey_manager_unittest.cc',
1302         'browser/chromeos/input_method/ibus_controller_unittest.cc',
1303         'browser/chromeos/input_method/input_method_util_unittest.cc',
1304         'browser/chromeos/input_method/virtual_keyboard_selector_unittest.cc',
1305         'browser/chromeos/input_method/xkeyboard_unittest.cc',
1306         'browser/chromeos/language_preferences_unittest.cc',
1307         'browser/chromeos/login/authenticator_unittest.cc',
1308         'browser/chromeos/login/cookie_fetcher_unittest.cc',
1309         'browser/chromeos/login/cryptohome_op_unittest.cc',
1310         'browser/chromeos/login/mock_auth_attempt_state_resolver.cc',
1311         'browser/chromeos/login/mock_auth_attempt_state_resolver.h',
1312         'browser/chromeos/login/mock_auth_response_handler.cc',
1313         'browser/chromeos/login/mock_login_status_consumer.cc',
1314         'browser/chromeos/login/mock_login_status_consumer.h',
1315         'browser/chromeos/login/mock_owner_key_utils.cc',
1316         'browser/chromeos/login/mock_owner_key_utils.h',
1317         'browser/chromeos/login/mock_ownership_service.cc',
1318         'browser/chromeos/login/mock_ownership_service.h',
1319         'browser/chromeos/login/mock_url_fetchers.cc',
1320         'browser/chromeos/login/mock_url_fetchers.h',
1321         'browser/chromeos/login/mock_user_manager.cc',
1322         'browser/chromeos/login/mock_user_manager.h',
1323         'browser/chromeos/login/online_attempt_unittest.cc',
1324         'browser/chromeos/login/owner_key_utils_unittest.cc',
1325         'browser/chromeos/login/owner_manager_unittest.cc',
1326         'browser/chromeos/login/ownership_service_unittest.cc',
1327         'browser/chromeos/login/parallel_authenticator_unittest.cc',
1328         'browser/chromeos/login/signed_settings_helper_unittest.cc',
1329         'browser/chromeos/login/signed_settings_cache_unittest.cc',
1330         'browser/chromeos/login/signed_settings_unittest.cc',
1331         'browser/chromeos/login/wizard_accessibility_handler_unittest.cc',
1332         'browser/chromeos/mobile_config_unittest.cc',
1333         'browser/chromeos/network_message_observer_unittest.cc',
1334         'browser/chromeos/notifications/desktop_notifications_unittest.cc',
1335         'browser/chromeos/offline/offline_load_page_unittest.cc',
1336         'browser/chromeos/process_proxy/process_output_watcher_unittest.cc',
1337         'browser/chromeos/proxy_config_service_impl_unittest.cc',
1338         'browser/chromeos/status/input_method_menu_unittest.cc',
1339         'browser/chromeos/status/network_menu_icon.cc',
1340         'browser/chromeos/status/network_menu_icon_unittest.cc',
1341         'browser/chromeos/stub_cros_settings_provider_unittest.cc',
1342         'browser/chromeos/system/mock_statistics_provider.cc',
1343         'browser/chromeos/system/mock_statistics_provider.h',
1344         'browser/chromeos/system/name_value_pairs_parser_unittest.cc',
1345         'browser/chromeos/version_loader_unittest.cc',
1346         'browser/chromeos/web_socket_proxy_helper_unittest.cc',
1347         'browser/command_updater_unittest.cc',
1348         'browser/component_updater/component_installers_unittest.cc',
1349         'browser/component_updater/component_updater_service_unittest.cc',
1350         'browser/component_updater/component_updater_interceptor.cc',
1351         'browser/component_updater/component_updater_interceptor.h',
1352         'browser/content_settings/content_settings_default_provider_unittest.cc',
1353         'browser/content_settings/content_settings_mock_observer.cc',
1354         'browser/content_settings/content_settings_mock_observer.h',
1355         'browser/content_settings/content_settings_mock_provider.cc',
1356         'browser/content_settings/content_settings_mock_provider.h',
1357         'browser/content_settings/content_settings_origin_identifier_value_map_unittest.cc',
1358         'browser/content_settings/content_settings_policy_provider_unittest.cc',
1359         'browser/content_settings/content_settings_pref_provider_unittest.cc',
1360         'browser/content_settings/content_settings_provider_unittest.cc',
1361         'browser/content_settings/content_settings_rule_unittest.cc',
1362         'browser/content_settings/content_settings_utils_unittest.cc',
1363         'browser/content_settings/cookie_settings_unittest.cc',
1364         'browser/content_settings/host_content_settings_map_unittest.cc',
1365         'browser/content_settings/mock_settings_observer.cc',
1366         'browser/content_settings/mock_settings_observer.h',
1367         'browser/content_settings/tab_specific_content_settings_unittest.cc',
1368         'browser/cookies_tree_model_unittest.cc',
1369         'browser/custom_handlers/protocol_handler_registry_unittest.cc',
1370         'browser/diagnostics/diagnostics_model_unittest.cc',
1371         'browser/download/download_item_unittest.cc',
1372         'browser/download/download_manager_unittest.cc',
1373         'browser/download/download_request_infobar_delegate_unittest.cc',
1374         'browser/download/download_request_limiter_unittest.cc',
1375         'browser/enumerate_modules_model_unittest_win.cc',
1376         'browser/event_disposition.cc',
1377         'browser/event_disposition.h',
1378         'browser/extensions/api/socket/socket_unittest.cc',
1379         'browser/extensions/api/socket/socket_api_controller_unittest.cc',
1380         'browser/extensions/api/socket/socket_event_notifier_unittest.cc',
1381         'browser/extensions/app_notification_manager_sync_unittest.cc',
1382         'browser/extensions/app_notification_manager_unittest.cc',
1383         'browser/extensions/app_notification_storage_unittest.cc',
1384         'browser/extensions/app_notification_test_util.cc',
1385         'browser/extensions/app_notify_channel_setup_unittest.cc',
1386         'browser/extensions/apps_promo_unittest.cc',
1387         'browser/extensions/component_loader_unittest.cc',
1388         'browser/extensions/convert_user_script_unittest.cc',
1389         'browser/extensions/convert_web_app_unittest.cc',
1390         'browser/extensions/extension_content_settings_store_unittest.cc',
1391         'browser/extensions/extension_content_settings_unittest.cc',
1392         'browser/extensions/extension_cookies_unittest.cc',
1393         'browser/extensions/extension_creator_filter_unittest.cc',
1394         'browser/extensions/extension_event_router_forwarder_unittest.cc',
1395         'browser/extensions/extension_icon_manager_unittest.cc',
1396         'browser/extensions/extension_idle_api_unittest.cc',
1397         'browser/extensions/extension_info_map_unittest.cc',
1398         'browser/extensions/extension_menu_manager_unittest.cc',
1399         'browser/extensions/extension_omnibox_unittest.cc',
1400         'browser/extensions/extension_pref_value_map_unittest.cc',
1401         'browser/extensions/extension_prefs_unittest.cc',
1402         'browser/extensions/extension_process_manager_unittest.cc',
1403         'browser/extensions/extension_proxy_api_helpers_unittest.cc',
1404         'browser/extensions/extension_service_unittest.cc',
1405         'browser/extensions/extension_service_unittest.h',
1406         'browser/extensions/extension_special_storage_policy_unittest.cc',
1407         'browser/extensions/extension_sync_data_unittest.cc',
1408         'browser/extensions/extension_tts_api_controller_unittest.cc',
1409         'browser/extensions/extension_ui_unittest.cc',
1410         'browser/extensions/extension_updater_unittest.cc',
1411         'browser/extensions/extension_warning_set_unittest.cc',
1412         'browser/extensions/extension_webnavigation_unittest.cc',
1413         'browser/extensions/extension_webrequest_api_unittest.cc',
1414         'browser/extensions/extension_webrequest_time_tracker_unittest.cc',
1415         'browser/extensions/extensions_quota_service_unittest.cc',
1416         'browser/extensions/external_policy_extension_loader_unittest.cc',
1417         'browser/extensions/file_reader_unittest.cc',
1418         'browser/extensions/image_loading_tracker_unittest.cc',
1419         'browser/extensions/key_identifier_conversion_views_unittest.cc',
1420         'browser/extensions/network_delay_listener_unittest.cc',
1421         'browser/extensions/process_map_unittest.cc',
1422         'browser/extensions/sandboxed_extension_unpacker_unittest.cc',
1423         'browser/extensions/settings/settings_frontend_unittest.cc',
1424         'browser/extensions/settings/settings_leveldb_storage_unittest.cc',
1425         'browser/extensions/settings/settings_quota_unittest.cc',
1426         'browser/extensions/settings/settings_storage_cache_unittest.cc',
1427         'browser/extensions/settings/settings_storage_unittest.cc',
1428         'browser/extensions/settings/settings_storage_unittest.h',
1429         'browser/extensions/settings/settings_sync_unittest.cc',
1430         'browser/extensions/settings/settings_test_util.cc',
1431         'browser/extensions/settings/settings_test_util.h',
1432         'browser/extensions/settings/testing_settings_storage_unittest.cc',
1433         'browser/extensions/user_script_listener_unittest.cc',
1434         'browser/extensions/user_script_master_unittest.cc',
1435         'browser/external_protocol/external_protocol_handler_unittest.cc',
1436         'browser/favicon/favicon_handler_unittest.cc',
1437         'browser/first_run/first_run_unittest.cc',
1438         'browser/fragmentation_checker_unittest_win.cc',
1439         'browser/geolocation/chrome_geolocation_permission_context_unittest.cc',
1440         'browser/geolocation/geolocation_settings_state_unittest.cc',
1441         'browser/geolocation/wifi_data_provider_unittest_chromeos.cc',
1442         'browser/global_keyboard_shortcuts_mac_unittest.mm',
1443         'browser/google/google_update_settings_unittest.cc',
1444         'browser/google/google_url_tracker_unittest.cc',
1445         'browser/google/google_util_unittest.cc',
1446         'browser/history/expire_history_backend_unittest.cc',
1447         'browser/history/history_backend_unittest.cc',
1448         'browser/history/history_querying_unittest.cc',
1449         'browser/history/history_types_unittest.cc',
1450         'browser/history/history_unittest.cc',
1451         'browser/history/history_unittest_base.cc',
1452         'browser/history/history_unittest_base.h',
1453         'browser/history/in_memory_url_index_types_unittest.cc',
1454         'browser/history/in_memory_url_index_unittest.cc',
1455         'browser/history/query_parser_unittest.cc',
1456         'browser/history/shortcuts_backend_unittest.cc',
1457         'browser/history/shortcuts_database_unittest.cc',
1458         'browser/history/snippet_unittest.cc',
1459         'browser/history/starred_url_database_unittest.cc',
1460         'browser/history/text_database_manager_unittest.cc',
1461         'browser/history/text_database_unittest.cc',
1462         'browser/history/thumbnail_database_unittest.cc',
1463         'browser/history/top_sites_database_unittest.cc',
1464         'browser/history/top_sites_unittest.cc',
1465         'browser/history/url_database_unittest.cc',
1466         'browser/history/visit_database_unittest.cc',
1467         'browser/history/visit_tracker_unittest.cc',
1468         'browser/importer/firefox_importer_unittest.cc',
1469         'browser/importer/firefox_importer_unittest_messages_internal.h',
1470         'browser/importer/firefox_importer_unittest_utils.h',
1471         'browser/importer/firefox_importer_unittest_utils_mac.cc',
1472         'browser/importer/firefox_importer_utils_unittest.cc',
1473         'browser/importer/firefox_profile_lock_unittest.cc',
1474         'browser/importer/firefox_proxy_settings_unittest.cc',
1475         'browser/importer/importer_unittest.cc',
1476         'browser/importer/safari_importer_unittest.mm',
1477         'browser/importer/toolbar_importer_unittest.cc',
1478         'browser/instant/promo_counter_unittest.cc',
1479         'browser/intents/register_intent_handler_infobar_delegate_unittest.cc',
1480         'browser/intents/web_intents_registry_unittest.cc',
1481         'browser/internal_auth_unittest.cc',
1482         'browser/language_usage_metrics_unittest.cc',
1483         'browser/mac/keystone_glue_unittest.mm',
1484         'browser/media/media_internals_unittest.cc',
1485         'browser/metrics/metrics_log_unittest.cc',
1486         'browser/metrics/metrics_log_serializer_unittest.cc',
1487         'browser/metrics/metrics_response_unittest.cc',
1488         'browser/metrics/metrics_service_unittest.cc',
1489         'browser/metrics/thread_watcher_unittest.cc',
1490         'browser/mock_keychain_mac.cc',
1491         'browser/mock_keychain_mac.h',
1492         'browser/net/chrome_fraudulent_certificate_reporter_unittest.cc',
1493         'browser/net/chrome_net_log_unittest.cc',
1494         'browser/net/connection_tester_unittest.cc',
1495         'browser/net/gaia/gaia_oauth_fetcher_unittest.cc',
1496         'browser/net/gaia/token_service_unittest.cc',
1497         'browser/net/gaia/token_service_unittest.h',
1498         'browser/net/http_server_properties_manager_unittest.cc',
1499         'browser/net/load_timing_observer_unittest.cc',
1500         'browser/net/network_stats_unittest.cc',
1501         'browser/net/passive_log_collector_unittest.cc',
1502         'browser/net/predictor_unittest.cc',
1503         'browser/net/pref_proxy_config_tracker_impl_unittest.cc',
1504         'browser/net/quoted_printable_unittest.cc',
1505         'browser/net/sqlite_origin_bound_cert_store_unittest.cc',
1506         'browser/net/sqlite_persistent_cookie_store_unittest.cc',
1507         'browser/net/ssl_config_service_manager_pref_unittest.cc',
1508         'browser/net/url_fixer_upper_unittest.cc',
1509         'browser/net/url_info_unittest.cc',
1510         'browser/notifications/desktop_notification_service_unittest.cc',
1511         'browser/oom_priority_manager_unittest.cc',
1512         'browser/parsers/metadata_parser_filebase_unittest.cc',
1513         'browser/password_manager/encryptor_password_mac_unittest.cc',
1514         'browser/password_manager/encryptor_unittest.cc',
1515         'browser/password_manager/login_database_unittest.cc',
1516         'browser/password_manager/native_backend_gnome_x_unittest.cc',
1517         'browser/password_manager/native_backend_kwallet_x_unittest.cc',
1518         'browser/password_manager/password_form_data.cc',
1519         'browser/password_manager/password_form_manager_unittest.cc',
1520         'browser/password_manager/password_manager_unittest.cc',
1521         'browser/password_manager/password_store_default_unittest.cc',
1522         'browser/password_manager/password_store_mac_unittest.cc',
1523         'browser/password_manager/password_store_win_unittest.cc',
1524         'browser/password_manager/password_store_x_unittest.cc',
1525         'browser/plugin_prefs_unittest.cc',
1526         'browser/policy/asynchronous_policy_loader_unittest.cc',
1527         'browser/policy/asynchronous_policy_provider_unittest.cc',
1528         'browser/policy/asynchronous_policy_test_base.cc',
1529         'browser/policy/asynchronous_policy_test_base.h',
1530         'browser/policy/auto_enrollment_client_unittest.cc',
1531         'browser/policy/cloud_policy_controller_unittest.cc',
1532         'browser/policy/cloud_policy_provider_unittest.cc',
1533         'browser/policy/cloud_policy_subsystem_unittest.cc',
1534         'browser/policy/config_dir_policy_provider_unittest.cc',
1535         'browser/policy/configuration_policy_handler_chromeos_unittest.cc',
1536         'browser/policy/configuration_policy_pref_store_unittest.cc',
1537         'browser/policy/configuration_policy_provider_mac_unittest.cc',
1538         'browser/policy/configuration_policy_provider_test.cc',
1539         'browser/policy/configuration_policy_provider_test.h',
1540         'browser/policy/configuration_policy_provider_win_unittest.cc',
1541         'browser/policy/configuration_policy_reader_unittest.cc',
1542         'browser/policy/device_management_backend_mock.cc',
1543         'browser/policy/device_management_backend_mock.h',
1544         'browser/policy/device_management_service_unittest.cc',
1545         'browser/policy/device_policy_cache_unittest.cc',
1546         'browser/policy/device_status_collector_unittest.cc',
1547         'browser/policy/device_token_fetcher_unittest.cc',
1548         'browser/policy/enterprise_install_attributes_unittest.cc',
1549         'browser/policy/file_based_policy_provider_unittest.cc',
1550         'browser/policy/logging_work_scheduler.cc',
1551         'browser/policy/logging_work_scheduler.h',
1552         'browser/policy/logging_work_scheduler_unittest.cc',
1553         'browser/policy/mock_configuration_policy_provider.cc',
1554         'browser/policy/mock_configuration_policy_provider.h',
1555         'browser/policy/mock_configuration_policy_reader.cc',
1556         'browser/policy/mock_configuration_policy_reader.h',
1557         'browser/policy/mock_device_management_backend.cc',
1558         'browser/policy/mock_device_management_backend.h',
1559         'browser/policy/network_configuration_updater_unittest.cc',
1560         'browser/policy/policy_map_unittest.cc',
1561         'browser/policy/policy_path_parser_unittest.cc',
1562         'browser/policy/testing_cloud_policy_subsystem.cc',
1563         'browser/policy/testing_cloud_policy_subsystem.h',
1564         'browser/policy/testing_policy_url_fetcher_factory.cc',
1565         'browser/policy/testing_policy_url_fetcher_factory.h',
1566         'browser/policy/url_blacklist_manager_unittest.cc',
1567         'browser/policy/user_policy_cache_unittest.cc',
1568         'browser/preferences_mock_mac.cc',
1569         'browser/preferences_mock_mac.h',
1570         'browser/prefs/command_line_pref_store_unittest.cc',
1571         'browser/prefs/incognito_mode_prefs_unittest.cc',
1572         'browser/prefs/overlay_user_pref_store_unittest.cc',
1573         'browser/prefs/pref_change_registrar_unittest.cc',
1574         'browser/prefs/pref_member_unittest.cc',
1575         'browser/prefs/pref_model_associator_unittest.cc',
1576         'browser/prefs/pref_notifier_impl_unittest.cc',
1577         'browser/prefs/pref_service_unittest.cc',
1578         'browser/prefs/pref_set_observer_unittest.cc',
1579         'browser/prefs/pref_value_map_unittest.cc',
1580         'browser/prefs/pref_value_store_unittest.cc',
1581         'browser/prefs/proxy_config_dictionary_unittest.cc',
1582         'browser/prefs/proxy_policy_unittest.cc',
1583         'browser/prefs/proxy_prefs_unittest.cc',
1584         'browser/prefs/scoped_user_pref_update_unittest.cc',
1585         'browser/prefs/session_startup_pref_unittest.cc',
1586         'browser/prerender/prerender_history_unittest.cc',
1587         'browser/prerender/prerender_manager_unittest.cc',
1588         'browser/prerender/prerender_tracker_unittest.cc',
1589         'browser/prerender/prerender_util_unittest.cc',
1590         'browser/printing/cloud_print/cloud_print_proxy_service_unittest.cc',
1591         'browser/printing/cloud_print/cloud_print_setup_source_unittest.cc',
1592         'browser/printing/print_dialog_cloud_unittest.cc',
1593         'browser/printing/print_job_unittest.cc',
1594         'browser/printing/print_preview_tab_controller_unittest.cc',
1595         'browser/process_info_snapshot_mac_unittest.cc',
1596         'browser/process_singleton_mac_unittest.cc',
1597         'browser/profiles/avatar_menu_model_unittest.cc',
1598         'browser/profiles/gaia_info_update_service_unittest.cc',
1599         'browser/profiles/off_the_record_profile_impl_unittest.cc',
1600         'browser/profiles/profile_dependency_manager_unittest.cc',
1601         'browser/profiles/profile_downloader_unittest.cc',
1602         'browser/profiles/profile_info_cache_unittest.cc',
1603         'browser/profiles/profile_info_cache_unittest.h',
1604         'browser/profiles/profile_info_util_unittest.cc',
1605         'browser/profiles/profile_manager_unittest.cc',
1606         'browser/renderer_host/web_cache_manager_unittest.cc',
1607         'browser/resources/print_preview/print_preview_utils.js',
1608         'browser/resources/print_preview/print_preview_utils_unittest.gtestjs',
1609         'browser/resources_util_unittest.cc',
1610         'browser/rlz/rlz_unittest.cc',
1611         'browser/safe_browsing/bloom_filter_unittest.cc',
1612         'browser/safe_browsing/browser_feature_extractor_unittest.cc',
1613         'browser/safe_browsing/chunk_range_unittest.cc',
1614         'browser/safe_browsing/client_side_detection_host_unittest.cc',
1615         'browser/safe_browsing/client_side_detection_service_unittest.cc',
1616         'browser/safe_browsing/download_protection_service_unittest.cc',
1617         'browser/safe_browsing/malware_details_unittest.cc',
1618         'browser/safe_browsing/prefix_set_unittest.cc',
1619         'browser/safe_browsing/protocol_manager_unittest.cc',
1620         'browser/safe_browsing/protocol_parser_unittest.cc',
1621         'browser/safe_browsing/safe_browsing_blocking_page_unittest.cc',
1622         'browser/safe_browsing/safe_browsing_database_unittest.cc',
1623         'browser/safe_browsing/safe_browsing_store_file_unittest.cc',
1624         'browser/safe_browsing/safe_browsing_store_unittest.cc',
1625         'browser/safe_browsing/safe_browsing_store_unittest_helper.cc',
1626         'browser/safe_browsing/safe_browsing_util_unittest.cc',
1627         'browser/safe_browsing/signature_util_win_unittest.cc',
1628         'browser/search_engines/search_host_to_urls_map_unittest.cc',
1629         'browser/search_engines/search_provider_install_data_unittest.cc',
1630         'browser/search_engines/template_url_fetcher_unittest.cc',
1631         'browser/search_engines/template_url_service_test_util.cc',
1632         'browser/search_engines/template_url_service_test_util.h',
1633         'browser/search_engines/template_url_service_sync_unittest.cc',
1634         'browser/search_engines/template_url_service_unittest.cc',
1635         'browser/search_engines/template_url_parser_unittest.cc',
1636         'browser/search_engines/template_url_prepopulate_data_unittest.cc',
1637         'browser/search_engines/template_url_scraper_unittest.cc',
1638         'browser/search_engines/template_url_unittest.cc',
1639         'browser/sessions/session_backend_unittest.cc',
1640         'browser/sessions/session_service_unittest.cc',
1641         'browser/shell_integration_unittest.cc',
1642         'browser/speech/speech_input_bubble_controller_unittest.cc',
1643         'browser/spellchecker/spellcheck_platform_mac_unittest.cc',
1644         'browser/spellchecker/spellcheck_profile_unittest.cc',
1645         'browser/status_icons/status_icon_unittest.cc',
1646         'browser/status_icons/status_tray_unittest.cc',
1647         'browser/sync/abstract_profile_sync_service_test.cc',
1648         'browser/sync/abstract_profile_sync_service_test.h',
1649         'browser/sync/backend_migrator_unittest.cc',
1650         'browser/sync/internal_api/read_node_mock.cc',
1651         'browser/sync/internal_api/read_node_mock.h',
1652         'browser/sync/glue/app_notification_data_type_controller_unittest.cc',
1653         'browser/sync/glue/autofill_data_type_controller_unittest.cc',
1654         'browser/sync/glue/bookmark_data_type_controller_unittest.cc',
1655         'browser/sync/glue/browser_thread_model_worker_unittest.cc',
1656         'browser/sync/glue/change_processor_mock.cc',
1657         'browser/sync/glue/change_processor_mock.h',
1658         'browser/sync/glue/data_type_controller_mock.cc',
1659         'browser/sync/glue/data_type_controller_mock.h',
1660         'browser/sync/glue/data_type_manager_impl_unittest.cc',
1661         'browser/sync/glue/data_type_manager_mock.cc',
1662         'browser/sync/glue/data_type_manager_mock.h',
1663         'browser/sync/glue/extension_data_type_controller_unittest.cc',
1664         'browser/sync/glue/frontend_data_type_controller_mock.cc',
1665         'browser/sync/glue/frontend_data_type_controller_mock.h',
1666         'browser/sync/glue/frontend_data_type_controller_unittest.cc',
1667         'browser/sync/glue/http_bridge_unittest.cc',
1668         'browser/sync/glue/model_associator_mock.cc',
1669         'browser/sync/glue/model_associator_mock.h',
1670         'browser/sync/glue/new_non_frontend_data_type_controller_mock.cc',
1671         'browser/sync/glue/new_non_frontend_data_type_controller_mock.h',
1672         'browser/sync/glue/new_non_frontend_data_type_controller_unittest.cc',
1673         'browser/sync/glue/non_frontend_data_type_controller_mock.cc',
1674         'browser/sync/glue/non_frontend_data_type_controller_mock.h',
1675         'browser/sync/glue/non_frontend_data_type_controller_unittest.cc',
1676         'browser/sync/glue/preference_data_type_controller_unittest.cc',
1677         'browser/sync/glue/search_engine_data_type_controller_unittest.cc',
1678         'browser/sync/glue/session_model_associator_unittest.cc',
1679         'browser/sync/glue/shared_change_processor_mock.cc',
1680         'browser/sync/glue/shared_change_processor_mock.h',
1681         'browser/sync/glue/sync_backend_host_mock.cc',
1682         'browser/sync/glue/sync_backend_host_mock.h',
1683         'browser/sync/glue/sync_backend_host_unittest.cc',
1684         'browser/sync/glue/sync_backend_registrar_unittest.cc',
1685         'browser/sync/glue/synced_session_tracker_unittest.cc',
1686         'browser/sync/glue/theme_data_type_controller_unittest.cc',
1687         'browser/sync/glue/theme_util_unittest.cc',
1688         'browser/sync/glue/typed_url_model_associator_unittest.cc',
1689         'browser/sync/glue/ui_model_worker_unittest.cc',
1690         'browser/sync/profile_sync_components_factory_impl_unittest.cc',
1691         'browser/sync/profile_sync_components_factory_mock.cc',
1692         'browser/sync/profile_sync_components_factory_mock.h',
1693         'browser/sync/profile_sync_service_autofill_unittest.cc',
1694         'browser/sync/profile_sync_service_bookmark_unittest.cc',
1695         'browser/sync/profile_sync_service_password_unittest.cc',
1696         'browser/sync/profile_sync_service_preference_unittest.cc',
1697         'browser/sync/profile_sync_service_session_unittest.cc',
1698         'browser/sync/profile_sync_service_startup_unittest.cc',
1699         'browser/sync/profile_sync_service_typed_url_unittest.cc',
1700         'browser/sync/profile_sync_service_unittest.cc',
1701         'browser/sync/profile_sync_test_util.cc',
1702         'browser/sync/profile_sync_test_util.h',
1703         'browser/sync/signin_manager_unittest.cc',
1704         'browser/sync/sync_global_error_unittest.cc',
1705         'browser/sync/sync_prefs_unittest.cc',
1706         'browser/sync/sync_setup_wizard_unittest.cc',
1707         'browser/sync/sync_ui_util_mac_unittest.mm',
1708         'browser/sync/sync_ui_util_unittest.cc',
1709         'browser/sync/test_profile_sync_service.cc',
1710         'browser/sync/test_profile_sync_service.h',
1711         'browser/sync/test/test_http_bridge_factory.cc',
1712         'browser/sync/test/test_http_bridge_factory.h',
1713         'browser/sync/util/cryptographer_unittest.cc',
1714         'browser/sync/util/get_session_name_task_unittest.cc',
1715         'browser/sync/util/nigori_unittest.cc',
1716         'browser/tab_contents/render_view_context_menu_unittest.cc',
1717         'browser/tab_contents/thumbnail_generator_unittest.cc',
1718         'browser/tabs/pinned_tab_codec_unittest.cc',
1719         'browser/tabs/pinned_tab_service_unittest.cc',
1720         'browser/tabs/pinned_tab_test_utils.cc',
1721         'browser/tabs/tab_strip_model_unittest.cc',
1722         'browser/tabs/tab_strip_selection_model_unittest.cc',
1723         'browser/task_manager/task_manager_unittest.cc',
1724         'browser/themes/browser_theme_pack_unittest.cc',
1725         'browser/themes/theme_service_unittest.cc',
1726         'browser/ui/browser_list_unittest.cc',
1727         # It is safe to list */cocoa/* files in the "common" file list
1728         # without an explicit exclusion since gyp is smart enough to
1729         # exclude them from non-Mac builds.
1730         'browser/ui/cocoa/about_ipc_controller_unittest.mm',
1731         'browser/ui/cocoa/about_window_controller_unittest.mm',
1732         'browser/ui/cocoa/accelerators_cocoa_unittest.mm',
1733         'browser/ui/cocoa/animatable_image_unittest.mm',
1734         'browser/ui/cocoa/animatable_view_unittest.mm',
1735         'browser/ui/cocoa/applescript/bookmark_applescript_utils_unittest.h',
1736         'browser/ui/cocoa/applescript/bookmark_applescript_utils_unittest.mm',
1737         'browser/ui/cocoa/applescript/bookmark_folder_applescript_unittest.mm',
1738         'browser/ui/cocoa/applescript/bookmark_item_applescript_unittest.mm',
1739         'browser/ui/cocoa/background_gradient_view_unittest.mm',
1740         'browser/ui/cocoa/background_tile_view_unittest.mm',
1741         'browser/ui/cocoa/base_bubble_controller_unittest.mm',
1742         'browser/ui/cocoa/bookmarks/bookmark_all_tabs_controller_unittest.mm',
1743         'browser/ui/cocoa/bookmarks/bookmark_bar_bridge_unittest.mm',
1744         'browser/ui/cocoa/bookmarks/bookmark_bar_controller_unittest.mm',
1745         'browser/ui/cocoa/bookmarks/bookmark_bar_folder_button_cell_unittest.mm',
1746         'browser/ui/cocoa/bookmarks/bookmark_bar_folder_controller_unittest.mm',
1747         'browser/ui/cocoa/bookmarks/bookmark_bar_folder_hover_state_unittest.mm',
1748         'browser/ui/cocoa/bookmarks/bookmark_bar_folder_view_unittest.mm',
1749         'browser/ui/cocoa/bookmarks/bookmark_bar_folder_window_unittest.mm',
1750         'browser/ui/cocoa/bookmarks/bookmark_bar_toolbar_view_unittest.mm',
1751         'browser/ui/cocoa/bookmarks/bookmark_bar_unittest_helper.h',
1752         'browser/ui/cocoa/bookmarks/bookmark_bar_unittest_helper.mm',
1753         'browser/ui/cocoa/bookmarks/bookmark_bar_view_unittest.mm',
1754         'browser/ui/cocoa/bookmarks/bookmark_bubble_controller_unittest.mm',
1755         'browser/ui/cocoa/bookmarks/bookmark_button_cell_unittest.mm',
1756         'browser/ui/cocoa/bookmarks/bookmark_button_unittest.mm',
1757         'browser/ui/cocoa/bookmarks/bookmark_editor_base_controller_unittest.mm',
1758         'browser/ui/cocoa/bookmarks/bookmark_editor_controller_unittest.mm',
1759         'browser/ui/cocoa/bookmarks/bookmark_folder_target_unittest.mm',
1760         'browser/ui/cocoa/bookmarks/bookmark_menu_bridge_unittest.mm',
1761         'browser/ui/cocoa/bookmarks/bookmark_menu_cocoa_controller_unittest.mm',
1762         'browser/ui/cocoa/bookmarks/bookmark_menu_unittest.mm',
1763         'browser/ui/cocoa/bookmarks/bookmark_model_observer_for_cocoa_unittest.mm',
1764         'browser/ui/cocoa/bookmarks/bookmark_name_folder_controller_unittest.mm',
1765         'browser/ui/cocoa/bookmarks/bookmark_tree_browser_cell_unittest.mm',
1766         'browser/ui/cocoa/browser/avatar_button_controller_unittest.mm',
1767         'browser/ui/cocoa/browser/avatar_menu_bubble_controller_unittest.mm',
1768         'browser/ui/cocoa/browser/edit_search_engine_cocoa_controller_unittest.mm',
1769         'browser/ui/cocoa/browser_frame_view_unittest.mm',
1770         'browser/ui/cocoa/browser_window_cocoa_unittest.mm',
1771         'browser/ui/cocoa/browser_window_controller_unittest.mm',
1772         'browser/ui/cocoa/bubble_view_unittest.mm',
1773         'browser/ui/cocoa/chrome_browser_window_unittest.mm',
1774         'browser/ui/cocoa/chrome_event_processing_window_unittest.mm',
1775         'browser/ui/cocoa/clickhold_button_cell_unittest.mm',
1776         'browser/ui/cocoa/cocoa_profile_test.h',
1777         'browser/ui/cocoa/cocoa_profile_test.mm',
1778         'browser/ui/cocoa/cocoa_test_helper.h',
1779         'browser/ui/cocoa/cocoa_test_helper.mm',
1780         'browser/ui/cocoa/command_observer_bridge_unittest.mm',
1781         'browser/ui/cocoa/confirm_quit_panel_controller_unittest.mm',
1782         'browser/ui/cocoa/content_settings/collected_cookies_mac_unittest.mm',
1783         'browser/ui/cocoa/content_settings/cookie_details_unittest.mm',
1784         'browser/ui/cocoa/content_settings/cookie_details_view_controller_unittest.mm',
1785         'browser/ui/cocoa/download/download_item_button_unittest.mm',
1786         'browser/ui/cocoa/download/download_shelf_mac_unittest.mm',
1787         'browser/ui/cocoa/download/download_shelf_view_unittest.mm',
1788         'browser/ui/cocoa/download/download_util_mac_unittest.mm',
1789         'browser/ui/cocoa/draggable_button_unittest.mm',
1790         'browser/ui/cocoa/event_utils_unittest.mm',
1791         'browser/ui/cocoa/extensions/browser_actions_container_view_unittest.mm',
1792         'browser/ui/cocoa/extensions/chevron_menu_button_unittest.mm',
1793         'browser/ui/cocoa/extensions/extension_install_dialog_controller_unittest.mm',
1794         'browser/ui/cocoa/extensions/extension_installed_bubble_controller_unittest.mm',
1795         'browser/ui/cocoa/extensions/extension_popup_controller_unittest.mm',
1796         'browser/ui/cocoa/fast_resize_view_unittest.mm',
1797         'browser/ui/cocoa/find_bar/find_bar_bridge_unittest.mm',
1798         'browser/ui/cocoa/find_bar/find_bar_cocoa_controller_unittest.mm',
1799         'browser/ui/cocoa/find_bar/find_bar_text_field_cell_unittest.mm',
1800         'browser/ui/cocoa/find_bar/find_bar_text_field_unittest.mm',
1801         'browser/ui/cocoa/find_bar/find_bar_view_unittest.mm',
1802         'browser/ui/cocoa/find_pasteboard_unittest.mm',
1803         'browser/ui/cocoa/first_run_bubble_controller_unittest.mm',
1804         'browser/ui/cocoa/floating_bar_backing_view_unittest.mm',
1805         'browser/ui/cocoa/focus_tracker_unittest.mm',
1806         'browser/ui/cocoa/framed_browser_window_unittest.mm',
1807         'browser/ui/cocoa/fullscreen_window_unittest.mm',
1808         'browser/ui/cocoa/fullscreen_exit_bubble_controller_unittest.mm',
1809         'browser/ui/cocoa/gradient_button_cell_unittest.mm',
1810         'browser/ui/cocoa/history_menu_bridge_unittest.mm',
1811         'browser/ui/cocoa/history_menu_cocoa_controller_unittest.mm',
1812         'browser/ui/cocoa/hover_image_button_unittest.mm',
1813         'browser/ui/cocoa/html_dialog_window_controller_unittest.mm',
1814         'browser/ui/cocoa/hung_renderer_controller_unittest.mm',
1815         'browser/ui/cocoa/hyperlink_button_cell_unittest.mm',
1816         'browser/ui/cocoa/hyperlink_text_view_unittest.mm',
1817         'browser/ui/cocoa/image_button_cell_unittest.mm',
1818         'browser/ui/cocoa/image_utils_unittest.mm',
1819         'browser/ui/cocoa/info_bubble_view_unittest.mm',
1820         'browser/ui/cocoa/info_bubble_window_unittest.mm',
1821         'browser/ui/cocoa/infobars/infobar_container_controller_unittest.mm',
1822         'browser/ui/cocoa/infobars/infobar_controller_unittest.mm',
1823         'browser/ui/cocoa/infobars/infobar_gradient_view_unittest.mm',
1824         'browser/ui/cocoa/infobars/translate_infobar_unittest.mm',
1825         'browser/ui/cocoa/location_bar/autocomplete_text_field_cell_unittest.mm',
1826         'browser/ui/cocoa/location_bar/autocomplete_text_field_editor_unittest.mm',
1827         'browser/ui/cocoa/location_bar/autocomplete_text_field_unittest.mm',
1828         'browser/ui/cocoa/location_bar/autocomplete_text_field_unittest_helper.mm',
1829         'browser/ui/cocoa/location_bar/ev_bubble_decoration_unittest.mm',
1830         'browser/ui/cocoa/location_bar/image_decoration_unittest.mm',
1831         'browser/ui/cocoa/location_bar/instant_opt_in_controller_unittest.mm',
1832         'browser/ui/cocoa/location_bar/instant_opt_in_view_unittest.mm',
1833         'browser/ui/cocoa/location_bar/keyword_hint_decoration_unittest.mm',
1834         'browser/ui/cocoa/location_bar/omnibox_popup_view_unittest.mm',
1835         'browser/ui/cocoa/location_bar/selected_keyword_decoration_unittest.mm',
1836         'browser/ui/cocoa/menu_button_unittest.mm',
1837         'browser/ui/cocoa/menu_controller_unittest.mm',
1838         'browser/ui/cocoa/notifications/balloon_controller_unittest.mm',
1839         'browser/ui/cocoa/nsimage_cache_unittest.mm',
1840         'browser/ui/cocoa/nsmenuitem_additions_unittest.mm',
1841         'browser/ui/cocoa/omnibox/omnibox_popup_view_mac_unittest.mm',
1842         'browser/ui/cocoa/omnibox/omnibox_view_mac_unittest.mm',
1843         'browser/ui/cocoa/page_info_bubble_controller_unittest.mm',
1844         'browser/ui/cocoa/profile_menu_controller_unittest.mm',
1845         'browser/ui/cocoa/run_loop_testing.h',
1846         'browser/ui/cocoa/run_loop_testing.mm',
1847         'browser/ui/cocoa/run_loop_testing_unittest.mm',
1848         'browser/ui/cocoa/status_bubble_mac_unittest.mm',
1849         'browser/ui/cocoa/status_icons/status_icon_mac_unittest.mm',
1850         'browser/ui/cocoa/styled_text_field_cell_unittest.mm',
1851         'browser/ui/cocoa/styled_text_field_test_helper.h',
1852         'browser/ui/cocoa/styled_text_field_test_helper.mm',
1853         'browser/ui/cocoa/styled_text_field_unittest.mm',
1854         'browser/ui/cocoa/tab_contents/previewable_contents_controller_unittest.mm',
1855         'browser/ui/cocoa/tab_contents/sad_tab_controller_unittest.mm',
1856         'browser/ui/cocoa/tab_contents/sad_tab_view_unittest.mm',
1857         'browser/ui/cocoa/tab_view_picker_table_unittest.mm',
1858         'browser/ui/cocoa/table_row_nsimage_cache_unittest.mm',
1859         'browser/ui/cocoa/tabpose_window_unittest.mm',
1860         'browser/ui/cocoa/tabs/tab_controller_unittest.mm',
1861         'browser/ui/cocoa/tabs/tab_strip_controller_unittest.mm',
1862         'browser/ui/cocoa/tabs/tab_strip_view_unittest.mm',
1863         'browser/ui/cocoa/tabs/tab_view_unittest.mm',
1864         'browser/ui/cocoa/tabs/throbber_view_unittest.mm',
1865         'browser/ui/cocoa/task_manager_mac_unittest.mm',
1866         'browser/ui/cocoa/toolbar/reload_button_unittest.mm',
1867         'browser/ui/cocoa/toolbar/toolbar_button_unittest.mm',
1868         'browser/ui/cocoa/toolbar/toolbar_controller_unittest.mm',
1869         'browser/ui/cocoa/toolbar/toolbar_view_unittest.mm',
1870         'browser/ui/cocoa/tracking_area_unittest.mm',
1871         'browser/ui/cocoa/vertical_gradient_view_unittest.mm',
1872         'browser/ui/cocoa/view_resizer_pong.h',
1873         'browser/ui/cocoa/view_resizer_pong.mm',
1874         'browser/ui/cocoa/web_intent_bubble_controller_unittest.mm',
1875         'browser/ui/cocoa/window_size_autosaver_unittest.mm',
1876         'browser/ui/cocoa/wrench_menu/menu_tracked_button_unittest.mm',
1877         'browser/ui/cocoa/wrench_menu/menu_tracked_root_view_unittest.mm',
1878         'browser/ui/cocoa/wrench_menu/wrench_menu_button_cell_unittest.mm',
1879         'browser/ui/cocoa/wrench_menu/wrench_menu_controller_unittest.mm',
1880         'browser/ui/constrained_window_tab_helper_unittest.cc',
1881         'browser/ui/content_settings/content_setting_bubble_model_unittest.cc',
1882         'browser/ui/content_settings/content_setting_image_model_unittest.cc',
1883         'browser/ui/find_bar/find_backend_unittest.cc',
1884         'browser/ui/global_error_service_unittest.cc',
1885         'browser/ui/gtk/accelerators_gtk_unittest.cc',
1886         'browser/ui/gtk/bookmarks/bookmark_bar_gtk_unittest.cc',
1887         'browser/ui/gtk/bookmarks/bookmark_editor_gtk_unittest.cc',
1888         'browser/ui/gtk/bookmarks/bookmark_utils_gtk_unittest.cc',
1889         'browser/ui/gtk/gtk_chrome_shrinkable_hbox_unittest.cc',
1890         'browser/ui/gtk/gtk_theme_service_unittest.cc',
1891         'browser/ui/gtk/gtk_util_unittest.cc',
1892         'browser/ui/gtk/omnibox/omnibox_popup_view_gtk_unittest.cc',
1893         'browser/ui/gtk/reload_button_gtk_unittest.cc',
1894         'browser/ui/gtk/status_icons/status_tray_gtk_unittest.cc',
1895         'browser/ui/gtk/tabs/tab_renderer_gtk_unittest.cc',
1896         'browser/ui/intents/web_intent_picker_controller_unittest.cc',
1897         'browser/ui/intents/web_intents_model_unittest.cc',
1898         'browser/ui/login/login_prompt_unittest.cc',
1899         'browser/ui/omnibox/omnibox_view_unittest.cc',
1900         'browser/ui/panels/auto_hiding_desktop_bar_win_unittest.cc',
1901         'browser/ui/panels/panel_browser_window_cocoa_unittest.mm',
1902         'browser/ui/panels/panel_mouse_watcher_unittest.cc',
1903         'browser/ui/prefs/prefs_tab_helper_unittest.cc',
1904         'browser/ui/search_engines/keyword_editor_controller_unittest.cc',
1905         'browser/ui/select_file_dialog_unittest.cc',
1906         'browser/ui/tabs/dock_info_unittest.cc',
1907         'browser/ui/tabs/tab_menu_model_unittest.cc',
1908         'browser/ui/tests/ui_gfx_image_unittest.cc',
1909         'browser/ui/tests/ui_gfx_image_unittest.mm',
1910         'browser/ui/toolbar/back_forward_menu_model_unittest.cc',
1911         'browser/ui/toolbar/encoding_menu_controller_unittest.cc',
1912         'browser/ui/toolbar/toolbar_model_unittest.cc',
1913         'browser/ui/toolbar/wrench_menu_model_unittest.cc',
1914         'browser/ui/views/accessibility_event_router_views_unittest.cc',
1915         'browser/ui/views/bookmarks/bookmark_context_menu_test.cc',
1916         'browser/ui/views/bookmarks/bookmark_editor_view_unittest.cc',
1917         'browser/ui/views/crypto_module_password_dialog_view_unittest.cc',
1918         'browser/ui/views/extensions/browser_action_drag_data_unittest.cc',
1919         'browser/ui/views/first_run_bubble_unittest.cc',
1920         'browser/ui/views/first_run_search_engine_view_unittest.cc',
1921         'browser/ui/views/generic_info_view_unittest.cc',
1922         'browser/ui/views/reload_button_unittest.cc',
1923         'browser/ui/views/select_file_dialog_extension_unittest.cc',
1924         'browser/ui/views/select_file_dialog_win_unittest.cc',
1925         'browser/ui/views/status_icons/status_tray_win_unittest.cc',
1926         'browser/ui/views/tabs/base_tab_strip_test_fixture.h',
1927         'browser/ui/views/tabs/fake_base_tab_strip_controller.cc',
1928         'browser/ui/views/tabs/fake_base_tab_strip_controller.h',
1929         'browser/ui/views/tabs/tab_strip_unittest.cc',
1930         'browser/ui/webui/chrome_web_ui_data_source_unittest.cc',
1931         'browser/ui/webui/chromeos/imageburner/imageburner_utils_unittest.cc',
1932         'browser/ui/webui/html_dialog_tab_contents_delegate_unittest.cc',
1933         'browser/ui/webui/options/chromeos/virtual_keyboard_manager_handler_unittest.cc',
1934         'browser/ui/webui/options/language_options_handler_unittest.cc',
1935         'browser/ui/webui/print_preview_handler_unittest.cc',
1936         'browser/ui/webui/print_preview_ui_unittest.cc',
1937         'browser/ui/webui/sync_internals_ui_unittest.cc',
1938         'browser/ui/webui/theme_source_unittest.cc',
1939         'browser/ui/webui/web_ui_unittest.cc',
1940         'browser/ui/window_sizer_unittest.cc',
1941         'browser/ui/window_snapshot/window_snapshot_mac_unittest.mm',
1942         'browser/user_style_sheet_watcher_unittest.cc',
1943         'browser/visitedlink/visitedlink_unittest.cc',
1944         'browser/web_applications/web_app_unittest.cc',
1945         'browser/web_resource/promo_resource_service_unittest.cc',
1946         'browser/webdata/autofill_entry_unittest.cc',
1947         'browser/webdata/autofill_profile_syncable_service_unittest.cc',
1948         'browser/webdata/autofill_table_unittest.cc',
1949         'browser/webdata/keyword_table_unittest.cc',
1950         'browser/webdata/logins_table_unittest.cc',
1951         'browser/webdata/token_service_table_unittest.cc',
1952         'browser/webdata/web_apps_table_unittest.cc',
1953         'browser/webdata/web_data_service_test_util.h',
1954         'browser/webdata/web_data_service_unittest.cc',
1955         'browser/webdata/web_database_migration_unittest.cc',
1956         'browser/webdata/web_intents_table_unittest.cc',
1957         'common/bzip2_unittest.cc',
1958         'common/child_process_logging_mac_unittest.mm',
1959         'common/chrome_paths_unittest.cc',
1960         'common/common_param_traits_unittest.cc',
1961         'common/content_settings_helper_unittest.cc',
1962         'common/content_settings_pattern_parser_unittest.cc',
1963         'common/content_settings_pattern_unittest.cc',
1964         'common/extensions/csp_validator_unittest.cc',
1965         'common/extensions/extension_action_unittest.cc',
1966         'common/extensions/extension_file_util_unittest.cc',
1967         'common/extensions/extension_icon_set_unittest.cc',
1968         'common/extensions/extension_l10n_util_unittest.cc',
1969         'common/extensions/extension_localization_peer_unittest.cc',
1970         'common/extensions/extension_manifests_unittest.cc',
1971         'common/extensions/extension_message_bundle_unittest.cc',
1972         'common/extensions/extension_permission_set_unittest.cc',
1973         'common/extensions/extension_resource_unittest.cc',
1974         'common/extensions/extension_set_unittest.cc',
1975         'common/extensions/extension_test_util.h',
1976         'common/extensions/extension_test_util.cc',
1977         'common/extensions/extension_unittest.cc',
1978         'common/extensions/extension_unpacker_unittest.cc',
1979         'common/extensions/manifest_unittest.cc',
1980         'common/extensions/update_manifest_unittest.cc',
1981         'common/extensions/url_pattern_set_unittest.cc',
1982         'common/extensions/url_pattern_unittest.cc',
1983         'common/extensions/user_script_unittest.cc',
1984         'common/extensions/api/extension_api_unittest.cc',
1985         'common/guid_unittest.cc',
1986         'common/important_file_writer_unittest.cc',
1987         'common/json_pref_store_unittest.cc',
1988         'common/json_schema_validator_unittest.cc',
1989         'common/json_schema_validator_unittest_base.cc',
1990         'common/json_schema_validator_unittest_base.h',
1991         'common/json_value_serializer_unittest.cc',
1992         'common/mac/cfbundle_blocker_unittest.mm',
1993         'common/mac/objc_method_swizzle_unittest.mm',
1994         'common/mac/objc_zombie_unittest.mm',
1995         'common/metrics_log_manager_unittest.cc',
1996         'common/multi_process_lock_unittest.cc',
1997         'common/net/gaia/gaia_auth_fetcher_unittest.cc',
1998         'common/net/gaia/gaia_auth_fetcher_unittest.h',
1999         'common/net/gaia/gaia_authenticator_unittest.cc',
2000         'common/net/gaia/gaia_oauth_client_unittest.cc',
2001         'common/net/gaia/google_service_auth_error_unittest.cc',
2002         'common/net/gaia/oauth_request_signer_unittest.cc',
2003         'common/net/gaia/oauth2_access_token_fetcher_unittest.cc',
2004         'common/net/gaia/oauth2_revocation_fetcher_unittest.cc',
2005         'common/random_unittest.cc',
2006         'common/service_process_util_unittest.cc',
2007         'common/string_ordinal_unittest.cc',
2008         'common/switch_utils_unittest.cc',
2009         'common/thumbnail_score_unittest.cc',
2010         'common/time_format_unittest.cc',
2011         'common/web_apps_unittest.cc',
2012         'common/worker_thread_ticker_unittest.cc',
2013         'common/zip_reader_unittest.cc',
2014         'common/zip_unittest.cc',
2015         'renderer/content_settings_observer_unittest.cc',
2016         'renderer/extensions/chrome_v8_context_set_unittest.cc',
2017         'renderer/extensions/json_schema_unittest.cc',
2018         'renderer/net/predictor_queue_unittest.cc',
2019         'renderer/net/renderer_predictor_unittest.cc',
2020         'renderer/plugins/plugin_uma_unittest.cc',
2021         'renderer/renderer_about_handler_unittest.cc',
2022         'renderer/safe_browsing/features_unittest.cc',
2023         'renderer/safe_browsing/murmurhash3_util_unittest.cc',
2024         'renderer/safe_browsing/phishing_term_feature_extractor_unittest.cc',
2025         'renderer/safe_browsing/phishing_url_feature_extractor_unittest.cc',
2026         'renderer/safe_browsing/scorer_unittest.cc',
2027         'renderer/spellchecker/spellcheck_provider_hunspell_unittest.cc',
2028         'renderer/spellchecker/spellcheck_provider_mac_unittest.cc',
2029         'renderer/spellchecker/spellcheck_unittest.cc',
2030         'renderer/spellchecker/spellcheck_worditerator_unittest.cc',
2031         'service/cloud_print/cloud_print_helpers_unittest.cc',
2032         'service/cloud_print/cloud_print_token_store_unittest.cc',
2033         'service/cloud_print/cloud_print_url_fetcher_unittest.cc',
2034         'service/service_process_unittest.cc',
2035         'test/base/browser_with_test_window_test.cc',
2036         'test/base/browser_with_test_window_test.h',
2037         'test/base/chrome_render_view_test.cc',
2038         'test/base/chrome_render_view_test.h',
2039         'test/base/menu_model_test.cc',
2040         'test/base/menu_model_test.h',
2041         'test/base/v8_unit_test.cc',
2042         'test/base/v8_unit_test.h',
2043         'test/data/resource.rc',
2044         'test/data/unit/framework_unittest.gtestjs',
2045         'tools/convert_dict/convert_dict_unittest.cc',
2046         '../testing/gtest_mac_unittest.mm',
2047         '../third_party/cld/encodings/compact_lang_det/compact_lang_det_unittest_small.cc',
2048         '../ui/views/test/test_views_delegate.cc',
2049         '../ui/views/test/test_views_delegate.h',
2050         '../ui/views/test/views_test_base.cc',
2051         '../ui/views/test/views_test_base.h',
2052         '../webkit/fileapi/file_system_dir_url_request_job_unittest.cc',
2053         '../webkit/fileapi/file_system_operation_write_unittest.cc',
2054         '../webkit/fileapi/file_system_url_request_job_unittest.cc',
2055         '../webkit/fileapi/file_writer_delegate_unittest.cc',
2056         '../webkit/fileapi/file_system_test_helper.cc',
2057         '../webkit/fileapi/file_system_test_helper.h',
2058         '../webkit/quota/mock_storage_client.cc',
2059         '../webkit/quota/mock_storage_client.h',
2060       ],
2061       'conditions': [
2062         ['target_arch!="arm"', {
2063           'dependencies': [
2064             # build time dependency.
2065             '../v8/tools/gyp/v8.gyp:v8_shell#host',
2066           ],
2067         }],
2068         ['use_aura==1', {
2069           'dependencies': [
2070             '../ui/aura/aura.gyp:test_support_aura',
2071           ],
2072           'sources/': [
2073             ['exclude', '^browser/automation/automation_provider_unittest.cc'],
2074             ['exclude', '^browser/accessibility/browser_accessibility_win_unittest.cc'],
2075             ['exclude', '^browser/ui/views/extensions/browser_action_drag_data_unittest.cc'],
2076             ['exclude', '^browser/ui/views/select_file_dialog_win_unittest.cc'],
2077             ['exclude', '^browser/ui/views/bookmarks/bookmark_editor_view_unittest.cc'],
2078             ['exclude', '^browser/ui/panels/auto_hiding_desktop_bar_win_unittest.cc'],
2079             ['exclude', '^browser/bookmarks/bookmark_node_data_unittest.cc'],
2080           ],
2081         }],
2082         ['file_manager_extension==0', {
2083           'sources!': [
2084             'browser/ui/views/select_file_dialog_extension_unittest.cc',
2085           ],
2086         }],
2087         ['configuration_policy==0', {
2088           'sources!': [
2089             'browser/prefs/proxy_policy_unittest.cc',
2090           ],
2091           'sources/': [
2092             ['exclude', '^browser/policy/'],
2093           ],
2094         }],
2095         ['input_speech==0', {
2096           'sources/': [
2097             ['exclude', '^browser/speech/'],
2098           ],
2099         }],
2100         ['notifications==0', {
2101           'sources/': [
2102             ['exclude', '^browser/notifications/'],
2103           ],
2104         }],
2105         ['safe_browsing==1', {
2106           'defines': [
2107             'ENABLE_SAFE_BROWSING',
2108           ],
2109         }, {  # safe_browsing == 0
2110           'sources!': [
2111             'browser/download/download_safe_browsing_client_unittest.cc',
2112           ],
2113           'sources/': [
2114             ['exclude', '^browser/safe_browsing/'],
2115             ['exclude', '^renderer/safe_browsing/'],
2116           ],
2117         }],
2118         ['chromeos==1', {
2119           'sources/': [
2120             ['exclude', '^browser/password_manager/native_backend_gnome_x_unittest.cc'],
2121             ['exclude', '^browser/password_manager/native_backend_kwallet_x_unittest.cc'],
2122             ['exclude', '^browser/safe_browsing/download_protection_service_unittest.cc' ],
2123           ],
2124           'conditions': [
2125             ['use_aura==1', {
2126               'sources!': [
2127                 'browser/chromeos/notifications/desktop_notifications_unittest.cc',
2128               ],
2129             }],
2130           ],
2131         }, { # else: chromeos == 0
2132           'sources/': [
2133             ['exclude', '^browser/chromeos/'],
2134             ['exclude', '^browser/oom_priority_manager_unittest.cc'],
2135             ['exclude', '^browser/policy/auto_enrollment_client_unittest.cc' ],
2136             ['exclude', '^browser/policy/configuration_policy_handler_chromeos_unittest.cc' ],
2137             ['exclude', '^browser/policy/device_policy_cache_unittest.cc'],
2138             ['exclude', '^browser/policy/device_status_collector_unittest.cc'],
2139             ['exclude', '^browser/policy/enterprise_install_attributes_unittest.cc' ],
2140             ['exclude', '^browser/policy/network_configuration_updater_unittest.cc' ],
2141             ['exclude', '^browser/ui/webui/chromeos/imageburner/'],
2142             ['exclude', '^browser/ui/webui/chromeos/login'],
2143             ['exclude', '^browser/ui/webui/options/chromeos/'],
2144             ['exclude', '^browser/ui/webui/options2/chromeos/'],
2145           ],
2146         }],
2147         ['toolkit_uses_gtk == 1', {
2148           'conditions': [
2149             ['selinux==0', {
2150               'dependencies': [
2151                 '../sandbox/sandbox.gyp:*',
2152               ],
2153             }],
2154             ['toolkit_views==1', {
2155               'sources!': [
2156                 'browser/ui/gtk/accelerators_gtk_unittest.cc',
2157                 'browser/ui/gtk/bookmarks/bookmark_bar_gtk_unittest.cc',
2158                 'browser/ui/gtk/bookmarks/bookmark_editor_gtk_unittest.cc',
2159                 'browser/ui/gtk/gtk_chrome_shrinkable_hbox_unittest.cc',
2160                 'browser/ui/gtk/gtk_theme_service_unittest.cc',
2161                 'browser/ui/gtk/omnibox/omnibox_popup_view_gtk_unittest.cc',
2162                 'browser/ui/gtk/reload_button_gtk_unittest.cc',
2163                 'browser/ui/gtk/status_icons/status_tray_gtk_unittest.cc',
2164               ],
2165             }],
2166             ['chromeos==0', {
2167               'conditions': [
2168                 ['use_gnome_keyring==1', {
2169                   # We use a few library functions directly, so link directly.
2170                   'dependencies': [
2171                     '../build/linux/system.gyp:gnome_keyring_direct',
2172                   ],
2173                 }],
2174               ],
2175             }],
2176           ],
2177           'dependencies': [
2178             '../build/linux/system.gyp:dbus',
2179             '../build/linux/system.gyp:gtk',
2180             '../dbus/dbus.gyp:dbus_test_support',
2181             '../tools/xdisplaycheck/xdisplaycheck.gyp:xdisplaycheck',
2182           ],
2183           'sources!': [
2184             'browser/printing/print_job_unittest.cc',
2185           ],
2186         }, { # else: toolkit_uses_gtk != 1
2187           'sources!': [
2188             'browser/ui/gtk/tabs/tab_renderer_gtk_unittest.cc',
2189             'browser/renderer_host/gtk_key_bindings_handler_unittest.cc',
2190             '../ui/views/focus/accelerator_handler_gtk_unittest.cc',
2191           ],
2192         }],
2193         ['toolkit_uses_gtk == 1 or chromeos==1 or (OS=="linux" and use_aura==1)', {
2194           'dependencies': [
2195             '../build/linux/system.gyp:ssl',
2196             '../third_party/mozc/chrome/chromeos/renderer/chromeos_renderer.gyp:mozc_candidates_proto',
2197           ],
2198         }],
2199         ['use_gnome_keyring == 0', {
2200           # Disable the GNOME Keyring tests if we are not using it.
2201           'sources!': [
2202             'browser/password_manager/native_backend_gnome_x_unittest.cc',
2203           ],
2204         }],
2205         ['OS=="linux" and use_aura==1', {
2206           'dependencies': [
2207             '../build/linux/system.gyp:dbus',
2208             '../dbus/dbus.gyp:dbus_test_support',
2209             '../ui/aura/aura.gyp:test_support_aura',
2210           ],
2211         }],
2212         ['os_posix == 1 and OS != "mac"', {
2213           'conditions': [
2214             ['linux_use_tcmalloc==1', {
2215               'dependencies': [
2216                 '../base/allocator/allocator.gyp:allocator',
2217               ],
2218             }],
2219           ],
2220         }],
2221         ['OS=="mac"', {
2222            # The test fetches resources which means Mac need the app bundle to
2223            # exist on disk so it can pull from it.
2224           'dependencies': [
2225             'chrome',
2226             '../content/content.gyp:closure_blocks_leopard_compat',
2227             '../third_party/ocmock/ocmock.gyp:ocmock',
2228           ],
2229           'include_dirs': [
2230             '../third_party/GTM',
2231             '../third_party/GTM/AppKit',
2232           ],
2233           'sources!': [
2234             # Blocked on bookmark manager.
2235             'browser/bookmarks/bookmark_context_menu_controller_unittest.cc',
2236             'browser/ui/tabs/dock_info_unittest.cc',
2237             'browser/ui/tests/ui_gfx_image_unittest.cc',
2238             'browser/ui/gtk/reload_button_gtk_unittest.cc',
2239             'browser/password_manager/password_store_default_unittest.cc',
2240             'tools/convert_dict/convert_dict_unittest.cc',
2241             '../third_party/hunspell/google/hunspell_tests.cc',
2242             'renderer/spellchecker/spellcheck_provider_hunspell_unittest.cc',
2243           ],
2244           # TODO(mark): We really want this for all non-static library targets,
2245           # but when we tried to pull it up to the common.gypi level, it broke
2246           # other things like the ui, startup, and page_cycler tests. *shrug*
2247           'xcode_settings': {'OTHER_LDFLAGS': ['-Wl,-ObjC']},
2249           # libwebcore.a is so large that ld may not have a sufficiently large
2250           # "hole" in its address space into which it can be mmaped by the
2251           # time it reaches this library. As of May 10, 2010, libwebcore.a is
2252           # about 1GB in some builds. In the Mac OS X 10.5 toolchain, using
2253           # Xcode 3.1, ld is only a 32-bit executable, and address space
2254           # exhaustion is the result, with ld failing and producing
2255           # the message:
2256           # ld: in .../libwebcore.a, can't map file, errno=12
2257           #
2258           # As a workaround, ensure that libwebcore.a appears to ld first when
2259           # linking unit_tests. This allows the library to be mmapped when
2260           # ld's address space is "wide open." Other libraries are small
2261           # enough that they'll be able to "squeeze" into the remaining holes.
2262           # The Mac linker isn't so sensitive that moving this library to the
2263           # front of the list will cause problems.
2264           #
2265           # Enough pluses to make get this target prepended to the target's
2266           # list of dependencies.
2267           'dependencies+++': [
2268             '../third_party/WebKit/Source/WebCore/WebCore.gyp/WebCore.gyp:webcore',
2269           ],
2270         }, { # OS != "mac"
2271           'dependencies': [
2272             'chrome_resources.gyp:packed_extra_resources',
2273             'chrome_resources.gyp:packed_resources',
2274             'convert_dict_lib',
2275             '../third_party/hunspell/hunspell.gyp:hunspell',
2276           ],
2277           'sources!': [
2278             'browser/spellchecker/spellchecker_platform_engine_unittest.cc',
2279           ],
2280         }],
2281         ['OS=="win"', {
2282           'dependencies': [
2283             'chrome_version_resources',
2284             'installer_util_strings',
2285             '../third_party/iaccessible2/iaccessible2.gyp:iaccessible2',
2286             '../third_party/isimpledom/isimpledom.gyp:isimpledom',
2287           ],
2288           'conditions': [
2289             ['win_use_allocator_shim==1', {
2290               'dependencies': [
2291                 '<(allocator_target)',
2292               ],
2293             }],
2294           ],
2295           'include_dirs': [
2296             '<(DEPTH)/third_party/wtl/include',
2297           ],
2298           'sources': [
2299             # TODO:  It would be nice to have these pulled in
2300             # automatically from direct_dependent_settings in
2301             # their various targets (net.gyp:net_resources, etc.),
2302             # but that causes errors in other targets when
2303             # resulting .res files get referenced multiple times.
2304             '<(SHARED_INTERMEDIATE_DIR)/chrome/browser_resources.rc',
2305             '<(SHARED_INTERMEDIATE_DIR)/chrome/common_resources.rc',
2306             '<(SHARED_INTERMEDIATE_DIR)/chrome/renderer_resources.rc',
2307             '<(SHARED_INTERMEDIATE_DIR)/chrome/theme_resources.rc',
2308             '<(SHARED_INTERMEDIATE_DIR)/chrome/theme_resources_standard.rc',
2309             '<(SHARED_INTERMEDIATE_DIR)/chrome_version/other_version.rc',
2310             '<(SHARED_INTERMEDIATE_DIR)/net/net_resources.rc',
2311             '<(SHARED_INTERMEDIATE_DIR)/ui/ui_resources/ui_resources.rc',
2312             '<(SHARED_INTERMEDIATE_DIR)/ui/ui_resources_standard/ui_resources_standard.rc',
2313             '<(SHARED_INTERMEDIATE_DIR)/webkit/webkit_chromium_resources.rc',
2314             '<(SHARED_INTERMEDIATE_DIR)/webkit/webkit_resources.rc',
2315           ],
2316           'link_settings': {
2317             'libraries': [
2318               '-lcomsupp.lib',
2319               '-loleacc.lib',
2320               '-lrpcrt4.lib',
2321               '-lurlmon.lib',
2322               '-lwinmm.lib',
2323             ],
2324           },
2325           'configurations': {
2326             'Debug_Base': {
2327               'msvs_settings': {
2328                 'VCLinkerTool': {
2329                   # Forcing incremental build off to try to avoid incremental
2330                   # linking errors on 64-bit bots too. http://crbug.com/52555
2331                   'LinkIncremental': '1',
2332                 },
2333               },
2334             },
2335           },
2336         }, { # else: OS != "win"
2337           'sources!': [
2338             'app/chrome_dll.rc',
2339             'browser/accessibility/browser_accessibility_win_unittest.cc',
2340             'browser/bookmarks/bookmark_node_data_unittest.cc',
2341             'browser/rlz/rlz_unittest.cc',
2342             'browser/search_engines/template_url_scraper_unittest.cc',
2343             'browser/ui/views/bookmarks/bookmark_editor_view_unittest.cc',
2344             'browser/ui/views/extensions/browser_action_drag_data_unittest.cc',
2345             'browser/ui/views/first_run_search_engine_view_unittest.cc',
2346             'browser/ui/views/generic_info_view_unittest.cc',
2347             'test/data/resource.rc',
2348           ],
2349         }],
2350         ['toolkit_views==1', {
2351           'dependencies': [
2352             '../ui/views/views.gyp:views',
2353           ],
2354           'sources!': [
2355             'browser/ui/gtk/tabs/tab_renderer_gtk_unittest.cc',
2356           ],
2357         }, { # else: toolkit_views == 0
2358           'sources/': [
2359             ['exclude', '^browser/ui/views/'],
2360             ['exclude', '^../views/'],
2361             ['exclude', '^../ui/views/'],
2362             ['exclude', '^browser/extensions/key_identifier_conversion_views_unittest.cc'],
2363           ],
2364         }],
2365         ['use_openssl==1', {
2366           'sources/': [
2367             # OpenSSL build does not support firefox importer. See
2368             # http://crbug.com/64926
2369             ['exclude', '^browser/importer/'],
2370           ],
2371         }],
2372         ['use_cups==1', {
2373           'defines': [
2374             'USE_CUPS',
2375           ],
2376           'sources': [
2377             'browser/printing/print_system_task_proxy_unittest.cc',
2378           ],
2379         }],
2380         ['component=="shared_library" and incremental_chrome_dll!=1', {
2381           # This is needed for tests that subclass
2382           # RendererWebKitPlatformSupportImpl, which subclasses stuff in
2383           # glue, which refers to symbols defined in these files.
2384           # Hopefully this can be resolved with http://crbug.com/98755.
2385           'sources': [
2386             '../content/common/socket_stream_dispatcher.cc',
2387           ]},
2388         ],
2389       ],
2390     },
2391     {
2392       # Executable that runs each browser test in a new process.
2393       'target_name': 'browser_tests',
2394       'type': 'executable',
2395       'msvs_cygwin_shell': 0,
2396       'msvs_cygwin_dirs': ['<(DEPTH)/third_party/cygwin'],
2397       'dependencies': [
2398         'browser',
2399         'browser/sync/protocol/sync_proto.gyp:sync_proto',
2400         'chrome',
2401         'chrome_resources.gyp:chrome_resources',
2402         'chrome_resources.gyp:chrome_strings',
2403         'renderer',
2404         'test_support_common',
2405         '../base/base.gyp:base',
2406         '../base/base.gyp:base_i18n',
2407         '../base/base.gyp:test_support_base',
2408         '../net/net.gyp:net',
2409         '../net/net.gyp:net_test_support',
2410         '../skia/skia.gyp:skia',
2411         '../testing/gmock.gyp:gmock',
2412         '../testing/gtest.gyp:gtest',
2413         '../third_party/cld/cld.gyp:cld',
2414         '../third_party/icu/icu.gyp:icui18n',
2415         '../third_party/icu/icu.gyp:icuuc',
2416         '../third_party/leveldatabase/leveldatabase.gyp:leveldatabase',
2417         '../v8/tools/gyp/v8.gyp:v8',
2418         '../webkit/webkit.gyp:test_shell_test_support',
2419         # Runtime dependencies
2420         '../third_party/mesa/mesa.gyp:osmesa',
2421         '../third_party/WebKit/Source/WebKit/chromium/WebKit.gyp:copy_TestNetscapePlugIn',
2422       ],
2423       'include_dirs': [
2424         '..',
2425       ],
2426       'defines': [
2427         'HAS_OUT_OF_PROC_TEST_RUNNER',
2428         'BROWSER_TESTS_HEADER_OVERRIDE="chrome/test/base/in_process_browser_test.h"',
2429       ],
2430       'sources': [
2431         'app/breakpad_mac_stubs.mm',
2432         'app/chrome_command_ids.h',
2433         'app/chrome_dll.rc',
2434         'app/chrome_dll_resource.h',
2435         'app/chrome_version.rc.version',
2436         'browser/accessibility/accessibility_extension_apitest.cc',
2437         'browser/autocomplete/autocomplete_browsertest.cc',
2438         'browser/autofill/form_structure_browsertest.cc',
2439         'browser/automation/automation_tab_helper_browsertest.cc',
2440         'browser/bookmarks/bookmark_extension_apitest.cc',
2441         'browser/bookmarks/bookmark_manager_extension_apitest.cc',
2442         'browser/browsing_data_database_helper_browsertest.cc',
2443         'browser/browsing_data_helper_browsertest.h',
2444         'browser/browsing_data_indexed_db_helper_browsertest.cc',
2445         'browser/browsing_data_local_storage_helper_browsertest.cc',
2446         'browser/chromeos/brightness_bubble_browsertest.cc',
2447         'browser/chromeos/cros/cros_in_process_browser_test.cc',
2448         'browser/chromeos/cros/cros_in_process_browser_test.h',
2449         'browser/chromeos/cros/cros_mock.cc',
2450         'browser/chromeos/cros/cros_mock.h',
2451         'browser/chromeos/disks/mock_disk_mount_manager.cc',
2452         'browser/chromeos/disks/mock_disk_mount_manager.h',
2453         'browser/chromeos/extensions/file_browser_notifications_browsertest.cc',
2454         'browser/chromeos/login/enrollment/enterprise_enrollment_screen_browsertest.cc',
2455         'browser/chromeos/login/existing_user_controller_browsertest.cc',
2456         'browser/chromeos/login/login_browsertest.cc',
2457         'browser/chromeos/login/login_utils_browsertest.cc',
2458         'browser/chromeos/login/mock_authenticator.cc',
2459         'browser/chromeos/login/mock_authenticator.h',
2460         'browser/chromeos/login/enrollment/mock_enterprise_enrollment_screen.cc',
2461         'browser/chromeos/login/enrollment/mock_enterprise_enrollment_screen.h',
2462         'browser/chromeos/login/mock_eula_screen.cc',
2463         'browser/chromeos/login/mock_eula_screen.h',
2464         'browser/chromeos/login/mock_network_screen.cc',
2465         'browser/chromeos/login/mock_network_screen.h',
2466         'browser/chromeos/login/mock_screen_observer.cc',
2467         'browser/chromeos/login/mock_screen_observer.h',
2468         'browser/chromeos/login/mock_update_screen.cc',
2469         'browser/chromeos/login/mock_update_screen.h',
2470         'browser/chromeos/login/network_screen_browsertest.cc',
2471         'browser/chromeos/login/screen_locker_browsertest.cc',
2472         'browser/chromeos/login/screen_locker_tester.cc',
2473         'browser/chromeos/login/screen_locker_tester.h',
2474         'browser/chromeos/login/update_screen_browsertest.cc',
2475         'browser/chromeos/login/wizard_controller_browsertest.cc',
2476         'browser/chromeos/login/wizard_in_process_browser_test.cc',
2477         'browser/chromeos/login/wizard_in_process_browser_test.h',
2478         'browser/chromeos/media/media_player_browsertest.cc',
2479         'browser/chromeos/notifications/notification_browsertest.cc',
2480         'browser/chromeos/panels/panel_browsertest.cc',
2481         'browser/chromeos/process_proxy/process_proxy_browsertest.cc',
2482         'browser/chromeos/status/accessibility_menu_button_browsertest.cc',
2483         'browser/chromeos/status/caps_lock_menu_button_browsertest.cc',
2484         'browser/chromeos/status/clock_menu_button_browsertest.cc',
2485         'browser/chromeos/status/input_method_menu_button_browsertest.cc',
2486         'browser/chromeos/status/power_menu_button_browsertest.cc',
2487         'browser/chromeos/status/status_area_view_browsertest.cc',
2488         'browser/chromeos/setting_level_bubble_browsertest.cc',
2489         'browser/chromeos/system_key_event_listener_browsertest.cc',
2490         'browser/chromeos/tab_closeable_state_watcher_browsertest.cc',
2491         'browser/chromeos/volume_bubble_browsertest.cc',
2492         'browser/content_settings/content_settings_browsertest.cc',
2493         'browser/crash_recovery_browsertest.cc',
2494         'browser/custom_handlers/protocol_handler_registry_browsertest.cc',
2495         'browser/download/download_browsertest.cc',
2496         'browser/download/download_extension_apitest.cc',
2497         'browser/download/download_extension_test.cc',
2498         'browser/download/download_test_observer.cc',
2499         'browser/download/save_page_browsertest.cc',
2500         'browser/errorpage_browsertest.cc',
2501         'browser/extensions/alert_apitest.cc',
2502         'browser/extensions/all_urls_apitest.cc',
2503         'browser/extensions/api/socket/socket_apitest.cc',
2504         'browser/extensions/api/terminal/terminal_private_apitest.cc',
2505         'browser/extensions/app_background_page_apitest.cc',
2506         'browser/extensions/app_notification_browsertest.cc',
2507         'browser/extensions/app_process_apitest.cc',
2508         'browser/extensions/autoupdate_interceptor.cc',
2509         'browser/extensions/autoupdate_interceptor.h',
2510         'browser/extensions/browser_action_apitest.cc',
2511         'browser/extensions/browser_action_test_util.h',
2512         'browser/extensions/browser_action_test_util_gtk.cc',
2513         'browser/extensions/browser_action_test_util_mac.mm',
2514         'browser/extensions/browser_action_test_util_views.cc',
2515         'browser/extensions/chrome_app_api_browsertest.cc',
2516         'browser/extensions/content_script_apitest.cc',
2517         'browser/extensions/content_security_policy_apitest.cc',
2518         'browser/extensions/convert_web_app_browsertest.cc',
2519         'browser/extensions/cross_origin_xhr_apitest.cc',
2520         'browser/extensions/crx_installer_browsertest.cc',
2521         'browser/extensions/events_apitest.cc',
2522         'browser/extensions/execute_script_apitest.cc',
2523         'browser/extensions/extension_apitest.cc',
2524         'browser/extensions/extension_apitest.h',
2525         'browser/extensions/extension_apitest_apitest.cc',
2526         'browser/extensions/extension_bindings_apitest.cc',
2527         'browser/extensions/extension_browsertest.cc',
2528         'browser/extensions/extension_browsertest.h',
2529         'browser/extensions/extension_browsertests_misc.cc',
2530         'browser/extensions/extension_chrome_auth_private_apitest.cc',
2531         'browser/extensions/extension_clear_test.cc',
2532         'browser/extensions/extension_content_settings_apitest.cc',
2533         'browser/extensions/extension_context_menu_apitest.cc',
2534         'browser/extensions/extension_context_menu_browsertest.cc',
2535         'browser/extensions/extension_cookies_apitest.cc',
2536         'browser/extensions/extension_crash_recovery_browsertest.cc',
2537         'browser/extensions/extension_debugger_apitest.cc',
2538         'browser/extensions/extension_decode_jpeg_apitest.cc',
2539         'browser/extensions/extension_devtools_browsertest.cc',
2540         'browser/extensions/extension_devtools_browsertest.h',
2541         'browser/extensions/extension_devtools_browsertests.cc',
2542         'browser/extensions/extension_dom_clipboard_apitest.cc',
2543         'browser/extensions/extension_file_browser_private_apitest.cc',
2544         'browser/extensions/extension_fileapi_apitest.cc',
2545         'browser/extensions/extension_function_test_utils.cc',
2546         'browser/extensions/extension_function_test_utils.h',
2547         'browser/extensions/extension_geolocation_apitest.cc',
2548         'browser/extensions/extension_get_views_apitest.cc',
2549         'browser/extensions/extension_i18n_apitest.cc',
2550         'browser/extensions/extension_icon_source_apitest.cc',
2551         'browser/extensions/extension_idle_apitest.cc',
2552         'browser/extensions/extension_incognito_apitest.cc',
2553         'browser/extensions/extension_info_private_apitest_chromeos.cc',
2554         'browser/extensions/extension_input_apitest.cc',
2555         'browser/extensions/extension_input_ime_apitest_chromeos.cc',
2556         'browser/extensions/extension_input_method_apitest.cc',
2557         'browser/extensions/extension_input_ui_apitest.cc',
2558         'browser/extensions/extension_install_ui_browsertest.cc',
2559         'browser/extensions/extension_javascript_url_apitest.cc',
2560         'browser/extensions/extension_local_filesystem_apitest.cc',
2561         'browser/extensions/extension_management_api_browsertest.cc',
2562         'browser/extensions/extension_management_apitest.cc',
2563         'browser/extensions/extension_management_browsertest.cc',
2564         'browser/extensions/extension_messages_apitest.cc',
2565         'browser/extensions/extension_messages_browsertest.cc',
2566         'browser/extensions/extension_metrics_apitest.cc',
2567         'browser/extensions/extension_module_apitest.cc',
2568         'browser/extensions/extension_omnibox_apitest.cc',
2569         'browser/extensions/extension_override_apitest.cc',
2570         'browser/extensions/extension_page_capture_apitest.cc',
2571         'browser/extensions/extension_preference_apitest.cc',
2572         'browser/extensions/extension_processes_apitest.cc',
2573         'browser/extensions/extension_proxy_apitest.cc',
2574         'browser/extensions/extension_resource_request_policy_apitest.cc',
2575         'browser/extensions/extension_sidebar_apitest.cc',
2576         'browser/extensions/extension_startup_browsertest.cc',
2577         'browser/extensions/extension_storage_apitest.cc',
2578         'browser/extensions/extension_tabs_apitest.cc',
2579         'browser/extensions/extension_tabs_test.cc',
2580         'browser/extensions/extension_test_message_listener.cc',
2581         'browser/extensions/extension_test_message_listener.h',
2582         'browser/extensions/extension_toolbar_model_browsertest.cc',
2583         'browser/extensions/extension_tts_apitest.cc',
2584         'browser/extensions/extension_url_rewrite_browsertest.cc',
2585         'browser/extensions/extension_web_socket_proxy_private_apitest.cc',
2586         'browser/extensions/extension_webglbackground_apitest.cc',
2587         'browser/extensions/extension_webnavigation_apitest.cc',
2588         'browser/extensions/extension_webrequest_apitest.cc',
2589         'browser/extensions/extension_websocket_apitest.cc',
2590         'browser/extensions/extension_webstore_private_apitest.cc',
2591         'browser/extensions/isolated_app_browsertest.cc',
2592         'browser/extensions/lazy_background_page_apitest.cc',
2593         'browser/extensions/notifications_apitest.cc',
2594         'browser/extensions/page_action_apitest.cc',
2595         'browser/extensions/permissions_apitest.cc',
2596         'browser/extensions/platform_app_browsertest.cc',
2597         'browser/extensions/settings/settings_apitest.cc',
2598         'browser/extensions/stubs_apitest.cc',
2599         'browser/extensions/system/system_apitest.cc',
2600         'browser/extensions/webstore_inline_install_browsertest.cc',
2601         'browser/extensions/window_open_apitest.cc',
2602         'browser/first_run/first_run_browsertest.cc',
2603         'browser/geolocation/access_token_store_browsertest.cc',
2604         'browser/geolocation/geolocation_browsertest.cc',
2605         'browser/history/history_browsertest.cc',
2606         'browser/history/history_extension_apitest.cc',
2607         'browser/history/top_sites_extension_test.cc',
2608         'browser/infobars/infobar_extension_apitest.cc',
2609         'browser/importer/toolbar_importer_utils_browsertest.cc',
2610         'browser/magic_iframe_browsertest.cc',
2611         'browser/net/cookie_policy_browsertest.cc',
2612         'browser/net/ftp_browsertest.cc',
2613         'browser/notifications/desktop_notifications_unittest.cc',
2614         'browser/notifications/desktop_notifications_unittest.h',
2615         'browser/oom_priority_manager_browsertest.cc',
2616         'browser/policy/device_management_backend_mock.cc',
2617         'browser/policy/device_management_backend_mock.h',
2618         'browser/policy/device_management_service_browsertest.cc',
2619         'browser/policy/enterprise_metrics_browsertest.cc',
2620         'browser/policy/enterprise_metrics_enrollment_browsertest.cc',
2621         'browser/popup_blocker_browsertest.cc',
2622         'browser/prerender/prerender_browsertest.cc',
2623         'browser/printing/print_dialog_cloud_uitest.cc',
2624         'browser/printing/print_preview_tab_controller_browsertest.cc',
2625         'browser/profiles/profile_manager_browsertest.cc',
2626         'browser/rlz/rlz_extension_apitest.cc',
2627         'browser/referrer_policy_browsertest.cc',
2628         'browser/renderer_host/render_process_host_chrome_browsertest.cc',
2629         'browser/renderer_host/web_cache_manager_browsertest.cc',
2630         'browser/safe_browsing/safe_browsing_blocking_page_test.cc',
2631         'browser/safe_browsing/safe_browsing_service_browsertest.cc',
2632         'browser/service/service_process_control_browsertest.cc',
2633         'browser/sessions/session_restore_browsertest.cc',
2634         'browser/sessions/tab_restore_service_browsertest.cc',
2635         'browser/speech/speech_input_bubble_browsertest.cc',
2636         'browser/speech/speech_input_extension_apitest.cc',
2637         'browser/spellchecker/spellcheck_host_browsertest.cc',
2638         'browser/ssl/ssl_browser_tests.cc',
2639         'browser/tab_contents/render_view_context_menu_browsertest.cc',
2640         'browser/tab_first_render_watcher_browsertest.cc',
2641         'browser/task_manager/task_manager_browsertest.cc',
2642         'browser/task_manager/task_manager_browsertest_util.cc',
2643         'browser/task_manager/task_manager_browsertest_util.h',
2644         'browser/task_manager/task_manager_notification_browsertest.cc',
2645         'browser/translate/translate_manager_browsertest.cc',
2646         'browser/ui/browser_browsertest.cc',
2647         'browser/ui/browser_close_browsertest.cc',
2648         'browser/ui/browser_init_browsertest.cc',
2649         'browser/ui/browser_navigator_browsertest.cc',
2650         'browser/ui/browser_navigator_browsertest.h',
2651         'browser/ui/browser_navigator_browsertest_chromeos.cc',
2652         'browser/ui/cocoa/content_settings/content_setting_bubble_cocoa_unittest.mm',
2653         'browser/ui/cocoa/view_id_util_browsertest.mm',
2654         'browser/ui/cocoa/applescript/browsercrapplication+applescript_test.mm',
2655         'browser/ui/cocoa/applescript/window_applescript_test.mm',
2656         'browser/ui/find_bar/find_bar_host_browsertest.cc',
2657         'browser/ui/global_error_service_browsertest.cc',
2658         'browser/ui/gtk/view_id_util_browsertest.cc',
2659         'browser/ui/intents/web_intent_picker_controller_browsertest.cc',
2660         'browser/ui/login/login_prompt_browsertest.cc',
2661         'browser/ui/panels/panel_app_browsertest.cc',
2662         'browser/ui/panels/panel_browser_view_browsertest.cc',
2663         'browser/ui/views/browser_actions_container_browsertest.cc',
2664         'browser/ui/views/dom_view_browsertest.cc',
2665         'browser/ui/views/html_dialog_view_browsertest.cc',
2666         'browser/ui/views/select_file_dialog_extension_browsertest.cc',
2667         'browser/ui/views/status_icons/status_tray_chromeos_browsertest.cc',
2668         'browser/ui/webui/chrome_url_data_manager_browsertest.cc',
2669         'browser/ui/webui/ntp/most_visited_browsertest.cc',
2670         'browser/ui/webui/test_chrome_web_ui_factory_browsertest.cc',
2671         'browser/ui/webui/bidi_checker_web_ui_test.cc',
2672         'browser/ui/webui/bidi_checker_web_ui_test.h',
2673         'browser/ui/webui/net_internals_ui_browsertest.cc',
2674         'browser/ui/webui/ntp/new_tab_ui_browsertest.cc',
2675         'browser/ui/webui/options/advanced_options_browsertest.js',
2676         'browser/ui/webui/options/autofill_options_browsertest.js',
2677         'browser/ui/webui/options/browser_options_browsertest.js',
2678         'browser/ui/webui/options/certificate_manager_browsertest.js',
2679         'browser/ui/webui/options/content_options_browsertest.js',
2680         'browser/ui/webui/options/content_settings_exception_area_browsertest.js',
2681         'browser/ui/webui/options/cookies_view_browsertest.js',
2682         'browser/ui/webui/options/font_settings_browsertest.js',
2683         'browser/ui/webui/options/language_options_browsertest.js',
2684         'browser/ui/webui/options/options_browsertest.js',
2685         'browser/ui/webui/options/password_manager_browsertest.js',
2686         'browser/ui/webui/options/personal_options_browsertest.js',
2687         'browser/ui/webui/options/search_engine_manager_browsertest.js',
2688         'browser/ui/webui/sync_setup_browsertest.js',
2689         'browser/ui/webui/test_html_dialog_ui_delegate.cc',
2690         'browser/ui/webui/test_html_dialog_ui_delegate.h',
2691         'browser/ui/webui/web_ui_browsertest.cc',
2692         'browser/ui/webui/web_ui_browsertest.h',
2693         'browser/ui/webui/web_ui_test_handler.cc',
2694         'browser/ui/webui/web_ui_test_handler.h',
2695         'common/time_format_browsertest.cc',
2696         'renderer/autofill/autofill_browsertest.cc',
2697         'renderer/autofill/form_autocomplete_browsertest.cc',
2698         'renderer/autofill/form_autofill_browsertest.cc',
2699         'renderer/autofill/password_autofill_manager_browsertest.cc',
2700         'renderer/automation/automation_renderer_helper_browsertest.cc',
2701         'renderer/content_settings_observer_browsertest.cc',
2702         'renderer/page_click_tracker_browsertest.cc',
2703         'renderer/print_web_view_helper_browsertest.cc',
2704         'renderer/safe_browsing/malware_dom_details_browsertest.cc',
2705         'renderer/safe_browsing/phishing_classifier_browsertest.cc',
2706         'renderer/safe_browsing/phishing_classifier_delegate_browsertest.cc',
2707         'renderer/safe_browsing/phishing_dom_feature_extractor_browsertest.cc',
2708         'renderer/safe_browsing/phishing_thumbnailer_browsertest.cc',
2709         'renderer/translate_helper_browsertest.cc',
2710         'test/automation/dom_automation_browsertest.cc',
2711         'test/base/in_process_browser_test_browsertest.cc',
2712         'test/base/chrome_render_view_test.cc',
2713         'test/base/chrome_render_view_test.h',
2714         'test/base/chrome_test_launcher.cc',
2715         'test/data/webui/assertions.js',
2716         'test/data/webui/async_gen.cc',
2717         'test/data/webui/async_gen.h',
2718         'test/data/webui/async_gen.js',
2719         'test/data/webui/certificate_viewer_dialog_test.js',
2720         'test/data/webui/certificate_viewer_ui_test-inl.h',
2721         'test/data/webui/chrome_send_browsertest.cc',
2722         'test/data/webui/chrome_send_browsertest.h',
2723         'test/data/webui/chrome_send_browsertest.js',
2724         'test/data/webui/edit_search_engine_dialog_browsertest.cc',
2725         'test/data/webui/edit_search_engine_dialog_browsertest.h',
2726         'test/data/webui/edit_search_engine_dialog_browsertest.js',
2727         'test/data/webui/hung_renderer_dialog_test.js',
2728         'test/data/webui/hung_renderer_dialog_ui_test-inl.h',
2729         'test/data/webui/mock4js_browsertest.js',
2730         'test/data/webui/ntp4.js',
2731         'test/data/webui/print_preview.h',
2732         'test/data/webui/print_preview.cc',
2733         'test/data/webui/print_preview.js',
2734         'test/gpu/gpu_feature_browsertest.cc',
2735         # TODO(craig): Rename this and run from base_unittests when the test
2736         # is safe to run there. See http://crbug.com/78722 for details.
2737         '../base/files/file_path_watcher_browsertest.cc',
2738         '../content/app/startup_helper_win.cc',
2739         '../content/browser/accessibility/renderer_accessibility_browsertest.cc',
2740         '../content/browser/child_process_security_policy_browsertest.cc',
2741         '../content/browser/device_orientation/device_orientation_browsertest.cc',
2742         '../content/browser/download/mhtml_generation_browsertest.cc',
2743         '../content/browser/file_system/file_system_browsertest.cc',
2744         '../content/browser/in_process_webkit/dom_storage_browsertest.cc',
2745         '../content/browser/in_process_webkit/indexed_db_browsertest.cc',
2746         '../content/browser/indexed_db/idbbindingutilities_browsertest.cc',
2747         '../content/browser/plugin_data_remover_impl_browsertest.cc',
2748         '../content/browser/plugin_service_impl_browsertest.cc',
2749         '../content/browser/renderer_host/render_process_host_browsertest.cc',
2750         '../content/browser/renderer_host/render_process_host_browsertest.h',
2751         '../content/browser/renderer_host/render_view_host_browsertest.cc',
2752         '../content/browser/renderer_host/render_view_host_manager_browsertest.cc',
2753         '../content/browser/renderer_host/resource_dispatcher_host_browsertest.cc',
2754         '../content/browser/speech/speech_input_browsertest.cc',
2755         '../content/browser/webkit_browsertest.cc',
2756         '../content/renderer/render_view_browsertest.cc',
2757         '../content/renderer/render_view_browsertest_mac.mm',
2758         '../content/test/render_widget_browsertest.cc',
2759         '../content/test/render_widget_browsertest.h',
2760         '../content/test/test_launcher.cc',
2761         '../content/test/test_launcher.h',
2762       ],
2763       'rules': [
2764         {
2765           'rule_name': 'js2webui',
2766           'extension': 'js',
2767           'msvs_external_rule': 1,
2768           'inputs': [
2769             '<(gypv8sh)',
2770             '<(PRODUCT_DIR)/v8_shell<(EXECUTABLE_SUFFIX)',
2771             '<(mock_js)',
2772             '<(test_api_js)',
2773             '<(js2gtest)',
2774           ],
2775           'outputs': [
2776             '<(INTERMEDIATE_DIR)/chrome/<(RULE_INPUT_DIRNAME)/<(RULE_INPUT_ROOT)-gen.cc',
2777             '<(PRODUCT_DIR)/test_data/chrome/<(RULE_INPUT_DIRNAME)/<(RULE_INPUT_ROOT).js',
2778           ],
2779           'process_outputs_as_sources': 1,
2780           'action': [
2781             'python',
2782             '<@(_inputs)',
2783             'webui',
2784             '<(RULE_INPUT_PATH)',
2785             'chrome/<(RULE_INPUT_DIRNAME)/<(RULE_INPUT_ROOT).js',
2786             '<@(_outputs)',
2787           ],
2788         },
2789       ],
2790       'conditions': [
2791         ['disable_nacl!=1', {
2792           'sources':[
2793             'browser/extensions/extension_nacl_browsertest.cc',
2794           ],
2795         }],
2796         ['chromeos==0', {
2797           'sources/': [
2798             ['exclude', '^browser/chromeos'],
2799           ],
2800           'sources!': [
2801             'browser/chromeos/media/media_player_browsertest.cc',
2802             'browser/extensions/extension_file_browser_private_apitest.cc',
2803             'browser/extensions/extension_input_method_apitest.cc',
2804             'browser/extensions/api/terminal/terminal_private_apitest.cc',
2805             'browser/oom_priority_manager_browsertest.cc',
2806             'browser/policy/enterprise_metrics_enrollment_browsertest.cc',
2807             'browser/ui/views/status_icons/status_tray_chromeos_browsertest.cc',
2808           ],
2809         }, { #else: OS == "chromeos"
2810           'sources!': [
2811             'browser/notifications/desktop_notifications_unittest.cc',
2812             'browser/service/service_process_control_browsertest.cc',
2813             # chromeos does not use cross-platform panels
2814             'browser/ui/panels/panel_app_browsertest.cc',
2815             'browser/ui/panels/panel_browser_view_browsertest.cc',
2816             'browser/ui/webui/print_preview.js',
2817           ],
2818           'conditions': [
2819             ['use_aura==1', {
2820               'sources/': [
2821                 ['exclude', '^browser/chromeos/login/screen_locker_browsertest.cc'],
2822                 ['exclude', '^browser/chromeos/login/screen_locker_tester.cc'],
2823                 ['exclude', '^browser/chromeos/notifications/'],
2824                 ['exclude', '^browser/chromeos/panels/panel_browsertest.cc'],
2825                 ['exclude', '^browser/ui/views/status_icons/status_tray_chromeos_browsertest.cc'],
2826                 # For troubleshooting crbug.com/103497.
2827                 ['exclude', '^browser/printing/print_dialog_cloud_uitest.cc'],
2828               ],
2829             }],
2830           ],
2831         }],
2832         ['use_virtual_keyboard==1', {
2833           'sources': [
2834             'browser/ui/virtual_keyboard/virtual_keyboard_manager_browsertest.cc',
2835           ],
2836         }],
2837         ['file_manager_extension==0', {
2838           'sources!': [
2839             'browser/ui/views/select_file_dialog_extension_browsertest.cc',
2840           ],
2841         }],
2842         ['chromeos==0 or use_virtual_keyboard==0', {
2843           'sources!': [
2844             'browser/extensions/extension_input_ui_apitest.cc',
2845           ],
2846         }],
2847         ['configuration_policy==0', {
2848           'sources/': [
2849             ['exclude', '^browser/policy/'],
2850           ],
2851         }],
2852         ['input_speech==0', {
2853           'sources/': [
2854             ['exclude', '^browser/speech/'],
2855             ['exclude', '^../content/browser/speech/'],
2856           ],
2857         }],
2858         ['notifications==0', {
2859           'sources!': [
2860             'browser/extensions/notifications_apitest.cc',
2861           ],
2862         }],
2863         ['safe_browsing==1', {
2864           'defines': [
2865             'ENABLE_SAFE_BROWSING',
2866           ],
2867         }, {  # safe_browsing == 0
2868           'sources/': [
2869             ['exclude', '^browser/safe_browsing/'],
2870             ['exclude', '^renderer/safe_browsing/'],
2871           ],
2872         }],
2873         ['internal_pdf', {
2874           'sources': [
2875             'browser/ui/pdf/pdf_browsertest.cc',
2876           ],
2877         }],
2878         ['OS!="linux" or toolkit_views==1', {
2879           'sources!': [
2880             'browser/extensions/browser_action_test_util_gtk.cc',
2881             'browser/ui/gtk/view_id_util_browsertest.cc',
2882           ],
2883         }],
2884         ['OS=="win"', {
2885           'sources': [
2886             '<(SHARED_INTERMEDIATE_DIR)/chrome/browser_resources.rc',
2887             '<(SHARED_INTERMEDIATE_DIR)/chrome/common_resources.rc',
2888             '<(SHARED_INTERMEDIATE_DIR)/chrome/renderer_resources.rc',
2889             '<(SHARED_INTERMEDIATE_DIR)/chrome/theme_resources.rc',
2890             '<(SHARED_INTERMEDIATE_DIR)/chrome/theme_resources_standard.rc',
2891             '<(SHARED_INTERMEDIATE_DIR)/chrome_version/other_version.rc',
2892             '<(SHARED_INTERMEDIATE_DIR)/net/net_resources.rc',
2893             '<(SHARED_INTERMEDIATE_DIR)/ui/ui_resources/ui_resources.rc',
2894             '<(SHARED_INTERMEDIATE_DIR)/ui/ui_resources_standard/ui_resources_standard.rc',
2895             '<(SHARED_INTERMEDIATE_DIR)/webkit/webkit_chromium_resources.rc',
2896             '<(SHARED_INTERMEDIATE_DIR)/webkit/webkit_resources.rc',
2897             # TODO(alekseys): port sidebar to linux/mac.
2898             'browser/sidebar/sidebar_browsertest.cc',
2899           ],
2900           'include_dirs': [
2901             '<(DEPTH)/third_party/wtl/include',
2902           ],
2903           'dependencies': [
2904             'chrome_version_resources',
2905             'installer_util_strings',
2906             '../sandbox/sandbox.gyp:sandbox',
2907           ],
2908           'conditions': [
2909             ['win_use_allocator_shim==1', {
2910               'dependencies': [
2911                 '<(allocator_target)',
2912               ],
2913             }],
2914           ],
2915           'configurations': {
2916             'Debug_Base': {
2917               'msvs_settings': {
2918                 'VCLinkerTool': {
2919                   'LinkIncremental': '<(msvs_debug_link_nonincremental)',
2920                 },
2921               },
2922             },
2923           }
2924         }, { # else: OS != "win"
2925           'sources!': [
2926             'app/chrome_command_ids.h',
2927             'app/chrome_dll.rc',
2928             'app/chrome_dll_resource.h',
2929             'app/chrome_version.rc.version',
2930             'browser/rlz/rlz_extension_apitest.cc',
2931             # http://crbug.com/15101 These tests fail on Linux and Mac.
2932             'browser/renderer_host/web_cache_manager_browsertest.cc',
2933             '../content/browser/child_process_security_policy_browsertest.cc',
2934           ],
2935         }],
2936         ['toolkit_uses_gtk == 1', {
2937           'dependencies': [
2938             '../build/linux/system.gyp:gtk',
2939             '../tools/xdisplaycheck/xdisplaycheck.gyp:xdisplaycheck',
2940           ],
2941           'sources': [
2942             # TODO(estade): port to win/mac.
2943             'browser/ui/webui/constrained_html_ui_browsertest.cc',
2944           ],
2945         }],
2946         ['toolkit_uses_gtk == 1 or chromeos==1 or (OS=="linux" and use_aura==1)', {
2947           'dependencies': [
2948             '../build/linux/system.gyp:ssl',
2949           ],
2950         }],
2951         ['OS=="mac"', {
2952           'include_dirs': [
2953             '../third_party/GTM',
2954           ],
2955           # TODO(mark): We really want this for all non-static library
2956           # targets, but when we tried to pull it up to the common.gypi
2957           # level, it broke other things like the ui, startup, and
2958           # page_cycler tests. *shrug*
2959           'xcode_settings': {
2960             'OTHER_LDFLAGS': [
2961               '-Wl,-ObjC',
2962             ],
2963           },
2964           # See the comment in this section of the unit_tests target for an
2965           # explanation (crbug.com/43791 - libwebcore.a is too large to mmap).
2966           'dependencies+++': [
2967             '../third_party/WebKit/Source/WebCore/WebCore.gyp/WebCore.gyp:webcore',
2968           ],
2969           'sources': [
2970             'browser/spellchecker/spellcheck_message_filter_mac_browsertest.cc',
2971             '../content/renderer/external_popup_menu_browsertest.cc',
2972           ],
2973           'sources!': [
2974             # TODO(hbono): This test depends on hunspell and we cannot run it on
2975             # Mac, which does not use hunspell by default.
2976             'browser/spellchecker/spellcheck_host_browsertest.cc',
2977           ],
2978         }, { # else: OS != "mac"
2979           'sources!': [
2980             'browser/extensions/browser_action_test_util_mac.mm',
2981           ],
2982         }],
2983         ['os_posix == 0 or chromeos == 1', {
2984           'sources!': [
2985             'common/time_format_browsertest.cc',
2986           ],
2987         }],
2988         ['os_posix == 1 and OS != "mac"', {
2989           'conditions': [
2990             ['linux_use_tcmalloc==1', {
2991               'dependencies': [
2992                 '../base/allocator/allocator.gyp:allocator',
2993               ],
2994             }],
2995           ],
2996         }],
2997         ['toolkit_views==1', {
2998           'dependencies': [
2999             '../ui/views/views.gyp:views',
3000           ],
3001           'sources!': [
3002             # TODO(estade): port to linux/views.
3003             'browser/ui/webui/constrained_html_ui_browsertest.cc',
3004           ],
3005         }, { # else: toolkit_views == 0
3006           'sources!': [
3007             'browser/extensions/browser_action_test_util_views.cc',
3008             'browser/extensions/extension_input_apitest.cc',
3009             'browser/tab_first_render_watcher_browsertest.cc',
3010             'browser/ui/panels/panel_browser_view_browsertest.cc',
3011             'browser/ui/views/browser_actions_container_browsertest.cc',
3012             'browser/ui/views/crypto_module_password_dialog_view_unittest.cc',
3013             'browser/ui/views/dom_view_browsertest.cc',
3014             'browser/ui/views/html_dialog_view_browsertest.cc',
3015           ],
3016         }],
3017         ['target_arch!="arm"', {
3018           'dependencies': [
3019             # build time dependency.
3020             '../v8/tools/gyp/v8.gyp:v8_shell#host',
3021             # run time dependency
3022             '../webkit/webkit.gyp:copy_npapi_test_plugin',
3023           ],
3024         }],
3025         ['component=="shared_library" and incremental_chrome_dll!=1', {
3026           # This is needed for tests that subclass
3027           # RendererWebKitPlatformSupportImpl, which subclasses stuff in
3028           # glue, which refers to symbols defined in these files.
3029           # Hopefully this can be resolved with http://crbug.com/98755.
3030           'sources': [
3031             '../content/common/socket_stream_dispatcher.cc',
3032           ]},
3033         ],
3034       ],  # conditions
3035     },  # target browser_tests
3036     {
3037       # Executable that runs safebrowsing test in a new process.
3038       'target_name': 'safe_browsing_tests',
3039       'type': 'executable',
3040       'dependencies': [
3041         'chrome',
3042         'test_support_common',
3043         '../base/base.gyp:base',
3044         '../net/net.gyp:net_test_support',
3045         '../skia/skia.gyp:skia',
3046         '../testing/gtest.gyp:gtest',
3047         # This is the safebrowsing test server.
3048         '../third_party/safe_browsing/safe_browsing.gyp:safe_browsing',
3049         '../ui/ui.gyp:ui_resources',
3050         '../ui/ui.gyp:ui_resources_standard',
3051       ],
3052       'include_dirs': [
3053         '..',
3054       ],
3055       'defines': [
3056         'HAS_OUT_OF_PROC_TEST_RUNNER',
3057         'BROWSER_TESTS_HEADER_OVERRIDE="chrome/test/base/in_process_browser_test.h"',
3058       ],
3059       'sources': [
3060         'app/chrome_dll.rc',
3061         'browser/safe_browsing/safe_browsing_test.cc',
3062         'test/base/chrome_test_launcher.cc',
3063         '../content/app/startup_helper_win.cc',
3064         '../content/test/test_launcher.cc',
3065         '../content/test/test_launcher.h',
3066       ],
3067       'conditions': [
3068         ['safe_browsing==0', {
3069           'sources!': [
3070             'browser/safe_browsing/safe_browsing_test.cc',
3071           ],
3072         }],
3073         ['OS=="win"', {
3074           'dependencies': [
3075             'chrome_version_resources',
3076             'installer_util_strings',
3077             '../sandbox/sandbox.gyp:sandbox',
3078           ],
3079           'sources': [
3080             '<(SHARED_INTERMEDIATE_DIR)/chrome/browser_resources.rc',
3081             '<(SHARED_INTERMEDIATE_DIR)/chrome/common_resources.rc',
3082             '<(SHARED_INTERMEDIATE_DIR)/chrome/renderer_resources.rc',
3083             '<(SHARED_INTERMEDIATE_DIR)/chrome/theme_resources.rc',
3084             '<(SHARED_INTERMEDIATE_DIR)/chrome/theme_resources_standard.rc',
3085             '<(SHARED_INTERMEDIATE_DIR)/chrome_version/other_version.rc',
3086             '<(SHARED_INTERMEDIATE_DIR)/net/net_resources.rc',
3087             '<(SHARED_INTERMEDIATE_DIR)/ui/ui_resources/ui_resources.rc',
3088             '<(SHARED_INTERMEDIATE_DIR)/ui/ui_resources_standard/ui_resources_standard.rc',
3089             '<(SHARED_INTERMEDIATE_DIR)/webkit/webkit_chromium_resources.rc',
3090             '<(SHARED_INTERMEDIATE_DIR)/webkit/webkit_resources.rc',
3091           ],
3092           'configurations': {
3093             'Debug_Base': {
3094               'msvs_settings': {
3095                 'VCLinkerTool': {
3096                   'LinkIncremental': '<(msvs_large_module_debug_link_mode)',
3097                 },
3098               },
3099             },
3100           },
3101         }],
3102         ['OS=="mac"', {
3103           # See crbug.com/43791 - libwebcore.a is too large to mmap on Mac.
3104           'dependencies+++': [
3105             '../third_party/WebKit/Source/WebCore/WebCore.gyp/WebCore.gyp:webcore',
3106           ],
3107           # These flags are needed to run the test on Mac.
3108           # Search for comments about "xcode_settings" elsewhere in this file.
3109           'xcode_settings': {'OTHER_LDFLAGS': ['-Wl,-ObjC']},
3110         }],
3111       ],
3112     },  # target safe_browsing_tests
3113     {
3114       # To run the tests from page_load_test.cc on Linux, we need to:
3115       #
3116       #   a) Build with Breakpad (GYP_DEFINES="linux_chromium_breakpad=1")
3117       #   b) Run with CHROME_HEADLESS=1 to generate crash dumps.
3118       #   c) Strip the binary if it's a debug build. (binary may be over 2GB)
3119       'target_name': 'reliability_tests',
3120       'type': 'executable',
3121       'dependencies': [
3122         'browser',
3123         'chrome',
3124         'chrome_resources.gyp:theme_resources',
3125         'test_support_common',
3126         'test_support_ui',
3127         '../skia/skia.gyp:skia',
3128         '../testing/gtest.gyp:gtest',
3129         '../third_party/WebKit/Source/WebKit/chromium/WebKit.gyp:webkit',
3130       ],
3131       'include_dirs': [
3132         '..',
3133       ],
3134       'sources': [
3135         'test/reliability/page_load_test.cc',
3136       ],
3137       'conditions': [
3138         ['OS=="win" and buildtype=="Official"', {
3139           'configurations': {
3140             'Release': {
3141               'msvs_settings': {
3142                 'VCCLCompilerTool': {
3143                   'WholeProgramOptimization': 'false',
3144                 },
3145               },
3146             },
3147           },
3148         },],
3149         ['OS=="win" and win_use_allocator_shim==1', {
3150           'dependencies': [
3151             '<(allocator_target)',
3152           ],
3153           'configurations': {
3154             'Debug': {
3155               'msvs_settings': {
3156                 'VCLinkerTool': {
3157                   'LinkIncremental': '<(msvs_large_module_debug_link_mode)',
3158                 },
3159               },
3160             },
3161           },
3162         },],
3163         ['toolkit_uses_gtk == 1', {
3164           'dependencies': [
3165             '../build/linux/system.gyp:gtk',
3166           ],
3167         },],
3168       ],
3169     },
3170     {
3171       'target_name': 'performance_ui_tests',
3172       'type': 'executable',
3173       'dependencies': [
3174         'chrome',
3175         'chrome_resources.gyp:chrome_resources',
3176         'chrome_resources.gyp:chrome_strings',
3177         'debugger',
3178         'test_support_common',
3179         'test_support_ui',
3180         '../base/base.gyp:base',
3181         '../skia/skia.gyp:skia',
3182         '../testing/gtest.gyp:gtest',
3183       ],
3184       'sources': [
3185         # TODO(darin): Move other UIPerfTests here.
3186         'test/perf/dom_checker_uitest.cc',
3187         'test/perf/dromaeo_benchmark_uitest.cc',
3188         'test/perf/feature_startup_test.cc',
3189         'test/perf/frame_rate/frame_rate_tests.cc',
3190         'test/perf/memory_test.cc',
3191         'test/perf/page_cycler_test.cc',
3192         'test/perf/shutdown_test.cc',
3193         'test/perf/startup_test.cc',
3194         'test/perf/sunspider_uitest.cc',
3195         'test/perf/tab_switching_test.cc',
3196         'test/perf/url_fetch_test.cc',
3197         'test/perf/v8_benchmark_uitest.cc',
3198       ],
3199       'conditions': [
3200         ['OS=="win" and buildtype=="Official"', {
3201           'configurations': {
3202             'Release': {
3203               'msvs_settings': {
3204                 'VCCLCompilerTool': {
3205                   'WholeProgramOptimization': 'false',
3206                 },
3207               },
3208             },
3209           },
3210         }],
3211         ['OS=="win"', {
3212           'conditions': [
3213             ['win_use_allocator_shim==1', {
3214               'dependencies': [
3215                 '<(allocator_target)',
3216               ],
3217             }],
3218           ],
3219           'configurations': {
3220             'Debug_Base': {
3221               'msvs_settings': {
3222                 'VCLinkerTool': {
3223                   'LinkIncremental': '<(msvs_large_module_debug_link_mode)',
3224                 },
3225               },
3226             },
3227           },
3228         }],
3229         ['OS=="mac"', {
3230           # See the comment in this section of the unit_tests target for an
3231           # explanation (crbug.com/43791 - libwebcore.a is too large to mmap).
3232           'dependencies+++': [
3233             '../third_party/WebKit/Source/WebCore/WebCore.gyp/WebCore.gyp:webcore',
3234           ],
3235         }],
3236         ['toolkit_uses_gtk == 1', {
3237           'dependencies': [
3238             '../build/linux/system.gyp:gtk',
3239             '../tools/xdisplaycheck/xdisplaycheck.gyp:xdisplaycheck',
3240           ],
3241         }],
3242         ['os_posix == 1 and OS != "mac"', {
3243           'conditions': [
3244             ['linux_use_tcmalloc==1', {
3245               'dependencies': [
3246                 '../base/allocator/allocator.gyp:allocator',
3247               ],
3248             }],
3249           ],
3250         }],
3251         ['toolkit_views==1', {
3252           'dependencies': [
3253             '../ui/views/views.gyp:views',
3254           ],
3255         }],
3256       ],
3257     },
3258     {
3259       'target_name': 'sync_unit_tests',
3260       'type': 'executable',
3261       'sources': [
3262         '<(protoc_out_dir)/chrome/browser/sync/protocol/test.pb.cc',
3263         'app/breakpad_mac_stubs.mm',
3264         'browser/sync/api/sync_change_unittest.cc',
3265         'browser/sync/api/sync_error_unittest.cc',
3266         'browser/sync/engine/apply_updates_command_unittest.cc',
3267         'browser/sync/engine/build_commit_command_unittest.cc',
3268         'browser/sync/engine/build_and_process_conflict_sets_command_unittest.cc',
3269         'browser/sync/engine/clear_data_command_unittest.cc',
3270         'browser/sync/engine/cleanup_disabled_types_command_unittest.cc',
3271         'browser/sync/engine/download_updates_command_unittest.cc',
3272         'browser/sync/engine/model_changing_syncer_command_unittest.cc',
3273         'browser/sync/engine/model_safe_worker_unittest.cc',
3274         'browser/sync/engine/nigori_util_unittest.cc',
3275         'browser/sync/engine/process_commit_response_command_unittest.cc',
3276         'browser/sync/engine/process_updates_command_unittest.cc',
3277         'browser/sync/engine/resolve_conflicts_command_unittest.cc',
3278         'browser/sync/engine/syncer_proto_util_unittest.cc',
3279         'browser/sync/engine/sync_scheduler_unittest.cc',
3280         'browser/sync/engine/sync_scheduler_whitebox_unittest.cc',
3281         'browser/sync/engine/syncer_unittest.cc',
3282         'browser/sync/engine/syncproto_unittest.cc',
3283         'browser/sync/engine/verify_updates_command_unittest.cc',
3284         'browser/sync/internal_api/change_record_unittest.cc',
3285         'browser/sync/internal_api/debug_info_event_listener_unittest.cc',
3286         'browser/sync/internal_api/syncapi_mock.h',
3287         'browser/sync/internal_api/syncapi_server_connection_manager_unittest.cc',
3288         'browser/sync/internal_api/syncapi_unittest.cc',
3289         'browser/sync/js/js_arg_list_unittest.cc',
3290         'browser/sync/js/js_event_details_unittest.cc',
3291         'browser/sync/js/js_mutation_event_observer_unittest.cc',
3292         'browser/sync/js/js_sync_manager_observer_unittest.cc',
3293         'browser/sync/notifier/cache_invalidation_packet_handler_unittest.cc',
3294         'browser/sync/notifier/chrome_invalidation_client_unittest.cc',
3295         'browser/sync/notifier/chrome_system_resources_unittest.cc',
3296         'browser/sync/notifier/invalidation_notifier_unittest.cc',
3297         'browser/sync/notifier/non_blocking_invalidation_notifier_unittest.cc',
3298         'browser/sync/notifier/p2p_notifier_unittest.cc',
3299         'browser/sync/notifier/registration_manager_unittest.cc',
3300         'browser/sync/protocol/proto_enum_conversions_unittest.cc',
3301         'browser/sync/protocol/proto_value_conversions_unittest.cc',
3302         'browser/sync/sessions/ordered_commit_set_unittest.cc',
3303         'browser/sync/sessions/session_state_unittest.cc',
3304         'browser/sync/sessions/status_controller_unittest.cc',
3305         'browser/sync/sessions/sync_session_context_unittest.cc',
3306         'browser/sync/sessions/sync_session_unittest.cc',
3307         'browser/sync/sessions/test_util.cc',
3308         'browser/sync/sessions/test_util.h',
3309         'browser/sync/sync_js_controller_unittest.cc',
3310         'browser/sync/syncable/directory_backing_store_unittest.cc',
3311         'browser/sync/syncable/model_type_payload_map_unittest.cc',
3312         'browser/sync/syncable/model_type_unittest.cc',
3313         'browser/sync/syncable/syncable_enum_conversions_unittest.cc',
3314         'browser/sync/syncable/syncable_id_unittest.cc',
3315         'browser/sync/syncable/syncable_unittest.cc',
3316         'browser/sync/test/engine/fake_model_safe_worker_registrar.cc',
3317         'browser/sync/test/engine/fake_model_safe_worker_registrar.h',
3318         'browser/sync/test/engine/fake_model_worker.cc',
3319         'browser/sync/test/engine/fake_model_worker.h',
3320         'browser/sync/test/engine/mock_connection_manager.cc',
3321         'browser/sync/test/engine/mock_connection_manager.h',
3322         'browser/sync/test/engine/mock_gaia_authenticator.cc',
3323         'browser/sync/test/engine/mock_gaia_authenticator.h',
3324         'browser/sync/test/engine/mock_gaia_authenticator_unittest.cc',
3325         'browser/sync/test/engine/syncer_command_test.cc',
3326         'browser/sync/test/engine/syncer_command_test.h',
3327         'browser/sync/test/engine/test_id_factory.h',
3328         'browser/sync/test/engine/test_syncable_utils.cc',
3329         'browser/sync/test/engine/test_syncable_utils.h',
3330         'browser/sync/test/sessions/test_scoped_session_event_listener.h',
3331         'browser/sync/util/data_encryption_unittest.cc',
3332         'browser/sync/util/enum_set_unittest.cc',
3333         'browser/sync/util/extensions_activity_monitor_unittest.cc',
3334         'browser/sync/util/protobuf_unittest.cc',
3335         'browser/sync/util/immutable_unittest.cc',
3336         'browser/sync/util/weak_handle_unittest.cc',
3337       ],
3338       'include_dirs': [
3339         '..',
3340         '<(protoc_out_dir)',
3341       ],
3342       'defines' : [
3343         'SYNC_ENGINE_VERSION_STRING="Unknown"',
3344         '_CRT_SECURE_NO_WARNINGS',
3345         '_USE_32BIT_TIME_T',
3346       ],
3347       'dependencies': [
3348         'browser/sync/protocol/sync_proto.gyp:sync_proto',
3349         'common',
3350         'debugger',
3351         '../jingle/jingle.gyp:notifier_test_util',
3352         '../net/net.gyp:net',
3353         '../skia/skia.gyp:skia',
3354         '../testing/gmock.gyp:gmock',
3355         '../testing/gtest.gyp:gtest',
3356         '../third_party/bzip2/bzip2.gyp:bzip2',
3357         '../third_party/leveldatabase/leveldatabase.gyp:leveldatabase',
3358         '../third_party/libjingle/libjingle.gyp:libjingle',
3359         'syncapi_core',
3360         'sync_notifier',
3361         'test_support_common',
3362         'test_support_sync',
3363         'test_support_syncapi',
3364         'test_support_syncapi_service',
3365         'test_support_sync_notifier',
3366         'test_support_unit',
3367       ],
3368       'conditions': [
3369         ['OS=="win"', {
3370           'conditions': [
3371             ['win_use_allocator_shim==1', {
3372               'dependencies': [
3373                 '<(allocator_target)',
3374               ],
3375             }],
3376           ],
3377           'link_settings': {
3378             'libraries': [
3379               '-lcrypt32.lib',
3380               '-lws2_32.lib',
3381               '-lsecur32.lib',
3382             ],
3383           },
3384           'configurations': {
3385             'Debug_Base': {
3386               'msvs_settings': {
3387                 'VCLinkerTool': {
3388                   'LinkIncremental': '<(msvs_large_module_debug_link_mode)',
3389                 },
3390               },
3391             },
3392           },
3393         }, { # else: OS != "win"
3394           'sources!': [
3395             'browser/sync/util/data_encryption_unittest.cc',
3396           ],
3397         }],
3398         ['toolkit_uses_gtk == 1', {
3399           'dependencies': [
3400             '../build/linux/system.gyp:gtk',
3401           ],
3402         }],
3403         ['toolkit_uses_gtk == 1 or chromeos==1 or (OS=="linux" and use_aura==1)', {
3404           'dependencies': [
3405             '../build/linux/system.gyp:ssl',
3406           ],
3407         }],
3408         ['OS=="mac"', {
3409           # See the comment in this section of the unit_tests target for an
3410           # explanation (crbug.com/43791 - libwebcore.a is too large to mmap).
3411           'dependencies+++': [
3412             '../third_party/WebKit/Source/WebCore/WebCore.gyp/WebCore.gyp:webcore',
3413           ],
3414           'dependencies': [
3415             'helper_app'
3416           ],
3417         },{  # OS!="mac"
3418           'dependencies': [
3419             'chrome_resources.gyp:packed_extra_resources',
3420             'chrome_resources.gyp:packed_resources'
3421           ],
3422         }],
3423         ['OS=="linux" and chromeos==1', {
3424           'include_dirs': [
3425             '<(grit_out_dir)',
3426           ],
3427         }],
3428       ],
3429     },
3430     {
3431       'target_name': 'sync_integration_tests',
3432       'type': 'executable',
3433       'dependencies': [
3434         'browser',
3435         'browser/sync/protocol/sync_proto.gyp:sync_proto',
3436         'chrome',
3437         'chrome_resources.gyp:chrome_resources',
3438         'chrome_resources.gyp:chrome_strings',
3439         'common',
3440         'renderer',
3441         'test_support_common',
3442         '../net/net.gyp:net',
3443         '../net/net.gyp:net_test_support',
3444         '../printing/printing.gyp:printing',
3445         '../skia/skia.gyp:skia',
3446         '../testing/gmock.gyp:gmock',
3447         '../testing/gtest.gyp:gtest',
3448         '../third_party/icu/icu.gyp:icui18n',
3449         '../third_party/icu/icu.gyp:icuuc',
3450         '../third_party/npapi/npapi.gyp:npapi',
3451         '../third_party/WebKit/Source/WebKit/chromium/WebKit.gyp:webkit',
3452       ],
3453       'include_dirs': [
3454         '..',
3455         '<(INTERMEDIATE_DIR)',
3456         '<(protoc_out_dir)',
3457       ],
3458       # TODO(phajdan.jr): Only temporary, to make transition easier.
3459       'defines': [
3460         'HAS_OUT_OF_PROC_TEST_RUNNER',
3461         'BROWSER_TESTS_HEADER_OVERRIDE="chrome/test/base/in_process_browser_test.h"',
3462       ],
3463       'sources': [
3464         'app/chrome_command_ids.h',
3465         'app/chrome_dll.rc',
3466         'app/chrome_dll_resource.h',
3467         'app/chrome_version.rc.version',
3468         'browser/password_manager/password_form_data.cc',
3469         'browser/sessions/session_backend.cc',
3470         'browser/sync/glue/session_model_associator.cc',
3471         'test/base/chrome_test_launcher.cc',
3472         'test/data/resource.rc',
3473         'browser/sync/test/integration/apps_helper.cc',
3474         'browser/sync/test/integration/apps_helper.h',
3475         'browser/sync/test/integration/autofill_helper.cc',
3476         'browser/sync/test/integration/autofill_helper.h',
3477         'browser/sync/test/integration/bookmarks_helper.cc',
3478         'browser/sync/test/integration/bookmarks_helper.h',
3479         'browser/sync/test/integration/enable_disable_test.cc',
3480         'browser/sync/test/integration/extensions_helper.cc',
3481         'browser/sync/test/integration/extensions_helper.h',
3482         'browser/sync/test/integration/migration_errors_test.cc',
3483         'browser/sync/test/integration/multiple_client_bookmarks_sync_test.cc',
3484         'browser/sync/test/integration/multiple_client_passwords_sync_test.cc',
3485         'browser/sync/test/integration/multiple_client_preferences_sync_test.cc',
3486         'browser/sync/test/integration/multiple_client_sessions_sync_test.cc',
3487         'browser/sync/test/integration/multiple_client_typed_urls_sync_test.cc',
3488         'browser/sync/test/integration/passwords_helper.cc',
3489         'browser/sync/test/integration/passwords_helper.h',
3490         'browser/sync/test/integration/preferences_helper.cc',
3491         'browser/sync/test/integration/preferences_helper.h',
3492         'browser/sync/test/integration/search_engines_helper.cc',
3493         'browser/sync/test/integration/search_engines_helper.h',
3494         'browser/sync/test/integration/sessions_helper.cc',
3495         'browser/sync/test/integration/sessions_helper.h',
3496         'browser/sync/test/integration/single_client_apps_sync_test.cc',
3497         'browser/sync/test/integration/single_client_bookmarks_sync_test.cc',
3498         'browser/sync/test/integration/single_client_extensions_sync_test.cc',
3499         'browser/sync/test/integration/single_client_passwords_sync_test.cc',
3500         'browser/sync/test/integration/single_client_preferences_sync_test.cc',
3501         'browser/sync/test/integration/single_client_search_engines_sync_test.cc',
3502         'browser/sync/test/integration/single_client_sessions_sync_test.cc',
3503         'browser/sync/test/integration/single_client_themes_sync_test.cc',
3504         'browser/sync/test/integration/single_client_typed_urls_sync_test.cc',
3505         'browser/sync/test/integration/sync_datatype_helper.cc',
3506         'browser/sync/test/integration/sync_datatype_helper.h',
3507         'browser/sync/test/integration/sync_errors_test.cc',
3508         'browser/sync/test/integration/sync_extension_helper.cc',
3509         'browser/sync/test/integration/sync_extension_helper.h',
3510         'browser/sync/test/integration/sync_test.cc',
3511         'browser/sync/test/integration/sync_test.h',
3512         'browser/sync/test/integration/themes_helper.cc',
3513         'browser/sync/test/integration/themes_helper.h',
3514         'browser/sync/test/integration/two_client_apps_sync_test.cc',
3515         'browser/sync/test/integration/two_client_autofill_sync_test.cc',
3516         'browser/sync/test/integration/two_client_bookmarks_sync_test.cc',
3517         'browser/sync/test/integration/two_client_extensions_sync_test.cc',
3518         'browser/sync/test/integration/two_client_passwords_sync_test.cc',
3519         'browser/sync/test/integration/two_client_preferences_sync_test.cc',
3520         'browser/sync/test/integration/two_client_search_engines_sync_test.cc',
3521         'browser/sync/test/integration/two_client_sessions_sync_test.cc',
3522         'browser/sync/test/integration/two_client_themes_sync_test.cc',
3523         'browser/sync/test/integration/two_client_typed_urls_sync_test.cc',
3524         'browser/sync/test/integration/typed_urls_helper.cc',
3525         'browser/sync/test/integration/typed_urls_helper.h',
3526         '../content/app/startup_helper_win.cc',
3527         '../content/test/test_launcher.cc',
3528         '../content/test/test_launcher.h',
3529       ],
3530       'conditions': [
3531         ['toolkit_uses_gtk == 1', {
3532            'dependencies': [
3533              '../build/linux/system.gyp:gtk',
3534            ],
3535         }],
3536         ['toolkit_uses_gtk == 1 or chromeos==1 or (OS=="linux" and use_aura==1)', {
3537           'dependencies': [
3538             '../build/linux/system.gyp:ssl',
3539           ],
3540         }],
3541         ['OS=="mac"', {
3542           # See the comment in this section of the unit_tests target for an
3543           # explanation (crbug.com/43791 - libwebcore.a is too large to mmap).
3544           'dependencies+++': [
3545             '../third_party/WebKit/Source/WebCore/WebCore.gyp/WebCore.gyp:webcore',
3546           ],
3547           # The sync_integration_tests do not run on mac without this flag.
3548           # Search for comments about "xcode_settings" elsewhere in this file.
3549           'xcode_settings': {'OTHER_LDFLAGS': ['-Wl,-ObjC']},
3550         }],
3551         ['OS=="win"', {
3552           'sources': [
3553             '<(SHARED_INTERMEDIATE_DIR)/chrome/browser_resources.rc',
3554             '<(SHARED_INTERMEDIATE_DIR)/chrome/common_resources.rc',
3555             '<(SHARED_INTERMEDIATE_DIR)/chrome/theme_resources.rc',
3556             '<(SHARED_INTERMEDIATE_DIR)/chrome/theme_resources_standard.rc',
3557             '<(SHARED_INTERMEDIATE_DIR)/chrome_version/other_version.rc',
3558             '<(SHARED_INTERMEDIATE_DIR)/ui/ui_resources/ui_resources.rc',
3559             '<(SHARED_INTERMEDIATE_DIR)/ui/ui_resources_standard/ui_resources_standard.rc',
3560           ],
3561           'include_dirs': [
3562             '<(DEPTH)/third_party/wtl/include',
3563           ],
3564           'dependencies': [
3565             'chrome_version_resources',
3566             'installer_util_strings',
3567             '../sandbox/sandbox.gyp:sandbox',
3568           ],
3569           'conditions': [
3570             ['win_use_allocator_shim==1', {
3571               'dependencies': [
3572                 '<(allocator_target)',
3573               ],
3574             }],
3575           ],
3576           'configurations': {
3577             'Debug': {
3578               'msvs_settings': {
3579                 'VCLinkerTool': {
3580                   'LinkIncremental': '<(msvs_debug_link_nonincremental)',
3581                 },
3582               },
3583             },
3584           },
3585         }, { # else: OS != "win"
3586           'sources!': [
3587             'app/chrome_dll.rc',
3588             'app/chrome_version.rc.version',
3589             'test/data/resource.rc',
3590           ],
3591         }],
3592         ['toolkit_views==1', {
3593           'dependencies': [
3594             '../ui/views/views.gyp:views',
3595           ],
3596         }],
3597       ],
3598     },
3599     {
3600       'target_name': 'sync_performance_tests',
3601       'type': 'executable',
3602       'dependencies': [
3603         'browser/sync/protocol/sync_proto.gyp:sync_proto',
3604         'chrome',
3605         'test_support_common',
3606         '../skia/skia.gyp:skia',
3607         '../testing/gmock.gyp:gmock',
3608         '../testing/gtest.gyp:gtest',
3609       ],
3610       'include_dirs': [
3611         '..',
3612         '<(INTERMEDIATE_DIR)',
3613         '<(protoc_out_dir)',
3614       ],
3615       'defines': [
3616         'HAS_OUT_OF_PROC_TEST_RUNNER',
3617         'BROWSER_TESTS_HEADER_OVERRIDE="chrome/test/base/in_process_browser_test.h"',
3618       ],
3619       'sources': [
3620         'app/chrome_command_ids.h',
3621         'app/chrome_dll.rc',
3622         'app/chrome_dll_resource.h',
3623         'app/chrome_version.rc.version',
3624         'browser/password_manager/password_form_data.cc',
3625         'browser/sessions/session_backend.cc',
3626         'browser/sync/glue/session_model_associator.cc',
3627         'browser/sync/test/integration/autofill_helper.cc',
3628         'browser/sync/test/integration/autofill_helper.h',
3629         'browser/sync/test/integration/bookmarks_helper.cc',
3630         'browser/sync/test/integration/bookmarks_helper.h',
3631         'browser/sync/test/integration/extensions_helper.cc',
3632         'browser/sync/test/integration/extensions_helper.h',
3633         'browser/sync/test/integration/passwords_helper.cc',
3634         'browser/sync/test/integration/passwords_helper.h',
3635         'browser/sync/test/integration/performance/autofill_sync_perf_test.cc',
3636         'browser/sync/test/integration/performance/bookmarks_sync_perf_test.cc',
3637         'browser/sync/test/integration/performance/extensions_sync_perf_test.cc',
3638         'browser/sync/test/integration/performance/sync_timing_helper.cc',
3639         'browser/sync/test/integration/performance/sync_timing_helper.h',
3640         'browser/sync/test/integration/performance/passwords_sync_perf_test.cc',
3641         'browser/sync/test/integration/performance/sessions_sync_perf_test.cc',
3642         'browser/sync/test/integration/performance/typed_urls_sync_perf_test.cc',
3643         'browser/sync/test/integration/sessions_helper.cc',
3644         'browser/sync/test/integration/sessions_helper.h',
3645         'browser/sync/test/integration/sync_datatype_helper.cc',
3646         'browser/sync/test/integration/sync_datatype_helper.h',
3647         'browser/sync/test/integration/sync_extension_helper.cc',
3648         'browser/sync/test/integration/sync_extension_helper.h',
3649         'browser/sync/test/integration/sync_test.cc',
3650         'browser/sync/test/integration/sync_test.h',
3651         'browser/sync/test/integration/typed_urls_helper.cc',
3652         'browser/sync/test/integration/typed_urls_helper.h',
3653         'test/base/chrome_test_launcher.cc',
3654         'test/data/resource.rc',
3655         '../content/app/startup_helper_win.cc',
3656         '../content/test/test_launcher.cc',
3657         '../content/test/test_launcher.h',
3658       ],
3659       'conditions': [
3660         ['toolkit_uses_gtk == 1', {
3661            'dependencies': [
3662              '../build/linux/system.gyp:gtk',
3663            ],
3664         }],
3665         ['toolkit_uses_gtk == 1 or chromeos==1 or (OS=="linux" and use_aura==1)', {
3666           'dependencies': [
3667             '../build/linux/system.gyp:ssl',
3668           ],
3669         }],
3670         ['OS=="mac"', {
3671           # See the comment in this section of the unit_tests target for an
3672           # explanation (crbug.com/43791 - libwebcore.a is too large to mmap).
3673           'dependencies+++': [
3674             '../third_party/WebKit/Source/WebCore/WebCore.gyp/WebCore.gyp:webcore',
3675           ],
3676           # The sync_integration_tests do not run on mac without this flag.
3677           # Search for comments about "xcode_settings" elsewhere in this file.
3678           'xcode_settings': {'OTHER_LDFLAGS': ['-Wl,-ObjC']},
3679         }],
3680         ['OS=="win"', {
3681           'sources': [
3682             '<(SHARED_INTERMEDIATE_DIR)/chrome/browser_resources.rc',
3683             '<(SHARED_INTERMEDIATE_DIR)/chrome/common_resources.rc',
3684             '<(SHARED_INTERMEDIATE_DIR)/chrome/theme_resources.rc',
3685             '<(SHARED_INTERMEDIATE_DIR)/chrome/theme_resources_standard.rc',
3686             '<(SHARED_INTERMEDIATE_DIR)/chrome_version/other_version.rc',
3687             '<(SHARED_INTERMEDIATE_DIR)/ui/ui_resources/ui_resources.rc',
3688             '<(SHARED_INTERMEDIATE_DIR)/ui/ui_resources_standard/ui_resources_standard.rc',
3689           ],
3690           'include_dirs': [
3691             '<(DEPTH)/third_party/wtl/include',
3692           ],
3693           'dependencies': [
3694             'chrome_version_resources',
3695             'installer_util_strings',
3696             '../sandbox/sandbox.gyp:sandbox',
3697           ],
3698           'conditions': [
3699             ['win_use_allocator_shim==1', {
3700               'dependencies': [
3701                 '<(allocator_target)',
3702               ],
3703             }],
3704           ],
3705           'configurations': {
3706             'Debug': {
3707               'msvs_settings': {
3708                 'VCLinkerTool': {
3709                   'LinkIncremental': '<(msvs_debug_link_nonincremental)',
3710                 },
3711               },
3712             },
3713           },
3714         }, { # else: OS != "win"
3715           'sources!': [
3716             'app/chrome_dll.rc',
3717             'app/chrome_version.rc.version',
3718             'test/data/resource.rc',
3719           ],
3720         }],
3721         ['toolkit_views==1', {
3722           'dependencies': [
3723             '../ui/views/views.gyp:views',
3724           ],
3725         }],
3726       ],
3727     },
3728     {
3729       # Executable that contains all the tests to be run on the GPU bots.
3730       'target_name': 'gpu_tests',
3731       'type': 'executable',
3732       'variables': {
3733         'test_list_out_dir': '<(SHARED_INTERMEDIATE_DIR)/chrome/test/gpu',
3734       },
3735       'dependencies': [
3736         'browser',
3737         'chrome',
3738         'chrome_resources.gyp:chrome_resources',
3739         'chrome_resources.gyp:chrome_strings',
3740         'renderer',
3741         'test_support_common',
3742         'test_support_ui',
3743         '../base/base.gyp:base',
3744         '../base/base.gyp:test_support_base',
3745         '../net/net.gyp:net_test_support',
3746         '../skia/skia.gyp:skia',
3747         '../testing/gtest.gyp:gtest',
3748         '../third_party/icu/icu.gyp:icui18n',
3749         '../third_party/icu/icu.gyp:icuuc',
3750         # Runtime dependencies
3751         '../third_party/mesa/mesa.gyp:osmesa',
3752       ],
3753       'include_dirs': [
3754         '..',
3755         '<(test_list_out_dir)',
3756       ],
3757       'defines': [
3758         'HAS_OUT_OF_PROC_TEST_RUNNER',
3759         'BROWSER_TESTS_HEADER_OVERRIDE="chrome/test/base/in_process_browser_test.h"',
3760       ],
3761       'sources': [
3762         'browser/gpu_pixel_browsertest.cc',
3763         'browser/gpu_crash_browsertest.cc',
3764         'test/base/chrome_test_launcher.cc',
3765         'test/gpu/webgl_conformance_tests.cc',
3766         'test/gpu/webgl_conformance_test_list_autogen.h',
3767         '../content/app/startup_helper_win.cc',
3768         '../content/test/test_launcher.cc',
3769         '../content/test/test_launcher.h',
3770       ],
3771       # hard_dependency is necessary for this target because it has actions
3772       # that generate a header file included by dependent targets. The header
3773       # file must be generated before the dependents are compiled. The usual
3774       # semantics are to allow the two targets to build concurrently.
3775       'hard_dependency': 1,
3776       'conditions': [
3777         ['OS=="win"', {
3778           'dependencies': [
3779             'chrome_version_resources',
3780             'installer_util_strings',
3781             '../sandbox/sandbox.gyp:sandbox',
3782           ],
3783           'include_dirs': [
3784             '<(DEPTH)/third_party/wtl/include',
3785           ],
3786           'sources': [
3787             'app/chrome_dll.rc',
3788             'app/chrome_dll_resource.h',
3789             'app/chrome_version.rc.version',
3790             '<(SHARED_INTERMEDIATE_DIR)/chrome/browser_resources.rc',
3791             '<(SHARED_INTERMEDIATE_DIR)/chrome/common_resources.rc',
3792             '<(SHARED_INTERMEDIATE_DIR)/chrome/renderer_resources.rc',
3793             '<(SHARED_INTERMEDIATE_DIR)/chrome/theme_resources.rc',
3794             '<(SHARED_INTERMEDIATE_DIR)/chrome/theme_resources_standard.rc',
3795             '<(SHARED_INTERMEDIATE_DIR)/chrome_version/other_version.rc',
3796             '<(SHARED_INTERMEDIATE_DIR)/net/net_resources.rc',
3797             '<(SHARED_INTERMEDIATE_DIR)/ui/ui_resources/ui_resources.rc',
3798             '<(SHARED_INTERMEDIATE_DIR)/ui/ui_resources_standard/ui_resources_standard.rc',
3799             '<(SHARED_INTERMEDIATE_DIR)/webkit/webkit_chromium_resources.rc',
3800             '<(SHARED_INTERMEDIATE_DIR)/webkit/webkit_resources.rc',
3801           ],
3802           'conditions': [
3803             ['win_use_allocator_shim==1', {
3804               'dependencies': [
3805                 '<(allocator_target)',
3806               ],
3807             }],
3808           ],
3809           'configurations': {
3810             'Debug': {
3811               'msvs_settings': {
3812                 'VCLinkerTool': {
3813                   'LinkIncremental': '<(msvs_large_module_debug_link_mode)',
3814                 },
3815               },
3816             },
3817           },
3818         }],
3819         ['OS=="mac"', {
3820           # See the comment in this section of the unit_tests target for an
3821           # explanation (crbug.com/43791 - libwebcore.a is too large to mmap).
3822           'dependencies+++': [
3823             '../third_party/WebKit/Source/WebCore/WebCore.gyp/WebCore.gyp:webcore',
3824           ],
3825           # See comments about "xcode_settings" elsewhere in this file.
3826           'xcode_settings': {'OTHER_LDFLAGS': ['-Wl,-ObjC']},
3827         }],
3828         ['toolkit_uses_gtk == 1', {
3829            'dependencies': [
3830              '../build/linux/system.gyp:gtk',
3831            ],
3832         }],
3833         ['toolkit_uses_gtk == 1 or chromeos==1 or (OS=="linux" and use_aura==1)', {
3834           'dependencies': [
3835             '../build/linux/system.gyp:ssl',
3836           ],
3837         }],
3838         ['toolkit_views==1', {
3839           'dependencies': [
3840             '../ui/views/views.gyp:views',
3841           ],
3842         }],
3843       ],
3844     },
3845     {
3846       'target_name': 'plugin_tests',
3847       'type': 'executable',
3848       'dependencies': [
3849         'chrome',
3850         'chrome_resources.gyp:chrome_resources',
3851         'chrome_resources.gyp:chrome_strings',
3852         'test_support_common',
3853         'test_support_ui',
3854         '../skia/skia.gyp:skia',
3855         '../testing/gtest.gyp:gtest',
3856         '../third_party/libxslt/libxslt.gyp:libxslt',
3857         '../third_party/npapi/npapi.gyp:npapi',
3858       ],
3859       'include_dirs': [
3860         '..',
3861       ],
3862       'sources': [
3863         'browser/plugin_test.cc',
3864       ],
3865       'conditions': [
3866         ['OS=="win"', {
3867           'dependencies': [
3868             'security_tests',  # run time dependency
3869           ],
3870           'conditions': [
3871             ['win_use_allocator_shim==1', {
3872               'dependencies': [
3873                 '<(allocator_target)',
3874               ],
3875             }],
3876           ],
3877           'include_dirs': [
3878             '<(DEPTH)/third_party/wtl/include',
3879           ],
3880         },],
3881       ],
3882     },
3883   ],
3884   'conditions': [
3885     ['OS=="mac"', {
3886       'targets': [
3887         {
3888           # This is the mac equivalent of the security_tests target below. It
3889           # generates a framework bundle which bundles tests to be run in a
3890           # renderer process. The test code is built as a framework so it can be
3891           # run in the context of a renderer without shipping the code to end
3892           # users.
3893           'target_name': 'renderer_sandbox_tests',
3894           'type': 'shared_library',
3895           'product_name': 'Renderer Sandbox Tests',
3896           'mac_bundle': 1,
3897           'xcode_settings': {
3898             'INFOPLIST_FILE': 'test/security_tests/sandbox_tests_mac-Info.plist',
3899           },
3900           'sources': [
3901             'test/security_tests/renderer_sandbox_tests_mac.h',
3902             'test/security_tests/renderer_sandbox_tests_mac.mm',
3903           ],
3904           'include_dirs': [
3905             '..',
3906           ],
3907           'link_settings': {
3908             'libraries': [
3909               '$(SDKROOT)/System/Library/Frameworks/Cocoa.framework',
3910             ],
3911           },
3912         },
3913       ],
3914     }],
3915     ['OS!="mac"', {
3916       'targets': [
3917         {
3918           'target_name': 'perf_tests',
3919           'type': 'executable',
3920           'dependencies': [
3921             'browser',
3922             'chrome_resources.gyp:chrome_resources',
3923             'chrome_resources.gyp:chrome_strings',
3924             'common',
3925             'renderer',
3926             '../content/content.gyp:content_gpu',
3927             '../content/content.gyp:test_support_content',
3928             '../base/base.gyp:base',
3929             '../base/base.gyp:test_support_base',
3930             '../base/base.gyp:test_support_perf',
3931             '../skia/skia.gyp:skia',
3932             '../testing/gtest.gyp:gtest',
3933             '../webkit/support/webkit_support.gyp:glue',
3934           ],
3935           'sources': [
3936             'browser/net/sqlite_origin_bound_cert_store_unittest.cc',
3937             'browser/safe_browsing/filter_false_positive_perftest.cc',
3938             'browser/visitedlink/visitedlink_perftest.cc',
3939             'common/json_value_serializer_perftest.cc',
3940             'test/perf/perftests.cc',
3941             'test/perf/url_parse_perftest.cc',
3942           ],
3943           'conditions': [
3944             ['toolkit_uses_gtk == 1', {
3945               'dependencies': [
3946                 '../build/linux/system.gyp:gtk',
3947                 '../tools/xdisplaycheck/xdisplaycheck.gyp:xdisplaycheck',
3948               ],
3949               'sources!': [
3950                 # TODO(port):
3951                 'browser/safe_browsing/filter_false_positive_perftest.cc',
3952               ],
3953             }],
3954             ['OS=="win"', {
3955               'configurations': {
3956                 'Debug_Base': {
3957                   'msvs_settings': {
3958                     'VCLinkerTool': {
3959                       'LinkIncremental': '<(msvs_large_module_debug_link_mode)',
3960                     },
3961                   },
3962                 },
3963               },
3964               'conditions': [
3965                 ['win_use_allocator_shim==1', {
3966                   'dependencies': [
3967                     '<(allocator_target)',
3968                   ],
3969                 }],
3970               ],
3971             }],
3972             ['toolkit_views==1', {
3973               'dependencies': [
3974                 '../ui/views/views.gyp:views',
3975               ],
3976             }],
3977           ],
3978         },
3979       ],
3980     },],  # OS!="mac"
3981     ['OS=="win"', {
3982       'targets': [
3983         {
3984           'target_name': 'generate_profile',
3985           'type': 'executable',
3986           'dependencies': [
3987             'test_support_common',
3988             'browser',
3989             'renderer',
3990             'syncapi_core',
3991             '../base/base.gyp:base',
3992             '../net/net.gyp:net_test_support',
3993             '../skia/skia.gyp:skia',
3994           ],
3995           'include_dirs': [
3996             '..',
3997           ],
3998           'sources': [
3999             'tools/profiles/generate_profile.cc',
4000             'tools/profiles/thumbnail-inl.h',
4001           ],
4002           'conditions': [
4003             ['OS=="win"', {
4004               'conditions': [
4005                 ['win_use_allocator_shim==1', {
4006                   'dependencies': [
4007                     '<(allocator_target)',
4008                   ],
4009                 }],
4010               ],
4011               'configurations': {
4012                 'Debug_Base': {
4013                   'msvs_settings': {
4014                     'VCLinkerTool': {
4015                       'LinkIncremental': '<(msvs_large_module_debug_link_mode)',
4016                     },
4017                   },
4018                 },
4019               },
4020             }],
4021           ],
4022         },
4023         {
4024           'target_name': 'security_tests',
4025           'type': 'shared_library',
4026           'include_dirs': [
4027             '..',
4028           ],
4029           'sources': [
4030             'test/security_tests/ipc_security_tests.cc',
4031             'test/security_tests/ipc_security_tests.h',
4032             'test/security_tests/security_tests.cc',
4033             '../content/common/injection_test_dll.h',
4034             '../sandbox/tests/validation_tests/commands.cc',
4035             '../sandbox/tests/validation_tests/commands.h',
4036           ],
4037         },
4038       ]},  # 'targets'
4039     ],  # OS=="win"
4040     # If you change this condition, make sure you also change it in all.gyp
4041     # for the chromium_builder_qa target.
4042     ['OS == "mac" or OS == "win" or (os_posix == 1 and target_arch == python_arch)', {
4043       'targets': [
4044         {
4045           # Documentation: http://dev.chromium.org/developers/testing/pyauto
4046           'target_name': 'pyautolib',
4047           'type': 'loadable_module',
4048           'product_prefix': '_',
4049           'dependencies': [
4050             'chrome',
4051             'chrome_resources.gyp:chrome_resources',
4052             'chrome_resources.gyp:chrome_strings',
4053             'chrome_resources.gyp:theme_resources',
4054             'debugger',
4055             'syncapi_core',
4056             'test_support_common',
4057             '../skia/skia.gyp:skia',
4058             '../testing/gtest.gyp:gtest',
4059           ],
4060           'export_dependent_settings': [
4061             'test_support_common',
4062           ],
4063           'include_dirs': [
4064             '..',
4065           ],
4066           'cflags': [
4067              '-Wno-uninitialized',
4068              '-Wno-self-assign',  # to keep clang happy for generated code.
4069           ],
4070           'libraries': [
4071             '<@(pyautolib_libraries)',
4072           ],
4073           'sources': [
4074             'test/automation/proxy_launcher.cc',
4075             'test/automation/proxy_launcher.h',
4076             'test/pyautolib/pyautolib.cc',
4077             'test/pyautolib/pyautolib.h',
4078             'test/ui/ui_test.cc',
4079             'test/ui/ui_test.h',
4080             'test/ui/ui_test_suite.cc',
4081             'test/ui/ui_test_suite.h',
4082             '<(INTERMEDIATE_DIR)/pyautolib_wrap.cc',
4083             '<@(pyautolib_sources)',
4084           ],
4085           'xcode_settings': {
4086             # When generated, pyautolib_wrap.cc includes some swig support
4087             # files which, as of swig 1.3.31 that comes with 10.5 and 10.6,
4088             # may not compile cleanly at -Wall.
4089             'GCC_TREAT_WARNINGS_AS_ERRORS': 'NO',  # -Wno-error
4091             # Link with python2.6. Using -L/usr/lib and -lpython2.6 does not
4092             # work with the -isysroot argument passed in. Even if it did,
4093             # the linker shouldn't use any other lib not in the 10.5 sdk.
4094             'OTHER_LDFLAGS': [
4095               '/usr/lib/libpython2.6.dylib'
4096             ],
4097           },
4098           'msvs_disabled_warnings': [4211],
4099           'conditions': [
4100             ['os_posix == 1 and OS!="mac"', {
4101               'include_dirs': [
4102                 '..',
4103                 '<(sysroot)/usr/include/python<(python_ver)',
4104               ],
4105               'dependencies': [
4106                 '../build/linux/system.gyp:gtk',
4107               ],
4108               'link_settings': {
4109                 'libraries': [
4110                   '-lpython<(python_ver)',
4111                 ],
4112               },
4113             }],
4114             ['OS=="mac"', {
4115               # See the comment in this section of the unit_tests target for an
4116               # explanation (crbug.com/43791 - libwebcore.a is too large to
4117               # mmap).
4118               'dependencies+++': [
4119                 '../third_party/WebKit/Source/WebCore/WebCore.gyp/WebCore.gyp:webcore',
4120               ],
4121               'include_dirs': [
4122                 '..',
4123                 '/usr/include/python2.6',
4124               ],
4125             }],
4126             ['OS=="win"', {
4127               'product_extension': 'pyd',
4128               'include_dirs': [
4129                 '..',
4130                 '../third_party/python_26/include',
4131               ],
4132               'link_settings': {
4133                 'libraries': [
4134                   '../third_party/python_26/libs/python26.lib',
4135                 ],
4136               }
4137             }],
4138           ],
4139           'actions': [
4140             {
4141               'action_name': 'pyautolib_swig',
4142               'inputs': [
4143                 'test/pyautolib/argc_argv.i',
4144                 'test/pyautolib/pyautolib.i',
4145                 '<@(pyautolib_sources)',
4146               ],
4147               'outputs': [
4148                 '<(INTERMEDIATE_DIR)/pyautolib_wrap.cc',
4149                 '<(PRODUCT_DIR)/pyautolib.py',
4150               ],
4151               'action': [ 'python',
4152                           '../tools/swig/swig.py',
4153                           '-I..',
4154                           '-python',
4155                           '-c++',
4156                           '-threads',
4157                           '-outdir',
4158                           '<(PRODUCT_DIR)',
4159                           '-o',
4160                           '<(INTERMEDIATE_DIR)/pyautolib_wrap.cc',
4161                           'test/pyautolib/pyautolib.i',
4162               ],
4163               'message': 'Generating swig wrappers for pyautolib.',
4164             },
4165           ],  # actions
4166         },  # target 'pyautolib'
4167       ]  # targets
4168     }],
4169     # To enable the coverage targets, do
4170     #    GYP_DEFINES='coverage=1' gclient sync
4171     # To match the coverage buildbot more closely, do this:
4172     #    GYP_DEFINES='coverage=1 enable_svg=0 fastbuild=1' gclient sync
4173     # (and, on MacOS, be sure to switch your SDK from "Base SDK" to "Mac OS X
4174     # 10.6")
4175     # (but on Windows, don't set the fastbuild=1 because it removes the PDB
4176     # generation which is necessary for code coverage.)
4177     ['coverage!=0',
4178       { 'targets': [
4179         {
4180           ### Coverage BUILD AND RUN.
4181           ### Not named coverage_build_and_run for historical reasons.
4182           'target_name': 'coverage',
4183           'dependencies': [ 'coverage_build', 'coverage_run' ],
4184           # do NOT place this in the 'all' list; most won't want it.
4185           # In gyp, booleans are 0/1 not True/False.
4186           'suppress_wildcard': 1,
4187           'type': 'none',
4188           'actions': [
4189             {
4190               'message': 'Coverage is now complete.',
4191               # MSVS must have an input file and an output file.
4192               'inputs': [ '<(PRODUCT_DIR)/coverage.info' ],
4193               'outputs': [ '<(PRODUCT_DIR)/coverage-build-and-run.stamp' ],
4194               'action_name': 'coverage',
4195               # Wish gyp had some basic builtin commands (e.g. 'touch').
4196               'action': [ 'python', '-c',
4197                           'import os; ' \
4198                           'open(' \
4199                           '\'<(PRODUCT_DIR)\' + os.path.sep + ' \
4200                           '\'coverage-build-and-run.stamp\'' \
4201                           ', \'w\').close()' ],
4202               # Use outputs of this action as inputs for the main target build.
4203               # Seems as a misnomer but makes this happy on Linux (scons).
4204               'process_outputs_as_sources': 1,
4205             },
4206           ],  # 'actions'
4207         },
4208         ### Coverage BUILD.  Compile only; does not run the bundles.
4209         ### Intended as the build phase for our coverage bots.
4210         ###
4211         ### Builds unit test bundles needed for coverage.
4212         ### Outputs this list of bundles into coverage_bundles.py.
4213         ###
4214         ### If you want to both build and run coverage from your IDE,
4215         ### use the 'coverage' target.
4216         {
4217           'target_name': 'coverage_build',
4218           # do NOT place this in the 'all' list; most won't want it.
4219           # In gyp, booleans are 0/1 not True/False.
4220           'suppress_wildcard': 1,
4221           'type': 'none',
4222           'dependencies': [
4223             'automated_ui_tests',
4224             '../base/base.gyp:base_unittests',
4225             # browser_tests's use of subprocesses chokes gcov on 10.6?
4226             # Disabling for now (enabled on linux/windows below).
4227             # 'browser_tests',
4228             '../ipc/ipc.gyp:ipc_tests',
4229             '../media/media.gyp:media_unittests',
4230             '../net/net.gyp:net_unittests',
4231             '../printing/printing.gyp:printing_unittests',
4232             '../remoting/remoting.gyp:remoting_unittests',
4233             '../sql/sql.gyp:sql_unittests',
4234             '../content/content.gyp:content_unittests',
4235             # ui_tests seem unhappy on both Mac and Win when run under
4236             # coverage (all tests fail, often with a
4237             # "server_->WaitForInitialLoads()").  TODO(jrg):
4238             # investigate why.
4239             # 'ui_tests',
4240             'unit_tests',
4241             'sync_unit_tests',
4242           ],  # 'dependencies'
4243           'conditions': [
4244             ['OS=="win"', {
4245               'dependencies': [
4246                 # Courgette has not been ported from Windows.
4247                 # Note build/win/chrome_win.croc uniquely has the
4248                 # courgette source directory in an include path.
4249                 '../courgette/courgette.gyp:courgette_unittests',
4250                 'browser_tests',
4251                 ]}],
4252             ['OS=="linux"', {
4253               'dependencies': [
4254                 # Reason for disabling UI tests on non-Linux above.
4255                 'ui_tests',
4256                 # Win bot needs to be turned into an interactive bot.
4257                 'interactive_ui_tests',
4258                 'browser_tests',
4259               ]}],
4260             ['OS=="mac"', {
4261               'dependencies': [
4262               # Placeholder; empty for now.
4263               ]}],
4264           ],  # 'conditions'
4265           'actions': [
4266             {
4267               # 'message' for Linux/scons in particular.  Scons
4268               # requires the 'coverage' target be run from within
4269               # src/chrome.
4270               'message': 'Compiling coverage bundles.',
4271               # MSVS must have an input file and an output file.
4272               #
4273               # TODO(jrg):
4274               # Technically I want inputs to be the list of
4275               # executables created in <@(_dependencies) but use of
4276               # that variable lists the dep by dep name, not their
4277               # output executable name.
4278               # Is there a better way to force this action to run, always?
4279               #
4280               # If a test bundle is added to this coverage_build target it
4281               # necessarily means this file (chrome_tests.gypi) is changed,
4282               # so the action is run (coverage_bundles.py is generated).
4283               # Exceptions to that rule are theoretically possible
4284               # (e.g. re-gyp with a GYP_DEFINES set).
4285               # Else it's the same list of bundles as last time.  They are
4286               # built (since on the deps list) but the action may not run.
4287               # For now, things work, but it's less than ideal.
4288               'inputs': [ 'chrome_tests.gypi' ],
4289               'outputs': [ '<(PRODUCT_DIR)/coverage_bundles.py' ],
4290               'action_name': 'coverage_build',
4291               'action': [ 'python', '-c',
4292                           'import os; '
4293                           'f = open(' \
4294                           '\'<(PRODUCT_DIR)\' + os.path.sep + ' \
4295                           '\'coverage_bundles.py\'' \
4296                           ', \'w\'); ' \
4297                           'deplist = \'' \
4298                           '<@(_dependencies)' \
4299                           '\'.split(\' \'); ' \
4300                           'f.write(str(deplist)); ' \
4301                           'f.close()'],
4302               # Use outputs of this action as inputs for the main target build.
4303               # Seems as a misnomer but makes this happy on Linux (scons).
4304               'process_outputs_as_sources': 1,
4305             },
4306           ],  # 'actions'
4307         },
4308         ### Coverage RUN.  Does not compile the bundles.  Mirrors the
4309         ### run_coverage_bundles buildbot phase.  If you update this
4310         ### command update the mirror in
4311         ### $BUILDBOT/scripts/master/factory/chromium_commands.py.
4312         ### If you want both build and run, use the 'coverage' target.
4313         {
4314           'target_name': 'coverage_run',
4315           # do NOT place this in the 'all' list; most won't want it.
4316           # In gyp, booleans are 0/1 not True/False.
4317           'suppress_wildcard': 1,
4318           'type': 'none',
4319           'actions': [
4320             {
4321               # 'message' for Linux/scons in particular.  Scons
4322               # requires the 'coverage' target be run from within
4323               # src/chrome.
4324               'message': 'Running the coverage script.  NOT building anything.',
4325               # MSVS must have an input file and an output file.
4326               'inputs': [ '<(PRODUCT_DIR)/coverage_bundles.py' ],
4327               'outputs': [ '<(PRODUCT_DIR)/coverage.info' ],
4328               'action_name': 'coverage_run',
4329               'action': [ 'python',
4330                           '../tools/code_coverage/coverage_posix.py',
4331                           '--directory',
4332                           '<(PRODUCT_DIR)',
4333                           '--src_root',
4334                           '..',
4335                           '--bundles',
4336                           '<(PRODUCT_DIR)/coverage_bundles.py'],
4337               # Use outputs of this action as inputs for the main target build.
4338               # Seems as a misnomer but makes this happy on Linux (scons).
4339               'process_outputs_as_sources': 1,
4340             },
4341           ],  # 'actions'
4342         },
4343       ]
4344     }],  # 'coverage!=0'
4345   ],  # 'conditions'