Change next_proto member type.
[chromium-blink-merge.git] / content / content_tests.gypi
blob63370098d630086b2514d00a22d623241b6f2ee8
1 # Copyright (c) 2013 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file.
6   'variables': {
7     'layouttest_support_content_sources': [
8       'public/test/layouttest_support.h',
9       'public/test/nested_message_pump_android.cc',
10       'public/test/nested_message_pump_android.h',
11       'test/layouttest_support.cc',
12       'test/test_media_stream_renderer_factory.cc',
13       'test/test_media_stream_renderer_factory.h',
14       'test/test_video_frame_provider.cc',
15       'test/test_video_frame_provider.h',
16     ],
17     'test_support_content_sources': [
18       'public/test/async_file_test_helper.cc',
19       'public/test/async_file_test_helper.h',
20       'public/test/browser_test_base.cc',
21       'public/test/browser_test_base.h',
22       'public/test/browser_test.h',
23       'public/test/browser_test_utils.cc',
24       'public/test/browser_test_utils.h',
25       'public/test/content_test_suite_base.cc',
26       'public/test/content_test_suite_base.h',
27       'public/test/download_test_observer.cc',
28       'public/test/download_test_observer.h',
29       'public/test/fake_speech_recognition_manager.cc',
30       'public/test/fake_speech_recognition_manager.h',
31       'public/test/frame_load_waiter.cc',
32       'public/test/frame_load_waiter.h',
33       'public/test/javascript_test_observer.cc',
34       'public/test/javascript_test_observer.h',
35       'public/test/mock_blob_url_request_context.cc',
36       'public/test/mock_blob_url_request_context.h',
37       'public/test/mock_download_item.cc',
38       'public/test/mock_download_item.h',
39       'public/test/mock_download_manager.cc',
40       'public/test/mock_download_manager.h',
41       'public/test/mock_notification_observer.cc',
42       'public/test/mock_notification_observer.h',
43       'public/test/mock_render_process_host.cc',
44       'public/test/mock_render_process_host.h',
45       'public/test/mock_render_thread.cc',
46       'public/test/mock_render_thread.h',
47       'public/test/mock_resource_context.cc',
48       'public/test/mock_resource_context.h',
49       'public/test/mock_special_storage_policy.cc',
50       'public/test/mock_special_storage_policy.h',
51       'public/test/mock_storage_client.cc',
52       'public/test/mock_storage_client.h',
53       'public/test/render_view_test.cc',
54       'public/test/render_view_test.h',
55       'public/test/render_widget_test.cc',
56       'public/test/render_widget_test.h',
57       'public/test/sandbox_file_system_test_helper.cc',
58       'public/test/sandbox_file_system_test_helper.h',
59       'public/test/test_browser_context.cc',
60       'public/test/test_browser_context.h',
61       'public/test/test_browser_thread.cc',
62       'public/test/test_browser_thread.h',
63       'public/test/test_browser_thread_bundle.cc',
64       'public/test/test_browser_thread_bundle.h',
65       'public/test/test_content_client_initializer.cc',
66       'public/test/test_content_client_initializer.h',
67       'public/test/test_file_error_injector.cc',
68       'public/test/test_file_error_injector.h',
69       'public/test/test_file_system_backend.cc',
70       'public/test/test_file_system_backend.h',
71       'public/test/test_file_system_context.cc',
72       'public/test/test_file_system_context.h',
73       'public/test/test_file_system_options.cc',
74       'public/test/test_file_system_options.h',
75       'public/test/test_launcher.cc',
76       'public/test/test_launcher.h',
77       'public/test/test_navigation_observer.cc',
78       'public/test/test_navigation_observer.h',
79       'public/test/test_notification_tracker.cc',
80       'public/test/test_notification_tracker.h',
81       'public/test/test_renderer_host.cc',
82       'public/test/test_renderer_host.h',
83       'public/test/test_synchronous_compositor_android.cc',
84       'public/test/test_synchronous_compositor_android.h',
85       'public/test/test_utils.cc',
86       'public/test/test_utils.h',
87       'public/test/unittest_test_suite.cc',
88       'public/test/unittest_test_suite.h',
89       'public/test/web_contents_tester.cc',
90       'public/test/web_contents_tester.h',
91       # TODO(phajdan.jr): All of those files should live in content/test (if
92       # they're only used by content) or content/public/test (if they're used
93       # by other embedders).
94       'browser/download/mock_download_file.cc',
95       'browser/download/mock_download_file.h',
96       'browser/geolocation/fake_access_token_store.cc',
97       'browser/geolocation/fake_access_token_store.h',
98       'browser/geolocation/mock_location_arbitrator.cc',
99       'browser/geolocation/mock_location_arbitrator.h',
100       'browser/geolocation/mock_location_provider.cc',
101       'browser/geolocation/mock_location_provider.h',
102       'browser/renderer_host/media/mock_media_observer.cc',
103       'browser/renderer_host/media/mock_media_observer.h',
104       'test/appcache_test_helper.cc',
105       'test/appcache_test_helper.h',
106       'test/blink_test_environment.cc',
107       'test/blink_test_environment.h',
108       'test/browser_side_navigation_test_utils.cc',
109       'test/browser_side_navigation_test_utils.h',
110       'test/content_browser_test_utils_internal.cc',
111       'test/content_browser_test_utils_internal.h',
112       'test/content_test_suite.cc',
113       'test/content_test_suite.h',
114       'test/fake_plugin_service.cc',
115       'test/fake_plugin_service.h',
116       'test/mock_google_streaming_server.cc',
117       'test/mock_google_streaming_server.h',
118       'test/mock_keyboard.cc',
119       'test/mock_keyboard.h',
120       'test/mock_keyboard_driver_win.cc',
121       'test/mock_keyboard_driver_win.h',
122       'test/mock_render_process.cc',
123       'test/mock_render_process.h',
124       'test/mock_webblob_registry_impl.cc',
125       'test/mock_webblob_registry_impl.h',
126       'test/mock_webclipboard_impl.cc',
127       'test/mock_webclipboard_impl.h',
128       'test/mock_webframeclient.h',
129       'test/mock_weburlloader.cc',
130       'test/mock_weburlloader.h',
131       'test/net/url_request_abort_on_end_job.cc',
132       'test/net/url_request_abort_on_end_job.h',
133       'test/net/url_request_slow_download_job.cc',
134       'test/net/url_request_slow_download_job.h',
135       'test/ppapi_unittest.cc',
136       'test/ppapi_unittest.h',
137       'test/test_blink_web_unit_test_support.cc',
138       'test/test_blink_web_unit_test_support.h',
139       'test/test_content_browser_client.cc',
140       'test/test_content_browser_client.h',
141       'test/test_content_client.cc',
142       'test/test_content_client.h',
143       'test/test_frame_navigation_observer.cc',
144       'test/test_frame_navigation_observer.h',
145       'test/test_navigation_url_loader.cc',
146       'test/test_navigation_url_loader.h',
147       'test/test_navigation_url_loader_factory.cc',
148       'test/test_navigation_url_loader_factory.h',
149       'test/test_render_frame_host.cc',
150       'test/test_render_frame_host.h',
151       'test/test_render_frame_host_factory.cc',
152       'test/test_render_frame_host_factory.h',
153       'test/test_render_view_host.cc',
154       'test/test_render_view_host.h',
155       'test/test_render_view_host_factory.cc',
156       'test/test_render_view_host_factory.h',
157       'test/test_web_contents.cc',
158       'test/test_web_contents.h',
159       'test/web_gesture_curve_mock.cc',
160       'test/web_gesture_curve_mock.h',
161       'test/web_layer_tree_view_impl_for_testing.cc',
162       'test/web_layer_tree_view_impl_for_testing.h',
163       'test/weburl_loader_mock.cc',
164       'test/weburl_loader_mock.h',
165       'test/weburl_loader_mock_factory.cc',
166       'test/weburl_loader_mock_factory.h',
167     ]
168   },
169   'targets': [
170     {
171       # GN version: //content/test:layouttest_support
172       'target_name': 'layouttest_support_content',
173       'type': 'static_library',
174       'conditions': [
175         ['OS=="android"', {
176           'dependencies': [
177             'test_support_content_jni_headers',
178           ],
179         }],
180         ['OS!="ios"', {
181           # layouttest_support_content is not supported nor required on iOS.
182           'dependencies': [
183             'content.gyp:content_renderer',
184             'test_support_content',
185             '../skia/skia.gyp:skia',
186             '../ui/accessibility/accessibility.gyp:ax_gen',
187             '../v8/tools/gyp/v8.gyp:v8',
188           ],
189           'include_dirs': [
190             '..',
191             '<(SHARED_INTERMEDIATE_DIR)',
192           ],
193           'sources': [ '<@(layouttest_support_content_sources)' ]
194         }],
195       ],
196     },
197     {
198       # GN version: //content/test:test_support
199       'target_name': 'test_support_content',
200       'type': 'static_library',
201       'dependencies': [
202         '../net/net.gyp:net_test_support',
203         '../skia/skia.gyp:skia',
204         '../storage/storage_common.gyp:storage_common',
205         '../testing/gmock.gyp:gmock',
206         '../testing/gtest.gyp:gtest',
207         '../ui/accessibility/accessibility.gyp:ax_gen',
208         '../ui/base/ui_base.gyp:ui_base',
209         '../ui/base/ui_base.gyp:ui_base_test_support',
210         '../ui/events/events.gyp:dom4_keycode_converter',
211         '../ui/events/events.gyp:events_base',
212         '../ui/events/events.gyp:events_test_support',
213         '../ui/events/events.gyp:gesture_detection',
214         '../ui/gfx/gfx.gyp:gfx_test_support',
215         '../ui/resources/ui_resources.gyp:ui_resources',
216         '../url/url.gyp:url_lib',
217         'browser/speech/proto/speech_proto.gyp:speech_proto',
218         'content.gyp:content_app_both',
219         'content.gyp:content_browser',
220         'content.gyp:content_common',
221       ],
222       'export_dependent_settings': [
223         'content.gyp:content_browser',
224       ],
225       'include_dirs': [
226         '..',
227       ],
228       'sources': [ '<@(test_support_content_sources)' ],
229       'conditions': [
230         ['enable_plugins==0', {
231           'sources!': [
232             'test/ppapi_unittest.cc',
233           ],
234         }],
235         ['enable_web_speech==0', {
236           'sources!': [
237             'test/mock_google_streaming_server.cc',
238           ],
239         }],
240         ['OS == "ios"', {
241           'sources/': [
242             # iOS only needs a small portion of content; exclude all the
243             # implementation, and re-include what is used.
244             ['exclude', '\\.(cc|mm)$'],
245             ['include', '_ios\\.(cc|mm)$'],
246             ['include', '^public/test/content_test_suite_base\\.cc$'],
247             ['include', '^public/test/mock_notification_observer\\.cc$'],
248             ['include', '^public/test/mock_resource_context\\.cc$'],
249             ['include', '^public/test/test_browser_thread\\.cc$'],
250             ['include', '^public/test/test_content_client_initializer\\.cc$'],
251             ['include', '^public/test/test_notification_tracker\\.cc$'],
252             ['include', '^public/test/test_utils\\.cc$'],
253             ['include', '^public/test/unittest_test_suite\\.cc$'],
254             ['include', '^test/content_test_suite\\.cc$'],
255             ['include', '^test/test_content_browser_client\\.cc$'],
256             ['include', '^test/test_content_client\\.cc$'],
257           ],
258         }, {  # OS != "ios"
259           'conditions': [
260             ['OS=="mac"', {
261               'copies': [{
262                 'destination': '<(SHARED_INTERMEDIATE_DIR)/webkit',
263                 'files': [
264                   'shell/resources/missingImage.png',
265                   'shell/resources/textAreaResizeCorner.png',
266                 ],
267               }],
268             }],
269           ],
270           'dependencies': [
271             'content.gyp:content_child',
272             'content.gyp:content_common',
273             'content.gyp:content_gpu',
274             'content.gyp:content_plugin',
275             'content.gyp:content_ppapi_plugin',
276             'content.gyp:content_renderer',
277             'content.gyp:content_utility',
278             'content_shell_and_tests.gyp:content_shell_pak',
279             '../cc/blink/cc_blink.gyp:cc_blink',
280             '../cc/cc.gyp:cc',
281             '../cc/cc_tests.gyp:cc_test_support',
282             '../media/blink/media_blink.gyp:media_blink',
283             '../media/media.gyp:media',
284             '../ppapi/ppapi_internal.gyp:ppapi_host',
285             '../ppapi/ppapi_internal.gyp:ppapi_proxy',
286             '../ppapi/ppapi_internal.gyp:ppapi_shared',
287             '../ppapi/ppapi_internal.gyp:ppapi_unittest_shared',
288             '../storage/storage_browser.gyp:storage',
289             '../storage/storage_common.gyp:storage_common',
290             '../third_party/WebKit/public/blink.gyp:blink',
291             '../ui/compositor/compositor.gyp:compositor_test_support',
292             '../ui/surface/surface.gyp:surface',
293             '../v8/tools/gyp/v8.gyp:v8',
294             '../webkit/common/gpu/webkit_gpu.gyp:webkit_gpu',
295           ],
296           'export_dependent_settings': [
297             '../third_party/WebKit/public/blink.gyp:blink',
298           ],
299         }],
300         ['OS == "win"', {
301           'dependencies': [
302             '../sandbox/sandbox.gyp:sandbox',
303             'content.gyp:content_startup_helper_win',
304           ],
305         }],
306         ['enable_webrtc==1', {
307           'sources': [
308             'renderer/media/mock_media_stream_dispatcher.cc',
309             'renderer/media/mock_media_stream_dispatcher.h',
310             'renderer/media/mock_peer_connection_impl.cc',
311             'renderer/media/mock_peer_connection_impl.h',
312             'renderer/media/mock_web_rtc_peer_connection_handler_client.cc',
313             'renderer/media/mock_web_rtc_peer_connection_handler_client.h',
314             'renderer/media/webrtc/mock_peer_connection_dependency_factory.cc',
315             'renderer/media/webrtc/mock_peer_connection_dependency_factory.h',
316           ],
317           'dependencies': [
318             '../third_party/libjingle/libjingle.gyp:libjingle_webrtc',
319             '../third_party/libjingle/libjingle.gyp:libpeerconnection',
320             '../third_party/webrtc/modules/modules.gyp:video_capture_module',
321           ],
322         }],
323         ['use_glib == 1', {
324           'dependencies': [
325             '../build/linux/system.gyp:glib',
326           ],
327         }],
328         ['use_aura==1', {
329           'dependencies': [
330             '../ui/aura/aura.gyp:aura_test_support',
331             '../ui/resources/ui_resources.gyp:ui_test_pak',
332             '../ui/wm/wm.gyp:wm',
333           ],
334         }],
335         ['use_ozone==1', {
336           'dependencies': [
337             '../ui/ozone/ozone.gyp:ozone',
338             '../ui/platform_window/platform_window.gyp:platform_window',
339           ],
340         }],
341         ['OS=="win"', {
342           'dependencies': [
343             '../third_party/iaccessible2/iaccessible2.gyp:iaccessible2',
344           ],
345         }],
346         ['OS!="android" and OS!="ios"', {
347           'sources': [
348             'browser/compositor/test/no_transport_image_transport_factory.cc',
349             'browser/compositor/test/no_transport_image_transport_factory.h',
350           ],
351           'dependencies': [
352             '../ui/compositor/compositor.gyp:compositor',
353             '../third_party/libvpx/libvpx.gyp:libvpx',
354           ],
355         }],
356         ['OS=="android"', {
357           'dependencies': [
358             '../ui/android/ui_android.gyp:ui_android',
359             '../ui/shell_dialogs/shell_dialogs.gyp:shell_dialogs',
360             'content.gyp:content_v8_external_data',
361           ],
362         }],
363         ['v8_use_external_startup_data==1', {
364           'dependencies': [
365             '../gin/gin.gyp:gin',
366           ],
367         }],
368       ],
369     },
370     {
371       'target_name': 'content_unittests',
372       'type': '<(gtest_target_type)',
373       'dependencies': [
374         'browser/service_worker/service_worker_proto.gyp:proto',
375         'browser/speech/proto/speech_proto.gyp:speech_proto',
376         'content.gyp:content_browser',
377         'content.gyp:content_common',
378         'test_support_content',
379         '../base/base.gyp:test_support_base',
380         '../crypto/crypto.gyp:crypto',
381         '../device/battery/battery.gyp:device_battery',
382         '../device/battery/battery.gyp:device_battery_mojo_bindings',
383         '../mojo/edk/mojo_edk.gyp:mojo_common_test_support',
384         '../mojo/mojo_base.gyp:mojo_environment_chromium',
385         '../mojo/public/mojo_public.gyp:mojo_cpp_bindings',
386         '../net/net.gyp:net_test_support',
387         '../skia/skia.gyp:skia',
388         '../sql/sql.gyp:sql',
389         '../sql/sql.gyp:test_support_sql',
390         '../testing/gmock.gyp:gmock',
391         '../testing/gtest.gyp:gtest',
392         '../third_party/re2/re2.gyp:re2',
393         '../ui/accessibility/accessibility.gyp:accessibility',
394         '../ui/base/ui_base.gyp:ui_base',
395         '../ui/gfx/gfx.gyp:gfx',
396         '../ui/gfx/gfx.gyp:gfx_geometry',
397         '../ui/gfx/ipc/gfx_ipc.gyp:gfx_ipc',
398       ],
399       'include_dirs': [
400         '..',
401         '<(SHARED_INTERMEDIATE_DIR)',  # Needed by render_media_client_unittest.cc.
402       ],
403       'sources': [
404         'browser/accessibility/accessibility_mode_helper_unittest.cc',
405         'browser/accessibility/browser_accessibility_mac_unittest.mm',
406         'browser/accessibility/browser_accessibility_manager_unittest.cc',
407         'browser/accessibility/browser_accessibility_win_unittest.cc',
408         'browser/appcache/appcache_database_unittest.cc',
409         'browser/appcache/appcache_disk_cache_unittest.cc',
410         'browser/appcache/appcache_group_unittest.cc',
411         'browser/appcache/appcache_host_unittest.cc',
412         'browser/appcache/appcache_manifest_parser_unittest.cc',
413         'browser/appcache/appcache_quota_client_unittest.cc',
414         'browser/appcache/appcache_request_handler_unittest.cc',
415         'browser/appcache/appcache_response_unittest.cc',
416         'browser/appcache/appcache_service_unittest.cc',
417         'browser/appcache/appcache_storage_unittest.cc',
418         'browser/appcache/appcache_storage_impl_unittest.cc',
419         'browser/appcache/appcache_unittest.cc',
420         'browser/appcache/appcache_update_job_unittest.cc',
421         'browser/appcache/appcache_url_request_job_unittest.cc',
422         'browser/appcache/chrome_appcache_service_unittest.cc',
423         'browser/appcache/mock_appcache_policy.cc',
424         'browser/appcache/mock_appcache_policy.h',
425         'browser/appcache/mock_appcache_service.cc',
426         'browser/appcache/mock_appcache_service.h',
427         'browser/appcache/mock_appcache_storage.cc',
428         'browser/appcache/mock_appcache_storage.h',
429         'browser/appcache/mock_appcache_storage_unittest.cc',
430         'browser/browser_thread_unittest.cc',
431         'browser/browser_url_handler_impl_unittest.cc',
432         'browser/byte_stream_unittest.cc',
433         'browser/child_process_security_policy_unittest.cc',
434         'browser/cocoa/system_hotkey_map_unittest.mm',
435         'browser/compositor/buffer_queue_unittest.cc',
436         'browser/compositor/software_browser_compositor_output_surface_unittest.cc',
437         'browser/compositor/software_output_device_ozone_unittest.cc',
438         'browser/databases_table_unittest.cc',
439         'browser/database_quota_client_unittest.cc',
440         'browser/database_tracker_unittest.cc',
441         'browser/database_util_unittest.cc',
442         'browser/device_sensors/data_fetcher_shared_memory_base_unittest.cc',
443         'browser/device_sensors/sensor_manager_android_unittest.cc',
444         'browser/devtools/embedded_worker_devtools_manager_unittest.cc',
445         'browser/devtools/devtools_http_handler_unittest.cc',
446         'browser/devtools/devtools_manager_unittest.cc',
447         'browser/dom_storage/dom_storage_area_unittest.cc',
448         'browser/dom_storage/dom_storage_context_impl_unittest.cc',
449         'browser/dom_storage/dom_storage_database_unittest.cc',
450         'browser/dom_storage/session_storage_database_unittest.cc',
451         'browser/download/base_file_unittest.cc',
452         'browser/download/download_file_unittest.cc',
453         'browser/download/download_item_impl_unittest.cc',
454         'browser/download/download_manager_impl_unittest.cc',
455         'browser/download/file_metadata_unittest_linux.cc',
456         'browser/download/rate_estimator_unittest.cc',
457         'browser/download/save_package_unittest.cc',
458         'browser/fileapi/blob_storage_context_unittest.cc',
459         'browser/fileapi/blob_url_request_job_unittest.cc',
460         'browser/fileapi/copy_or_move_file_validator_unittest.cc',
461         'browser/fileapi/copy_or_move_operation_delegate_unittest.cc',
462         'browser/fileapi/dragged_file_util_unittest.cc',
463         'browser/fileapi/external_mount_points_unittest.cc',
464         'browser/fileapi/file_system_context_unittest.cc',
465         'browser/fileapi/file_system_dir_url_request_job_unittest.cc',
466         'browser/fileapi/file_system_file_stream_reader_unittest.cc',
467         'browser/fileapi/file_system_operation_impl_unittest.cc',
468         'browser/fileapi/file_system_operation_impl_write_unittest.cc',
469         'browser/fileapi/file_system_operation_runner_unittest.cc',
470         'browser/fileapi/file_system_quota_client_unittest.cc',
471         'browser/fileapi/file_system_url_request_job_unittest.cc',
472         'browser/fileapi/file_system_url_unittest.cc',
473         'browser/fileapi/file_system_usage_cache_unittest.cc',
474         'browser/fileapi/file_writer_delegate_unittest.cc',
475         'browser/fileapi/fileapi_message_filter_unittest.cc',
476         'browser/fileapi/isolated_context_unittest.cc',
477         'browser/fileapi/local_file_stream_reader_unittest.cc',
478         'browser/fileapi/local_file_stream_writer_unittest.cc',
479         'browser/fileapi/local_file_util_unittest.cc',
480         'browser/fileapi/mock_file_change_observer.cc',
481         'browser/fileapi/mock_file_change_observer.h',
482         'browser/fileapi/mock_file_update_observer.cc',
483         'browser/fileapi/mock_file_update_observer.h',
484         'browser/fileapi/mock_url_request_delegate.cc',
485         'browser/fileapi/mock_url_request_delegate.h',
486         'browser/fileapi/native_file_util_unittest.cc',
487         'browser/fileapi/obfuscated_file_util_unittest.cc',
488         'browser/fileapi/plugin_private_file_system_backend_unittest.cc',
489         'browser/fileapi/recursive_operation_delegate_unittest.cc',
490         'browser/fileapi/sandbox_database_test_helper.cc',
491         'browser/fileapi/sandbox_database_test_helper.h',
492         'browser/fileapi/sandbox_directory_database_unittest.cc',
493         'browser/fileapi/sandbox_file_system_backend_delegate_unittest.cc',
494         'browser/fileapi/sandbox_file_system_backend_unittest.cc',
495         'browser/fileapi/sandbox_isolated_origin_database_unittest.cc',
496         'browser/fileapi/sandbox_origin_database_unittest.cc',
497         'browser/fileapi/sandbox_prioritized_origin_database_unittest.cc',
498         'browser/fileapi/timed_task_helper_unittest.cc',
499         'browser/fileapi/transient_file_util_unittest.cc',
500         'browser/fileapi/upload_file_system_file_element_reader_unittest.cc',
501         'browser/frame_host/frame_tree_unittest.cc',
502         'browser/frame_host/navigation_controller_impl_unittest.cc',
503         'browser/frame_host/navigation_entry_impl_unittest.cc',
504         'browser/frame_host/navigator_impl_unittest.cc',
505         'browser/frame_host/render_frame_host_manager_unittest.cc',
506         'browser/frame_host/render_widget_host_view_child_frame_unittest.cc',
507         'browser/frame_host/render_widget_host_view_guest_unittest.cc',
508         'browser/gamepad/gamepad_provider_unittest.cc',
509         'browser/gamepad/gamepad_service_unittest.cc',
510         'browser/gamepad/gamepad_test_helpers.cc',
511         'browser/gamepad/gamepad_test_helpers.h',
512         'browser/geofencing/geofencing_manager_unittest.cc',
513         'browser/geofencing/geofencing_service_unittest.cc',
514         'browser/geolocation/geolocation_provider_impl_unittest.cc',
515         'browser/geolocation/location_arbitrator_impl_unittest.cc',
516         'browser/geolocation/network_location_provider_unittest.cc',
517         'browser/geolocation/wifi_data_provider_chromeos_unittest.cc',
518         'browser/geolocation/wifi_data_provider_common_unittest.cc',
519         'browser/geolocation/wifi_data_provider_linux_unittest.cc',
520         'browser/geolocation/wifi_data_provider_win_unittest.cc',
521         'browser/gpu/gpu_data_manager_impl_private_unittest.cc',
522         'browser/gpu/shader_disk_cache_unittest.cc',
523         'browser/host_zoom_map_impl_unittest.cc',
524         'browser/indexed_db/indexed_db_active_blob_registry_unittest.cc',
525         'browser/indexed_db/indexed_db_backing_store_unittest.cc',
526         'browser/indexed_db/indexed_db_cleanup_on_io_error_unittest.cc',
527         'browser/indexed_db/indexed_db_database_unittest.cc',
528         'browser/indexed_db/indexed_db_factory_unittest.cc',
529         'browser/indexed_db/indexed_db_fake_backing_store.cc',
530         'browser/indexed_db/indexed_db_fake_backing_store.h',
531         'browser/indexed_db/indexed_db_leveldb_coding_unittest.cc',
532         'browser/indexed_db/indexed_db_quota_client_unittest.cc',
533         'browser/indexed_db/indexed_db_transaction_unittest.cc',
534         'browser/indexed_db/indexed_db_unittest.cc',
535         'browser/indexed_db/leveldb/mock_leveldb_factory.cc',
536         'browser/indexed_db/leveldb/mock_leveldb_factory.h',
537         'browser/indexed_db/mock_indexed_db_callbacks.cc',
538         'browser/indexed_db/mock_indexed_db_callbacks.h',
539         'browser/indexed_db/mock_indexed_db_database_callbacks.cc',
540         'browser/indexed_db/mock_indexed_db_database_callbacks.h',
541         'browser/indexed_db/mock_indexed_db_factory.cc',
542         'browser/indexed_db/mock_indexed_db_factory.h',
543         'browser/indexed_db/leveldb/leveldb_unittest.cc',
544         'browser/indexed_db/list_set_unittest.cc',
545         'browser/loader/buffered_resource_handler_unittest.cc',
546         'browser/loader/navigation_url_loader_unittest.cc',
547         'browser/loader/resource_buffer_unittest.cc',
548         'browser/loader/resource_dispatcher_host_unittest.cc',
549         'browser/loader/resource_loader_unittest.cc',
550         'browser/loader/resource_scheduler_unittest.cc',
551         'browser/loader/temporary_file_stream_unittest.cc',
552         'browser/loader/upload_data_stream_builder_unittest.cc',
553         'browser/mach_broker_mac_unittest.cc',
554         'browser/media/audio_stream_monitor_unittest.cc',
555         'browser/media/capture/audio_mirroring_manager_unittest.cc',
556         'browser/media/capture/video_capture_oracle_unittest.cc',
557         'browser/media/capture/web_contents_audio_input_stream_unittest.cc',
558         'browser/media/capture/web_contents_video_capture_device_unittest.cc',
559         'browser/media/media_internals_unittest.cc',
560         'browser/media/midi_host_unittest.cc',
561         'browser/media/webrtc_identity_store_unittest.cc',
562         'browser/net/sqlite_persistent_cookie_store_unittest.cc',
563         'browser/notification_service_impl_unittest.cc',
564         'browser/plugin_loader_posix_unittest.cc',
565         'browser/power_monitor_message_broadcaster_unittest.cc',
566         'browser/power_usage_monitor_impl_unittest.cc',
567         'browser/power_profiler/power_profiler_service_unittest.cc',
568         'browser/quota/mock_quota_manager.cc',
569         'browser/quota/mock_quota_manager.h',
570         'browser/quota/mock_quota_manager_proxy.cc',
571         'browser/quota/mock_quota_manager_proxy.h',
572         'browser/quota/mock_quota_manager_unittest.cc',
573         'browser/quota/quota_database_unittest.cc',
574         'browser/quota/quota_backend_impl_unittest.cc',
575         'browser/quota/quota_manager_unittest.cc',
576         'browser/quota/quota_reservation_manager_unittest.cc',
577         'browser/quota/quota_temporary_storage_evictor_unittest.cc',
578         'browser/quota/storage_monitor_unittest.cc',
579         'browser/quota/usage_tracker_unittest.cc',
580         'browser/renderer_host/clipboard_message_filter_unittest.cc',
581         'browser/renderer_host/input/gesture_event_queue_unittest.cc',
582         'browser/renderer_host/input/input_router_impl_unittest.cc',
583         'browser/renderer_host/input/mock_input_ack_handler.cc',
584         'browser/renderer_host/input/mock_input_ack_handler.h',
585         'browser/renderer_host/input/mock_input_router_client.cc',
586         'browser/renderer_host/input/mock_input_router_client.h',
587         'browser/renderer_host/input/stylus_text_selector_unittest.cc',
588         'browser/renderer_host/input/synthetic_gesture_controller_unittest.cc',
589         'browser/renderer_host/input/tap_suppression_controller_unittest.cc',
590         'browser/renderer_host/input/touch_action_filter_unittest.cc',
591         'browser/renderer_host/input/touch_emulator_unittest.cc',
592         'browser/renderer_host/input/touch_event_queue_unittest.cc',
593         'browser/renderer_host/input/web_input_event_util_unittest.cc',
594         'browser/renderer_host/media/audio_input_device_manager_unittest.cc',
595         'browser/renderer_host/media/audio_renderer_host_unittest.cc',
596         'browser/renderer_host/media/media_stream_dispatcher_host_unittest.cc',
597         'browser/renderer_host/media/media_stream_manager_unittest.cc',
598         'browser/renderer_host/media/media_stream_ui_proxy_unittest.cc',
599         'browser/renderer_host/media/video_capture_buffer_pool_unittest.cc',
600         'browser/renderer_host/media/video_capture_controller_unittest.cc',
601         'browser/renderer_host/media/video_capture_host_unittest.cc',
602         'browser/renderer_host/media/video_capture_manager_unittest.cc',
603         'browser/renderer_host/pepper/browser_ppapi_host_test.cc',
604         'browser/renderer_host/pepper/browser_ppapi_host_test.h',
605         'browser/renderer_host/pepper/pepper_file_system_browser_host_unittest.cc',
606         'browser/renderer_host/pepper/pepper_gamepad_host_unittest.cc',
607         'browser/renderer_host/pepper/pepper_printing_host_unittest.cc',
608         'browser/renderer_host/pepper/quota_reservation_unittest.cc',
609         'browser/renderer_host/render_process_host_unittest.cc',
610         'browser/renderer_host/render_view_host_unittest.cc',
611         'browser/renderer_host/render_widget_host_unittest.cc',
612         'browser/renderer_host/render_widget_host_latency_tracker_unittest.cc',
613         'browser/renderer_host/render_widget_host_view_aura_unittest.cc',
614         'browser/renderer_host/render_widget_host_view_base_unittest.cc',
615         'browser/renderer_host/render_widget_host_view_mac_editcommand_helper_unittest.mm',
616         'browser/renderer_host/render_widget_host_view_mac_unittest.mm',
617         'browser/renderer_host/text_input_client_mac_unittest.mm',
618         'browser/renderer_host/web_input_event_aura_unittest.cc',
619         'browser/renderer_host/websocket_dispatcher_host_unittest.cc',
620         'browser/resolve_proxy_msg_helper_unittest.cc',
621         'browser/service_worker/embedded_worker_instance_unittest.cc',
622         'browser/service_worker/embedded_worker_test_helper.cc',
623         'browser/service_worker/embedded_worker_test_helper.h',
624         'browser/service_worker/service_worker_cache_unittest.cc',
625         'browser/service_worker/service_worker_cache_storage_manager_unittest.cc',
626         'browser/service_worker/service_worker_context_unittest.cc',
627         'browser/service_worker/service_worker_controllee_request_handler_unittest.cc',
628         'browser/service_worker/service_worker_context_request_handler_unittest.cc',
629         'browser/service_worker/service_worker_database_unittest.cc',
630         'browser/service_worker/service_worker_dispatcher_host_unittest.cc',
631         'browser/service_worker/service_worker_handle_unittest.cc',
632         'browser/service_worker/service_worker_job_unittest.cc',
633         'browser/service_worker/service_worker_process_manager_unittest.cc',
634         'browser/service_worker/service_worker_provider_host_unittest.cc',
635         'browser/service_worker/service_worker_registration_unittest.cc',
636         'browser/service_worker/service_worker_request_handler_unittest.cc',
637         'browser/service_worker/service_worker_storage_unittest.cc',
638         'browser/service_worker/service_worker_url_request_job_unittest.cc',
639         'browser/service_worker/service_worker_utils_unittest.cc',
640         'browser/service_worker/service_worker_version_unittest.cc',
641         'browser/service_worker/service_worker_write_to_cache_job_unittest.cc',
642         'browser/shared_worker/shared_worker_instance_unittest.cc',
643         'browser/shared_worker/shared_worker_service_impl_unittest.cc',
644         'browser/site_instance_impl_unittest.cc',
645         'browser/speech/chunked_byte_buffer_unittest.cc',
646         'browser/speech/endpointer/endpointer_unittest.cc',
647         'browser/speech/google_one_shot_remote_engine_unittest.cc',
648         'browser/speech/google_streaming_remote_engine_unittest.cc',
649         'browser/speech/speech_recognizer_impl_unittest.cc',
650         'browser/startup_task_runner_unittest.cc',
651         'browser/storage_partition_impl_map_unittest.cc',
652         'browser/storage_partition_impl_unittest.cc',
653         'browser/streams/stream_unittest.cc',
654         'browser/streams/stream_url_request_job_unittest.cc',
655         'browser/system_message_window_win_unittest.cc',
656         'browser/transition_request_manager_unittest.cc',
657         'browser/web_contents/aura/overscroll_navigation_overlay_unittest.cc',
658         'browser/web_contents/aura/window_slider_unittest.cc',
659         'browser/web_contents/web_contents_delegate_unittest.cc',
660         'browser/web_contents/web_contents_impl_unittest.cc',
661         'browser/web_contents/web_contents_user_data_unittest.cc',
662         'browser/web_contents/web_contents_view_mac_unittest.mm',
663         'browser/web_contents/web_drag_dest_mac_unittest.mm',
664         'browser/web_contents/web_drag_source_mac_unittest.mm',
665         'browser/webui/web_ui_data_source_unittest.cc',
666         'browser/webui/web_ui_message_handler_unittest.cc',
667         'child/blink_platform_impl_unittest.cc',
668         'child/fileapi/webfilewriter_base_unittest.cc',
669         'child/indexed_db/indexed_db_dispatcher_unittest.cc',
670         'child/indexed_db/webidbcursor_impl_unittest.cc',
671         'child/multipart_response_delegate_unittest.cc',
672         'child/npapi/plugin_lib_unittest.cc',
673         'child/power_monitor_broadcast_source_unittest.cc',
674         'child/resource_dispatcher_unittest.cc',
675         'child/simple_webmimeregistry_impl_unittest.cc',
676         'child/site_isolation_policy_unittest.cc',
677         'child/web_data_consumer_handle_impl_unittest.cc',
678         'child/web_gesture_curve_impl_unittest.cc',
679         'child/web_url_loader_impl_unittest.cc',
680         'child/webcrypto/test/aes_cbc_unittest.cc',
681         'child/webcrypto/test/aes_ctr_unittest.cc',
682         'child/webcrypto/test/aes_gcm_unittest.cc',
683         'child/webcrypto/test/aes_kw_unittest.cc',
684         'child/webcrypto/test/ecdh_unittest.cc',
685         'child/webcrypto/test/ecdsa_unittest.cc',
686         'child/webcrypto/test/hmac_unittest.cc',
687         'child/webcrypto/test/rsa_oaep_unittest.cc',
688         'child/webcrypto/test/rsa_pss_unittest.cc',
689         'child/webcrypto/test/rsa_ssa_unittest.cc',
690         'child/webcrypto/test/sha_unittest.cc',
691         'child/webcrypto/test/status_unittest.cc',
692         'child/webcrypto/test/test_helpers.cc',
693         'child/webcrypto/test/test_helpers.h',
694         'child/worker_task_runner_unittest.cc',
695         'common/android/address_parser_unittest.cc',
696         'common/android/gin_java_bridge_value_unittest.cc',
697         'common/cc_messages_unittest.cc',
698         'common/common_param_traits_unittest.cc',
699         'common/cursors/webcursor_unittest.cc',
700         'common/database_connections_unittest.cc',
701         'common/database_identifier_unittest.cc',
702         'common/dom_storage/dom_storage_map_unittest.cc',
703         'common/dwrite_font_platform_win_unittest.cc',
704         'common/fileapi/file_system_util_unittest.cc',
705         'common/gpu/client/gpu_memory_buffer_impl_unittest.cc',
706         'common/gpu/gpu_channel_manager_unittest.cc',
707         'common/gpu/gpu_memory_buffer_factory_unittest.cc',
708         'common/gpu/gpu_memory_manager_unittest.cc',
709         'common/host_discardable_shared_memory_manager_unittest.cc',
710         'common/host_shared_bitmap_manager_unittest.cc',
711         'common/indexed_db/indexed_db_key_unittest.cc',
712         'common/input/gesture_event_stream_validator_unittest.cc',
713         'common/input/input_param_traits_unittest.cc',
714         'common/input/touch_event_stream_validator_unittest.cc',
715         'common/input/web_input_event_traits_unittest.cc',
716         'common/inter_process_time_ticks_converter_unittest.cc',
717         'common/mac/attributed_string_coder_unittest.mm',
718         'common/mac/font_descriptor_unittest.mm',
719         'common/one_writer_seqlock_unittest.cc',
720         'common/page_state_serialization_unittest.cc',
721         'common/page_zoom_unittest.cc',
722         'common/plugin_list_unittest.cc',
723         'common/sandbox_mac_diraccess_unittest.mm',
724         'common/sandbox_mac_fontloading_unittest.mm',
725         'common/sandbox_mac_system_access_unittest.mm',
726         'common/sandbox_mac_unittest_helper.h',
727         'common/sandbox_mac_unittest_helper.mm',
728         'common/shareable_file_reference_unittest.cc',
729         'common/webplugininfo_unittest.cc',
730         'renderer/android/email_detector_unittest.cc',
731         'renderer/android/phone_number_detector_unittest.cc',
732         'renderer/bmp_image_decoder_unittest.cc',
733         'renderer/device_sensors/device_light_event_pump_unittest.cc',
734         'renderer/device_sensors/device_motion_event_pump_unittest.cc',
735         'renderer/device_sensors/device_orientation_event_pump_unittest.cc',
736         'renderer/disambiguation_popup_helper_unittest.cc',
737         'renderer/dom_storage/dom_storage_cached_area_unittest.cc',
738         'renderer/gpu/compositor_forwarding_message_filter_unittest.cc',
739         'renderer/gpu/frame_swap_message_queue_unittest.cc',
740         'renderer/gpu/queue_message_swap_promise_unittest.cc',
741         'renderer/gpu/render_widget_compositor_unittest.cc',
742         'renderer/ico_image_decoder_unittest.cc',
743         'renderer/input/input_event_filter_unittest.cc',
744         'renderer/input/input_handler_proxy_unittest.cc',
745         'renderer/manifest/manifest_parser_unittest.cc',
746         'renderer/media/android/media_info_loader_unittest.cc',
747         'renderer/media/audio_message_filter_unittest.cc',
748         'renderer/media/audio_renderer_mixer_manager_unittest.cc',
749         'renderer/media/render_media_client_unittest.cc',
750         'renderer/media/render_media_log_unittest.cc',
751         'renderer/media/video_capture_impl_manager_unittest.cc',
752         'renderer/media/video_capture_impl_unittest.cc',
753         'renderer/media/video_capture_message_filter_unittest.cc',
754         'renderer/media/webrtc/video_destination_handler_unittest.cc',
755         'renderer/npapi/webplugin_impl_unittest.cc',
756         'renderer/pepper/event_conversion_unittest.cc',
757         'renderer/pepper/host_var_tracker_unittest.cc',
758         'renderer/pepper/mock_resource.h',
759         'renderer/pepper/pepper_broker_unittest.cc',
760         'renderer/pepper/pepper_plugin_instance_throttler_unittest.cc',
761         'renderer/pepper/v8_var_converter_unittest.cc',
762         'renderer/render_thread_impl_unittest.cc',
763         'renderer/render_widget_unittest.cc',
764         'renderer/scheduler/renderer_scheduler_impl_unittest.cc',
765         'renderer/scheduler/renderer_task_queue_selector_unittest.cc',
766         'renderer/scheduler/task_queue_manager_unittest.cc',
767         'renderer/screen_orientation/screen_orientation_dispatcher_unittest.cc',
768         'renderer/skia_benchmarking_extension_unittest.cc',
769         'renderer/v8_value_converter_impl_unittest.cc',
770         'test/fileapi_test_file_set.cc',
771         'test/fileapi_test_file_set.h',
772         'test/image_decoder_test.cc',
773         'test/image_decoder_test.h',
774         'test/run_all_unittests.cc',
775       ],
776       'conditions': [
777         ['OS == "ios"', {
778           'sources/': [
779             # iOS only needs a small portion of content; exclude all the
780             # implementation, and re-include what is used.
781             ['exclude', '\\.(cc|mm)$'],
782             ['include', '_ios\\.(cc|mm)$'],
783             ['include', '^browser/notification_service_impl_unittest\\.cc$'],
784             ['include', '^browser/web_contents/navigation_entry_impl_unittest\\.cc$'],
785             ['include', '^test/run_all_unittests\\.cc$'],
786           ],
787         }, {  # OS != "ios"
788           'dependencies': [
789             'content.gyp:content_browser',
790             'content.gyp:content_child',
791             'content.gyp:content_gpu',
792             'content.gyp:content_plugin',
793             'content.gyp:content_renderer',
794             'content.gyp:content_resources',
795             '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
796             '../cc/cc.gyp:cc',
797             '../cc/cc.gyp:cc_surfaces',
798             '../cc/cc_tests.gyp:cc_test_support',
799             '../gin/gin.gyp:gin',
800             '../gpu/gpu.gyp:gpu',
801             '../gpu/gpu.gyp:gpu_unittest_utils',
802             '../ipc/ipc.gyp:test_support_ipc',
803             '../media/media.gyp:media_test_support',
804             '../media/media.gyp:shared_memory_support',
805             '../storage/storage_browser.gyp:storage',
806             '../storage/storage_common.gyp:storage_common',
807             '../third_party/WebKit/public/blink.gyp:blink',
808             '../third_party/icu/icu.gyp:icui18n',
809             '../third_party/icu/icu.gyp:icuuc',
810             '../third_party/leveldatabase/leveldatabase.gyp:leveldatabase',
811             '../third_party/libjingle/libjingle.gyp:libjingle',
812             '../ui/gl/gl.gyp:gl',
813           ],
814         }],
815         ['OS != "win"', {
816           'sources': [
817             'browser/file_descriptor_info_impl_unittest.cc',
818           ],
819         }],
820         ['enable_plugins==0', {
821           'sources/': [
822             ['exclude', '^browser/renderer_host/pepper/'],
823             ['exclude', '^child/npapi/'],
824             ['exclude', '^renderer/npapi/'],
825             ['exclude', '^renderer/pepper/'],
826           ],
827           'sources!': [
828             'browser/plugin_loader_posix_unittest.cc',
829             'renderer/media/webrtc/video_destination_handler_unittest.cc',
830           ],
831         }],
832         ['enable_webrtc==1', {
833           'sources': [
834             'browser/media/webrtc_internals_unittest.cc',
835             'browser/renderer_host/media/webrtc_identity_service_host_unittest.cc',
836             'browser/renderer_host/p2p/socket_host_test_utils.cc',
837             'browser/renderer_host/p2p/socket_host_test_utils.h',
838             'browser/renderer_host/p2p/socket_host_tcp_unittest.cc',
839             'browser/renderer_host/p2p/socket_host_tcp_server_unittest.cc',
840             'browser/renderer_host/p2p/socket_host_udp_unittest.cc',
841             'browser/renderer_host/p2p/socket_host_unittest.cc',
842             'renderer/media/media_stream_audio_processor_unittest.cc',
843             'renderer/media/media_stream_constraints_util_unittest.cc',
844             'renderer/media/media_stream_dispatcher_unittest.cc',
845             'renderer/media/media_stream_video_capture_source_unittest.cc',
846             'renderer/media/media_stream_video_source_unittest.cc',
847             'renderer/media/media_stream_video_track_unittest.cc',
848             'renderer/media/mock_media_stream_registry.cc',
849             'renderer/media/mock_media_stream_registry.h',
850             'renderer/media/mock_media_stream_video_sink.cc',
851             'renderer/media/mock_media_stream_video_sink.h',
852             'renderer/media/mock_media_stream_video_source.cc',
853             'renderer/media/mock_media_stream_video_source.h',
854             'renderer/media/mock_media_constraint_factory.cc',
855             'renderer/media/rtc_peer_connection_handler_unittest.cc',
856             'renderer/media/rtc_video_decoder_unittest.cc',
857             'renderer/media/speech_recognition_audio_sink_unittest.cc',
858             'renderer/media/user_media_client_impl_unittest.cc',
859             'renderer/media/video_source_handler_unittest.cc',
860             'renderer/media/webrtc/media_stream_remote_video_source_unittest.cc',
861             'renderer/media/webrtc/media_stream_track_metrics_unittest.cc',
862             'renderer/media/webrtc/peer_connection_dependency_factory_unittest.cc',
863             'renderer/media/webrtc/webrtc_local_audio_track_adapter_unittest.cc',
864             'renderer/media/webrtc/webrtc_media_stream_adapter_unittest.cc',
865             'renderer/media/webrtc/webrtc_video_capturer_adapter_unittest.cc',
866             'renderer/media/webrtc_audio_capturer_unittest.cc',
867             'renderer/media/webrtc_audio_renderer_unittest.cc',
868             'renderer/media/webrtc_identity_service_unittest.cc',
869             'renderer/media/webrtc_local_audio_source_provider_unittest.cc',
870             'renderer/media/webrtc_local_audio_track_unittest.cc',
871             'renderer/media/webrtc_uma_histograms_unittest.cc',
872             'renderer/p2p/ipc_network_manager_unittest.cc',
873           ],
874           'dependencies': [
875             '../third_party/libjingle/libjingle.gyp:libjingle_webrtc',
876             '../third_party/libjingle/libjingle.gyp:libpeerconnection',
877             '../third_party/webrtc/modules/modules.gyp:video_capture_module',
878           ]
879         }, {
880           'sources!': [
881             'renderer/media/webrtc/video_destination_handler_unittest.cc',
882           ],
883         }],
884         ['enable_webrtc==1 and (OS=="linux" or OS=="mac" or OS=="win")', {
885           'sources': [
886             'browser/media/capture/desktop_capture_device_unittest.cc',
887           ],
888           'dependencies': [
889             '../third_party/webrtc/modules/modules.gyp:desktop_capture',
890           ],
891         }],
892         ['enable_webrtc==1 and chromeos==1', {
893           'sources': [
894             'browser/media/capture/desktop_capture_device_aura_unittest.cc',
895           ],
896         }],
897         # TODO(jrg): remove the OS=="android" section?
898         # http://crbug.com/113172
899         # Understand better how media_stream_ is tied into Chromium.
900         ['enable_webrtc==0 and OS=="android"', {
901           'sources/': [
902             ['exclude', '^renderer/media/media_stream_'],
903           ],
904         }],
905         ['enable_web_speech==0', {
906           'sources/': [
907             ['exclude', '^browser/speech/'],
908           ]
909         }],
910         ['OS=="linux"', {
911           'dependencies': [
912             '../build/linux/system.gyp:dbus',
913             '../dbus/dbus.gyp:dbus_test_support',
914           ],
915         }],
916         ['OS=="win" and win_use_allocator_shim==1', {
917           'dependencies': [
918             '../base/allocator/allocator.gyp:allocator',
919           ],
920         }],
921         ['OS=="win"', {
922           'dependencies': [
923             '../third_party/iaccessible2/iaccessible2.gyp:iaccessible2',
924           ],
925         }],
926         ['OS=="mac"', {
927           # These flags are needed to run the test on Mac.
928           # Search for comments about "xcode_settings" in chrome_tests.gypi.
929           'xcode_settings': {'OTHER_LDFLAGS': ['-Wl,-ObjC']},
930         }],
931         ['chromeos==1', {
932           'dependencies': [
933             '../chromeos/chromeos.gyp:chromeos',
934           ],
935           'sources/': [
936             ['exclude', '^browser/geolocation/wifi_data_provider_linux_unittest.cc'],
937           ],
938         }],
939         ['use_aura==1', {
940           'dependencies': [
941             '../ui/aura/aura.gyp:aura',
942             '../ui/wm/wm.gyp:wm',
943           ]
944         }],
945         ['use_aura==1 or toolkit_views==1', {
946           'dependencies': [
947             '../ui/events/events.gyp:events_test_support',
948           ],
949         }],
950         ['use_aura!=1 and OS!="mac"', {
951           'sources/': [
952             ['exclude', '^browser/compositor/'],
953           ],
954         }],
955         ['OS == "android"', {
956           'sources': [
957             'browser/android/java/gin_java_method_invocation_helper_unittest.cc',
958             'browser/android/java/java_type_unittest.cc',
959             'browser/android/java/jni_helper_unittest.cc',
960             'browser/android/overscroll_refresh_unittest.cc',
961             'browser/android/url_request_content_job_unittest.cc',
962             'browser/renderer_host/input/motion_event_android_unittest.cc',
963             'renderer/java/gin_java_bridge_value_converter_unittest.cc',
964           ],
965           'sources!': [
966             'browser/geolocation/network_location_provider_unittest.cc',
967             'browser/geolocation/wifi_data_provider_chromeos_unittest.cc',
968             'browser/geolocation/wifi_data_provider_common_unittest.cc',
969             'browser/geolocation/wifi_data_provider_linux_unittest.cc',
970           ],
971         }],
972         ['OS != "android" and OS != "ios"', {
973           'dependencies': [
974             '../third_party/libvpx/libvpx.gyp:libvpx',
975           ],
976         }],
977         ['OS == "android"', {
978           'dependencies': [
979             '../testing/android/native_test.gyp:native_test_native_code',
980           ],
981         }],
982         ['use_aura!=1 and OS!="android"', {
983           'sources!': [
984             'browser/renderer_host/input/tap_suppression_controller_unittest.cc',
985           ],
986         }],
987         ['use_dbus==0', {
988           'sources!': [
989             'browser/geolocation/wifi_data_provider_linux_unittest.cc',
990           ],
991         }],
992         ['OS!="win" and OS!="mac"', {
993           'sources!': [
994             'common/plugin_list_unittest.cc',
995           ],
996         }],
997         ['use_ozone==1', {
998           'dependencies': [
999             '../ui/ozone/ozone.gyp:ozone',
1000             '../ui/ozone/ozone.gyp:ozone_base',
1001           ],
1002         }],
1003       ],
1004     },
1005   ],
1006   'conditions': [
1007     ['test_isolation_mode != "noop"', {
1008       'targets': [
1009         {
1010           'target_name': 'content_browsertests_run',
1011           'type': 'none',
1012           'dependencies': [
1013             'content_browsertests',
1014           ],
1015           'includes': [
1016             '../build/isolate.gypi',
1017           ],
1018           'sources': [
1019             'content_browsertests.isolate',
1020           ],
1021         },
1022         {
1023           'target_name': 'content_unittests_run',
1024           'type': 'none',
1025           'dependencies': [
1026             'content_unittests',
1027           ],
1028           'includes': [
1029             '../build/isolate.gypi',
1030           ],
1031           'sources': [
1032             'content_unittests.isolate',
1033           ],
1034           'conditions': [
1035             ['use_x11==1', {
1036               'dependencies': [
1037                 '../tools/xdisplaycheck/xdisplaycheck.gyp:xdisplaycheck',
1038               ],
1039             }],
1040           ],
1041         },
1042       ],
1043       'conditions': [
1044         ['archive_gpu_tests==1', {
1045           'targets': [
1046             {
1047               'target_name': 'content_gl_tests_run',
1048               'type': 'none',
1049               'dependencies': [
1050                 'content_shell_and_tests.gyp:content_gl_tests',
1051               ],
1052               'includes': [
1053                 '../build/isolate.gypi',
1054               ],
1055               'sources': [
1056                 'content_gl_tests.isolate',
1057               ],
1058             },
1059           ],
1060         }],
1061       ],
1062     }],
1063     ['OS!="ios"', {
1064       'targets': [
1065         {
1066           'target_name': 'content_perftests',
1067           'type': '<(gtest_target_type)',
1068           'defines!': ['CONTENT_IMPLEMENTATION'],
1069           'dependencies': [
1070             'content.gyp:content_browser',
1071             'content.gyp:content_common',
1072             'test_support_content',
1073             '../base/base.gyp:test_support_base',
1074             '../cc/cc.gyp:cc',
1075             '../skia/skia.gyp:skia',
1076             '../testing/gtest.gyp:gtest',
1077             '../testing/perf/perf_test.gyp:*',
1078             '../ui/gfx/gfx.gyp:gfx',
1079             '../ui/gfx/gfx.gyp:gfx_geometry',
1080           ],
1081           'include_dirs': [
1082             '..',
1083           ],
1084           'sources': [
1085             'browser/renderer_host/input/input_router_impl_perftest.cc',
1086             'common/cc_messages_perftest.cc',
1087             'test/run_all_perftests.cc',
1088           ],
1089           'conditions': [
1090             ['OS == "android"', {
1091               'dependencies': [
1092                 '../testing/android/native_test.gyp:native_test_native_code',
1093               ],
1094             }],
1095             ['OS=="win" and component!="shared_library" and win_use_allocator_shim==1', {
1096               'dependencies': [
1097                 '<(DEPTH)/base/allocator/allocator.gyp:allocator',
1098               ],
1099             }],
1100           ],
1101         },
1102         {
1103           'target_name': 'content_browser_test_support',
1104           'type': 'static_library',
1105           'dependencies': [
1106             'content_shell_lib',
1107             '../skia/skia.gyp:skia',
1108             '../testing/gtest.gyp:gtest',
1109             '../ui/accessibility/accessibility.gyp:ax_gen',
1110           ],
1111           'sources': [
1112             'test/content_test_launcher.cc',
1113             'public/test/content_browser_test.cc',
1114             'public/test/content_browser_test.h',
1115             'public/test/content_browser_test_utils.cc',
1116             'public/test/content_browser_test_utils.h',
1117             'public/test/content_browser_test_utils_mac.mm',
1118           ],
1119           'include_dirs': [
1120             '<(SHARED_INTERMEDIATE_DIR)',
1121           ],
1122           'conditions': [
1123             ['OS=="android"', {
1124               'dependencies': [
1125                 'content.gyp:content_app_both',
1126               ],
1127             }, {
1128               'dependencies': [
1129                 'content.gyp:content_browser',
1130               ],
1131             }],
1132           ],
1133         },
1134         {
1135           'target_name': 'web_ui_test_mojo_bindings',
1136           'type': 'static_library',
1137           'dependencies': [
1138             '../mojo/public/mojo_public.gyp:mojo_cpp_bindings',
1139           ],
1140           'sources': [
1141             'test/data/web_ui_test_mojo_bindings.mojom',
1142           ],
1143           'includes': [ '../mojo/public/tools/bindings/mojom_bindings_generator.gypi' ],
1144           'export_dependent_settings': [
1145             '../mojo/public/mojo_public.gyp:mojo_cpp_bindings',
1146           ],
1147         },
1148         {
1149           'target_name': 'content_browsertests',
1150           'type': '<(gtest_target_type)',
1151           'dependencies': [
1152             'content.gyp:content_common',
1153             'content.gyp:content_gpu',
1154             'content.gyp:content_plugin',
1155             'content.gyp:content_renderer',
1156             'content.gyp:content_resources',
1157             'content_browser_test_support',
1158             'content_shell_lib',
1159             'content_shell_pak',
1160             'test_support_content',
1161             'web_ui_test_mojo_bindings',
1162             '../base/base.gyp:test_support_base',
1163             '../device/battery/battery.gyp:device_battery',
1164             '../device/battery/battery.gyp:device_battery_mojo_bindings',
1165             '../gin/gin.gyp:gin',
1166             '../gpu/gpu.gyp:gpu',
1167             '../ipc/ipc.gyp:test_support_ipc',
1168             '../media/media.gyp:media_test_support',
1169             '../media/media.gyp:shared_memory_support',
1170             '../mojo/edk/mojo_edk.gyp:mojo_common_test_support',
1171             '../mojo/edk/mojo_edk.gyp:mojo_system_impl',
1172             '../mojo/mojo_base.gyp:mojo_environment_chromium',
1173             '../mojo/public/mojo_public.gyp:mojo_cpp_bindings',
1174             '../mojo/public/mojo_public.gyp:mojo_js_bindings',
1175             '../net/net.gyp:net_test_support',
1176             '../ppapi/ppapi_internal.gyp:ppapi_host',
1177             '../ppapi/ppapi_internal.gyp:ppapi_ipc',
1178             '../ppapi/ppapi_internal.gyp:ppapi_proxy',
1179             '../ppapi/ppapi_internal.gyp:ppapi_shared',
1180             '../ppapi/ppapi_internal.gyp:ppapi_tests',
1181             '../ppapi/ppapi_internal.gyp:ppapi_unittest_shared',
1182             '../testing/gmock.gyp:gmock',
1183             '../testing/gtest.gyp:gtest',
1184             '../third_party/WebKit/public/blink.gyp:blink',
1185             '../third_party/leveldatabase/leveldatabase.gyp:leveldatabase',
1186             '../third_party/mesa/mesa.gyp:osmesa',
1187             '../ui/accessibility/accessibility.gyp:accessibility',
1188             '../ui/base/ui_base.gyp:ui_base',
1189             '../ui/gfx/gfx.gyp:gfx',
1190             '../ui/gfx/gfx.gyp:gfx_geometry',
1191             '../ui/gl/gl.gyp:gl',
1192             '../ui/resources/ui_resources.gyp:ui_resources',
1193             '../ui/shell_dialogs/shell_dialogs.gyp:shell_dialogs',
1194             '../ui/snapshot/snapshot.gyp:snapshot',
1195             '../ui/accessibility/accessibility.gyp:ax_gen',
1196           ],
1197           'include_dirs': [
1198             '..',
1199             '<(SHARED_INTERMEDIATE_DIR)',  # Needed by encrypted_media_browsertest.cc
1200           ],
1201           'includes': [
1202             'browser/gpu/test_support_gpu.gypi',
1203           ],
1204           'defines': [
1205             'HAS_OUT_OF_PROC_TEST_RUNNER',
1206           ],
1207           'sources': [
1208             'app/mojo/mojo_browsertest.cc',
1209             'browser/accessibility/accessibility_ipc_error_browsertest.cc',
1210             'browser/accessibility/accessibility_mode_browsertest.cc',
1211             'browser/accessibility/accessibility_win_browsertest.cc',
1212             'browser/accessibility/android_granularity_movement_browsertest.cc',
1213             'browser/accessibility/android_hit_testing_browsertest.cc',
1214             'browser/accessibility/cross_platform_accessibility_browsertest.cc',
1215             'browser/accessibility/dump_accessibility_tree_browsertest.cc',
1216             'browser/accessibility/site_per_process_accessibility_browsertest.cc',
1217             'browser/battery_status/battery_monitor_impl_browsertest.cc',
1218             'browser/battery_status/battery_monitor_integration_browsertest.cc',
1219             'browser/compositor/image_transport_factory_browsertest.cc',
1220             'browser/bookmarklet_browsertest.cc',
1221             'browser/child_process_launcher_browsertest.cc',
1222             'browser/child_process_security_policy_browsertest.cc',
1223             'browser/cross_site_transfer_browsertest.cc',
1224             'browser/database_browsertest.cc',
1225             'browser/device_sensors/device_inertial_sensor_browsertest.cc',
1226             'browser/devtools/protocol/devtools_protocol_browsertest.cc',
1227             'browser/dom_storage/dom_storage_browsertest.cc',
1228             'browser/download/download_browsertest.cc',
1229             'browser/download/drag_download_file_browsertest.cc',
1230             'browser/download/mhtml_generation_browsertest.cc',
1231             'browser/download/save_package_browsertest.cc',
1232             'browser/fileapi/file_system_browsertest.cc',
1233             'browser/frame_host/frame_tree_browsertest.cc',
1234             'browser/frame_host/render_frame_host_manager_browsertest.cc',
1235             'browser/frame_host/navigation_controller_impl_browsertest.cc',
1236             'browser/gpu/compositor_util_browsertest.cc',
1237             'browser/gpu/gpu_ipc_browsertests.cc',
1238             'browser/indexed_db/indexed_db_browsertest.cc',
1239             'browser/indexed_db/mock_browsertest_indexed_db_class_factory.cc',
1240             'browser/indexed_db/mock_browsertest_indexed_db_class_factory.h',
1241             'browser/loader/resource_dispatcher_host_browsertest.cc',
1242             'browser/manifest/manifest_browsertest.cc',
1243             'browser/media/encrypted_media_browsertest.cc',
1244             'browser/media/media_browsertest.cc',
1245             'browser/media/media_browsertest.h',
1246             'browser/media/media_canplaytype_browsertest.cc',
1247             'browser/media/media_source_browsertest.cc',
1248             'browser/net_info_browsertest.cc',
1249             'browser/plugin_data_remover_impl_browsertest.cc',
1250             'browser/plugin_browsertest.cc',
1251             'browser/plugin_service_impl_browsertest.cc',
1252             'browser/renderer_host/input/touch_action_browsertest.cc',
1253             'browser/renderer_host/input/touch_input_browsertest.cc',
1254             'browser/renderer_host/render_process_host_browsertest.cc',
1255             'browser/renderer_host/render_view_host_browsertest.cc',
1256             'browser/renderer_host/render_widget_host_browsertest.cc',
1257             'browser/renderer_host/render_widget_host_view_browsertest.cc',
1258             'browser/screen_orientation/screen_orientation_browsertest.cc',
1259             'browser/security_exploit_browsertest.cc',
1260             'browser/service_worker/service_worker_browsertest.cc',
1261             'browser/session_history_browsertest.cc',
1262             'browser/shared_worker/worker_browsertest.cc',
1263             'browser/site_per_process_browsertest.h',
1264             'browser/site_per_process_browsertest.cc',
1265             'browser/speech/speech_recognition_browsertest.cc',
1266             'browser/tracing/tracing_controller_browsertest.cc',
1267             'browser/transition_browsertest.cc',
1268             'browser/web_contents/opened_by_dom_browsertest.cc',
1269             'browser/web_contents/touch_editable_impl_aura_browsertest.cc',
1270             'browser/web_contents/web_contents_impl_browsertest.cc',
1271             'browser/web_contents/web_contents_view_aura_browsertest.cc',
1272             'browser/webkit_browsertest.cc',
1273             'browser/webui/web_ui_mojo_browsertest.cc',
1274             'child/site_isolation_policy_browsertest.cc',
1275             'renderer/accessibility/renderer_accessibility_browsertest.cc',
1276             'renderer/browser_render_view_browsertest.cc',
1277             'renderer/devtools/v8_sampling_profiler_browsertest.cc',
1278             'renderer/dom_serializer_browsertest.cc',
1279             'renderer/gin_browsertest.cc',
1280             'renderer/mouse_lock_dispatcher_browsertest.cc',
1281             'renderer/pepper/fake_pepper_plugin_instance.cc',
1282             'renderer/pepper/mock_renderer_ppapi_host.cc',
1283             'renderer/pepper/pepper_device_enumeration_host_helper_unittest.cc',
1284             'renderer/pepper/pepper_file_chooser_host_unittest.cc',
1285             'renderer/pepper/pepper_graphics_2d_host_unittest.cc',
1286             'renderer/pepper/pepper_url_request_unittest.cc',
1287             'renderer/pepper/plugin_power_saver_helper_browsertest.cc',
1288             'renderer/render_thread_impl_browsertest.cc',
1289             'renderer/render_view_browsertest.cc',
1290             'renderer/render_view_browsertest_mac.mm',
1291             'renderer/render_widget_browsertest.cc',
1292             'renderer/resource_fetcher_browsertest.cc',
1293             'renderer/savable_resources_browsertest.cc',
1294             'test/accessibility_browser_test_utils.cc',
1295             'test/accessibility_browser_test_utils.h',
1296             'test/browser_test_utils_browsertest.cc',
1297             'test/content_browser_test_test.cc',
1298             'test/ppapi/ppapi_browsertest.cc',
1299             'test/ppapi/ppapi_test.cc',
1300             'test/ppapi/ppapi_test.h',
1301             'test/webui_resource_browsertest.cc',
1302           ],
1303           'conditions': [
1304             ['chromeos==0', {
1305               'sources!': [
1306                 'browser/web_contents/touch_editable_impl_aura_browsertest.cc',
1307               ],
1308             }],
1309             ['OS=="win"', {
1310               'resource_include_dirs': [
1311                 '<(SHARED_INTERMEDIATE_DIR)/webkit',
1312               ],
1313               'sources': [
1314                 'shell/app/resource.h',
1315                 'shell/app/shell.rc',
1316                 # TODO:  It would be nice to have these pulled in
1317                 # automatically from direct_dependent_settings in
1318                 # their various targets (net.gyp:net_resources, etc.),
1319                 # but that causes errors in other targets when
1320                 # resulting .res files get referenced multiple times.
1321                 '<(SHARED_INTERMEDIATE_DIR)/blink/public/resources/blink_resources.rc',
1322                 '<(SHARED_INTERMEDIATE_DIR)/content/app/strings/content_strings_en-US.rc',
1323                 '<(SHARED_INTERMEDIATE_DIR)/net/net_resources.rc',
1324               ],
1325               'dependencies': [
1326                 '<(DEPTH)/content/app/strings/content_strings.gyp:content_strings',
1327                 '<(DEPTH)/net/net.gyp:net_resources',
1328                 '<(DEPTH)/third_party/WebKit/public/blink_resources.gyp:blink_resources',
1329                 '<(DEPTH)/third_party/iaccessible2/iaccessible2.gyp:iaccessible2',
1330                 '<(DEPTH)/third_party/isimpledom/isimpledom.gyp:isimpledom',
1331               ],
1332               'configurations': {
1333                 'Debug_Base': {
1334                   'msvs_settings': {
1335                     'VCLinkerTool': {
1336                       'LinkIncremental': '<(msvs_large_module_debug_link_mode)',
1337                     },
1338                   },
1339                 },
1340               },
1341               # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
1342               'msvs_disabled_warnings': [ 4267, ],
1343             }],
1344             ['OS=="win" and win_use_allocator_shim==1', {
1345               'dependencies': [
1346                 '../base/allocator/allocator.gyp:allocator',
1347               ],
1348             }],
1349             ['OS=="linux"', {
1350               'sources!': [
1351                 'browser/accessibility/dump_accessibility_tree_browsertest.cc',
1352               ],
1353             }],
1354             ['OS!="android"', {
1355               'sources!': [
1356                 'browser/accessibility/android_granularity_movement_browsertest.cc',
1357                 'browser/accessibility/android_hit_testing_browsertest.cc',
1358               ]
1359             }],
1360             ['OS=="android"', {
1361               'sources': [
1362                 'shell/android/browsertests_apk/content_browser_tests_android.cc',
1363               ],
1364               'dependencies': [
1365                 'content_shell_jni_headers',
1366                 'content_shell_lib',
1367                 '../testing/android/native_test.gyp:native_test_util',
1368               ],
1369             }],
1370             ['OS=="mac"', {
1371               'dependencies': [
1372                 'content_shell',  # Needed for Content Shell.app's Helper.
1373               ],
1374               'sources': [
1375                 'renderer/external_popup_menu_browsertest.cc',
1376               ],
1377             }],
1378             ['use_aura==1 and OS!="win"', {
1379               'sources!': [
1380                 'browser/plugin_browsertest.cc',
1381               ],
1382             }],
1383             ['use_aura==1 or toolkit_views==1', {
1384               'dependencies': [
1385                 '../ui/events/events.gyp:events_test_support',
1386               ],
1387             }],
1388             ['use_aura!=1 and OS!="mac"', {
1389               'sources/': [
1390                 ['exclude', '^browser/compositor/'],
1391               ],
1392             }],
1393             ['OS!="android" and OS!="ios" and OS!="linux"', {
1394               # npapi test plugin doesn't build on android or ios
1395               'dependencies': [
1396                 # Runtime dependencies
1397                 'copy_npapi_test_plugin',
1398               ],
1399             }],
1400             ['enable_webrtc==1', {
1401               'sources': [
1402                 'browser/media/webrtc_aecdump_browsertest.cc',
1403                 'browser/media/webrtc_browsertest.cc',
1404                 'browser/media/webrtc_getusermedia_browsertest.cc',
1405                 'browser/media/webrtc_internals_browsertest.cc',
1406                 'browser/media/webrtc_webcam_browsertest.cc',
1407                 'test/webrtc_content_browsertest_base.cc',
1408                 'test/webrtc_content_browsertest_base.h',
1409               ],
1410               'dependencies': [
1411                 '../testing/perf/perf_test.gyp:perf_test',
1412               ],
1413             }],
1414             ['enable_plugins==0', {
1415               'sources/': [
1416                 ['exclude', '^renderer/pepper/'],
1417               ],
1418               'sources!': [
1419                 'browser/plugin_service_impl_browsertest.cc',
1420                 'browser/plugin_data_remover_impl_browsertest.cc',
1421                 'test/ppapi/ppapi_browsertest.cc',
1422                 'test/ppapi/ppapi_test.cc',
1423                 'test/ppapi/ppapi_test.h',
1424               ],
1425               'dependencies!': [
1426                 '../ppapi/ppapi_internal.gyp:ppapi_tests',
1427               ]
1428             }],
1429             ['enable_web_speech==0', {
1430               'sources/': [
1431                 ['exclude', '^browser/speech/'],
1432               ]
1433             }],
1434             ['branding=="Chrome"', {
1435               'sources!': [
1436                 # These tests depend on single process mode, which is disabled
1437                 # in official builds.
1438                 'renderer/browser_render_view_browsertest.cc',
1439                 'renderer/dom_serializer_browsertest.cc',
1440                 'renderer/resource_fetcher_browsertest.cc',
1441                 'renderer/savable_resources_browsertest.cc',
1442               ],
1443             }],
1444           ],
1445         },
1446         {
1447           'target_name': 'content_gl_tests',
1448           'type': '<(gtest_target_type)',
1449           'dependencies': [
1450             'content.gyp:content_common',
1451             'test_support_content',
1452             '../base/base.gyp:test_support_base',
1453             '../gpu/gpu.gyp:command_buffer_common',
1454             '../testing/gtest.gyp:gtest',
1455             '../third_party/WebKit/public/blink.gyp:blink',
1456             '../ui/base/ui_base.gyp:ui_base',
1457             '../ui/gfx/gfx.gyp:gfx',
1458             '../ui/gfx/gfx.gyp:gfx_geometry',
1459             '../ui/gfx/gfx.gyp:gfx_test_support',
1460             '../ui/gl/gl.gyp:gl',
1461             '../v8/tools/gyp/v8.gyp:v8',
1462           ],
1463           'include_dirs': [
1464             '..',
1465           ],
1466           'sources': [
1467             'common/gpu/client/gl_helper_unittest.cc',
1468             'common/gpu/client/gpu_in_process_context_tests.cc',
1469           ],
1470           'conditions': [
1471             ['OS=="android"', {
1472               'dependencies': [
1473                 '../testing/android/native_test.gyp:native_test_native_code',
1474               ],
1475             }, {
1476               'dependencies': [
1477                 # Runtime dependencis.
1478                 '../third_party/ffmpeg/ffmpeg.gyp:ffmpeg',
1479                 '../third_party/mesa/mesa.gyp:osmesa',
1480               ],
1481             }],
1482             ['OS=="win" and component!="shared_library" and win_use_allocator_shim==1', {
1483               'dependencies': [
1484                 '<(DEPTH)/base/allocator/allocator.gyp:allocator',
1485               ],
1486             }],
1487           ],
1488         },
1489         {
1490           'target_name': 'content_gl_benchmark',
1491           'type': '<(gtest_target_type)',
1492           'dependencies': [
1493             'content.gyp:content_common',
1494             'test_support_content',
1495             '../base/base.gyp:test_support_base',
1496             '../testing/gtest.gyp:gtest',
1497             '../third_party/WebKit/public/blink.gyp:blink',
1498             '../ui/base/ui_base.gyp:ui_base',
1499             '../ui/gfx/gfx.gyp:gfx',
1500             '../ui/gfx/gfx.gyp:gfx_geometry',
1501             '../ui/gl/gl.gyp:gl',
1502           ],
1503           'include_dirs': [
1504             '..',
1505           ],
1506           'sources': [
1507             'common/gpu/client/gl_helper_benchmark.cc',
1508           ],
1509           'conditions': [
1510             ['OS=="win" and component!="shared_library" and win_use_allocator_shim==1', {
1511               'dependencies': [
1512                 '<(DEPTH)/base/allocator/allocator.gyp:allocator',
1513               ],
1514             }],
1515           ],
1516         },
1517       ],
1518     }],
1519     ['(chromeos==1 or OS=="win" or OS=="android") and use_ozone==0', {
1520       'targets': [
1521           {
1522             'target_name': 'video_decode_accelerator_unittest',
1523             'type': '<(gtest_target_type)',
1524             'dependencies': [
1525               '../base/base.gyp:base',
1526               '../media/media.gyp:media',
1527               '../testing/gtest.gyp:gtest',
1528               '../ui/base/ui_base.gyp:ui_base',
1529               '../ui/gfx/gfx.gyp:gfx',
1530               '../ui/gfx/gfx.gyp:gfx_test_support',
1531               '../ui/gfx/gfx.gyp:gfx_geometry',
1532               '../ui/gl/gl.gyp:gl',
1533               'content.gyp:content',
1534             ],
1535             'include_dirs': [
1536               '<(DEPTH)/third_party/khronos',
1537             ],
1538             'sources': [
1539               'common/gpu/media/android_video_decode_accelerator_unittest.cc',
1540               'common/gpu/media/rendering_helper.h',
1541               'common/gpu/media/rendering_helper.cc',
1542               'common/gpu/media/video_accelerator_unittest_helpers.h',
1543               'common/gpu/media/video_decode_accelerator_unittest.cc',
1544             ],
1545             'conditions': [
1546               ['OS=="android"', {
1547                 'sources/': [
1548                   ['exclude', '^common/gpu/media/rendering_helper.h'],
1549                   ['exclude', '^common/gpu/media/rendering_helper.cc'],
1550                   ['exclude', '^common/gpu/media/video_decode_accelerator_unittest.cc'],
1551                 ],
1552                 'dependencies': [
1553                   '../media/media.gyp:player_android',
1554                   '../testing/gmock.gyp:gmock',
1555                   '../testing/android/native_test.gyp:native_test_native_code',
1556                   '../gpu/gpu.gyp:gpu_unittest_utils',
1557                 ],
1558               }, { # OS!="android"
1559                 'sources/': [
1560                   ['exclude', '^common/gpu/media/android_video_decode_accelerator_unittest.cc'],
1561                 ],
1562               }],
1563               ['OS=="win"', {
1564                 'dependencies': [
1565                   '<(angle_path)/src/angle.gyp:libEGL',
1566                   '<(angle_path)/src/angle.gyp:libGLESv2',
1567                 ],
1568               }],
1569               ['(OS=="win" and win_use_allocator_shim==1) or '
1570                '(os_posix == 1 and OS != "android" and '
1571                ' use_allocator!="none")', {
1572                 'dependencies': [
1573                   '../base/allocator/allocator.gyp:allocator',
1574                 ],
1575               }],
1576               ['target_arch != "arm" and (OS=="linux" or chromeos == 1)', {
1577                 'include_dirs': [
1578                   '<(DEPTH)/third_party/libva',
1579                 ],
1580               }],
1581               ['use_x11==1', {
1582                 'dependencies': [
1583                   '../build/linux/system.gyp:x11',  # Used by rendering_helper.cc
1584                   '../ui/gfx/x/gfx_x11.gyp:gfx_x11',
1585                 ],
1586               }],
1587             ],
1588             # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
1589             'msvs_disabled_warnings': [ 4267, ],
1590           },
1591         ]
1592     }],
1593     ['chromeos==1 and use_x11 == 1 and target_arch != "arm"', {
1594       'targets': [
1595           {
1596             'target_name': 'vaapi_h264_decoder_unittest',
1597             'type': '<(gtest_target_type)',
1598             'dependencies': [
1599               'content.gyp:content_common',
1600               '../base/base.gyp:base',
1601               '../build/linux/system.gyp:x11',
1602               '../media/media.gyp:media',
1603               '../testing/gtest.gyp:gtest',
1604               '../third_party/libyuv/libyuv.gyp:libyuv',
1605               '../ui/gfx/gfx.gyp:gfx_geometry',
1606             ],
1607             'sources': [
1608               'common/gpu/media/vaapi_h264_decoder_unittest.cc',
1609             ],
1610             'include_dirs': [
1611               '<(DEPTH)/third_party/libva',
1612             ],
1613           },
1614         ]
1615     }],
1616     ['chromeos==1 and (target_arch == "arm" or use_x11 == 1)', {
1617       'targets': [
1618         {
1619           'target_name': 'video_encode_accelerator_unittest',
1620           'type': 'executable',
1621           'dependencies': [
1622             '../base/base.gyp:base',
1623             '../media/media.gyp:media',
1624             '../media/media.gyp:media_test_support',
1625             '../testing/gtest.gyp:gtest',
1626             '../ui/base/ui_base.gyp:ui_base',
1627             '../ui/gfx/gfx.gyp:gfx',
1628             '../ui/gfx/gfx.gyp:gfx_geometry',
1629             '../ui/gfx/gfx.gyp:gfx_test_support',
1630             '../ui/gl/gl.gyp:gl',
1631             'content.gyp:content',
1632           ],
1633           'sources': [
1634             'common/gpu/media/video_accelerator_unittest_helpers.h',
1635             'common/gpu/media/video_encode_accelerator_unittest.cc',
1636           ],
1637           'include_dirs': [
1638             '<(DEPTH)/third_party/libva',
1639             '<(DEPTH)/third_party/libyuv',
1640           ],
1641           'conditions': [
1642             ['use_x11==1', {
1643               'dependencies': [
1644                 '../ui/gfx/x/gfx_x11.gyp:gfx_x11',
1645               ],
1646             }],
1647           ],
1648         },
1649       ]
1650     }],
1651     ['OS == "android"', {
1652       'targets': [
1653         {
1654           # TODO(GN)
1655           'target_name': 'content_gl_tests_apk',
1656           'type': 'none',
1657           'dependencies': [
1658             'content_gl_tests',
1659             'content_java_test_support',
1660           ],
1661           'variables': {
1662             'test_suite_name': 'content_gl_tests',
1663           },
1664           'includes': [
1665             '../build/apk_test.gypi',
1666           ],
1667         },
1668         {
1669           # TODO(GN)
1670           'target_name': 'content_unittests_apk',
1671           'type': 'none',
1672           'dependencies': [
1673             'content.gyp:content_java',
1674             'content_unittests',
1675           ],
1676           'conditions': [
1677             ['v8_use_external_startup_data==1', {
1678               'dependencies': [
1679                 '../v8/tools/gyp/v8.gyp:v8_external_snapshot',
1680               ],
1681               'copies': [
1682                 {
1683                 'destination': '<(asset_location)',
1684                   'files': [
1685                     '<(PRODUCT_DIR)/natives_blob.bin',
1686                     '<(PRODUCT_DIR)/snapshot_blob.bin',
1687                   ],
1688                 },
1689               ],
1690             }],
1691           ],
1692           'variables': {
1693             'test_suite_name': 'content_unittests',
1694             'conditions': [
1695               ['v8_use_external_startup_data==1', {
1696                 'asset_location': '<(PRODUCT_DIR)/content_unittests_apk/assets',
1697                 'additional_input_paths': [
1698                   '<(PRODUCT_DIR)/content_unittests_apk/assets/natives_blob.bin',
1699                   '<(PRODUCT_DIR)/content_unittests_apk/assets/snapshot_blob.bin',
1700                 ],
1701                 'inputs': [
1702                   '<(PRODUCT_DIR)/natives_blob.bin',
1703                   '<(PRODUCT_DIR)/snapshot_blob.bin',
1704                 ],
1705               }],
1706             ],
1707           },
1708           'includes': [ '../build/apk_test.gypi' ],
1709         },
1710         {
1711           # TODO(GN)
1712           'target_name': 'content_browsertests_manifest',
1713           'type': 'none',
1714           'variables': {
1715             'jinja_inputs': ['shell/android/browsertests_apk/AndroidManifest.xml.jinja2'],
1716             'jinja_output': '<(SHARED_INTERMEDIATE_DIR)/content_browsertests_manifest/AndroidManifest.xml',
1717           },
1718           'includes': [ '../build/android/jinja_template.gypi' ],
1719         },
1720         {
1721           # TODO(GN)
1722           'target_name': 'content_browsertests_apk',
1723           'type': 'none',
1724           'dependencies': [
1725             'content.gyp:content_icudata',
1726             'content.gyp:content_java',
1727             'content.gyp:content_v8_external_data',
1728             'content_browsertests',
1729             'content_java_test_support',
1730             'content_shell_java',
1731           ],
1732           'variables': {
1733             'apk_name': 'content_browsertests',
1734             'java_in_dir': 'shell/android/browsertests_apk',
1735             'android_manifest_path': '<(SHARED_INTERMEDIATE_DIR)/content_browsertests_manifest/AndroidManifest.xml',
1736             'resource_dir': 'shell/android/browsertests_apk/res',
1737             'native_lib_target': 'libcontent_browsertests',
1738             'additional_input_paths': ['<(PRODUCT_DIR)/content_shell/assets/content_shell.pak'],
1739             'asset_location': '<(PRODUCT_DIR)/content_shell/assets',
1740             'conditions': [
1741               ['icu_use_data_file_flag==1', {
1742                 'additional_input_paths': [
1743                   '<(PRODUCT_DIR)/icudtl.dat',
1744                 ],
1745               }],
1746               ['v8_use_external_startup_data==1', {
1747                 'additional_input_paths': [
1748                   '<(PRODUCT_DIR)/natives_blob.bin',
1749                   '<(PRODUCT_DIR)/snapshot_blob.bin',
1750                 ],
1751               }],
1752             ],
1753           },
1754           'includes': [ '../build/java_apk.gypi' ],
1755         },
1756         {
1757           # TODO(GN)
1758           'target_name': 'content_perftests_apk',
1759           'type': 'none',
1760           'dependencies': [
1761             'content.gyp:content_java',
1762             'content_perftests',
1763           ],
1764           'variables': {
1765             'test_suite_name': 'content_perftests',
1766           },
1767           'includes': [ '../build/apk_test.gypi' ],
1768         },
1769         {
1770           # GN: //content/shell/android:chromium_linker_test_manifest
1771           'target_name': 'chromium_linker_test_manifest',
1772           'type': 'none',
1773           'variables': {
1774             'jinja_inputs': ['shell/android/linker_test_apk/AndroidManifest.xml.jinja2'],
1775             'jinja_output': '<(SHARED_INTERMEDIATE_DIR)/chromium_linker_test_manifest/AndroidManifest.xml',
1776           },
1777           'includes': [ '../build/android/jinja_template.gypi' ],
1778         },
1779         {
1780           # GN: //content/shell/android:chromium_linker_test_apk
1781           'target_name': 'chromium_linker_test_apk',
1782           'type': 'none',
1783           'conditions': [
1784             ['target_arch != "x64" and target_arch != "arm64"', {
1785               'dependencies': [
1786                 'chromium_android_linker_test',
1787                 'content.gyp:content_icudata',
1788                 'content.gyp:content_java',
1789                 'content.gyp:content_v8_external_data',
1790                 'content_shell_java',
1791               ],
1792               'variables': {
1793                 'apk_name': 'ChromiumLinkerTest',
1794                 'android_manifest_path': '<(SHARED_INTERMEDIATE_DIR)/chromium_linker_test_manifest/AndroidManifest.xml',
1795                 'java_in_dir': 'shell/android/linker_test_apk',
1796                 'resource_dir': 'shell/android/linker_test_apk/res',
1797                 'native_lib_target': 'libchromium_android_linker_test',
1798                 'additional_input_paths': ['<(PRODUCT_DIR)/content_shell/assets/content_shell.pak'],
1799                 'asset_location': '<(PRODUCT_DIR)/content_shell/assets',
1800                 'use_chromium_linker': '1',
1801                 'enable_chromium_linker_tests': '1',
1802                 'conditions': [
1803                   ['icu_use_data_file_flag==1', {
1804                     'additional_input_paths': [
1805                       '<(PRODUCT_DIR)/icudtl.dat',
1806                     ],
1807                   }],
1808                   ['v8_use_external_startup_data==1', {
1809                     'additional_input_paths': [
1810                       '<(PRODUCT_DIR)/natives_blob.bin',
1811                       '<(PRODUCT_DIR)/snapshot_blob.bin',
1812                     ],
1813                   }],
1814                 ],
1815               },
1816               'includes': [ '../build/java_apk.gypi' ],
1817             },
1818            ],
1819           ],
1820         },
1821         {
1822           # GN: //content/shell/android:linker_test
1823           'target_name': 'chromium_android_linker_test',
1824           'type': 'shared_library',
1825           'defines!': ['CONTENT_IMPLEMENTATION'],
1826           'dependencies': [
1827             'chromium_android_linker_test_jni_headers',
1828             'content_shell_lib',
1829             # Required to include "content/public/browser/android/compositor.h"
1830             # in chromium_linker_test_android.cc :-(
1831             '../skia/skia.gyp:skia',
1832           ],
1833           'sources': [
1834             'shell/android/linker_test_apk/chromium_linker_test_android.cc',
1835             'shell/android/linker_test_apk/chromium_linker_test_linker_tests.cc',
1836           ],
1837         },
1838         {
1839           # GN: //content/shell/android:linker_test_jni_headers
1840           'target_name': 'chromium_android_linker_test_jni_headers',
1841           'type': 'none',
1842           'sources': [
1843             'shell/android/linker_test_apk/src/org/chromium/chromium_linker_test_apk/LinkerTests.java',
1844           ],
1845           'variables': {
1846             'jni_gen_package': 'content/shell',
1847           },
1848           'includes': [ '../build/jni_generator.gypi' ],
1849         },
1850         {
1851           # TODO(GN)
1852           'target_name': 'video_decode_accelerator_unittest_apk',
1853           'type': 'none',
1854           'dependencies': [
1855             'video_decode_accelerator_unittest',
1856           ],
1857           'variables': {
1858             'test_suite_name': 'video_decode_accelerator_unittest',
1859           },
1860           'includes': [ '../build/apk_test.gypi' ],
1861         },
1862         {
1863           # GN: //content/public/test/android:test_support_content_jni_headers
1864           'target_name': 'test_support_content_jni_headers',
1865           'type': 'none',
1866           'sources': [
1867             'public/test/android/javatests/src/org/chromium/content/browser/test/NestedSystemMessageHandler.java',
1868           ],
1869           'variables': {
1870             'jni_gen_package': 'content/public/test',
1871           },
1872           'includes': [ '../build/jni_generator.gypi' ],
1873         },
1874         {
1875           # GN: //content/public/test/android:content_java_test_support
1876           'target_name': 'content_java_test_support',
1877           'type': 'none',
1878           'dependencies': [
1879             '../base/base.gyp:base',
1880             '../base/base.gyp:base_java_test_support',
1881             'content.gyp:content_java',
1882           ],
1883           'variables': {
1884             'java_in_dir': '../content/public/test/android/javatests',
1885           },
1886           'includes': [ '../build/java.gypi' ],
1887         },
1888         {
1889           # GN: //content/shell/android:content_shell_test_apk
1890           #     and //content/public/android:content_javatests
1891           'target_name': 'content_shell_test_apk',
1892           'type': 'none',
1893           'dependencies': [
1894             'content_java_test_support',
1895             'content_shell_apk_java',
1896             'content.gyp:content_java',
1897             '../base/base.gyp:base_java',
1898             '../base/base.gyp:base_javatests',
1899             '../base/base.gyp:base_java_test_support',
1900             '../device/battery/battery.gyp:device_battery_javatests',
1901             '../media/media.gyp:media_java',
1902             '../media/media.gyp:media_test_support',
1903             '../mojo/public/mojo_public.gyp:mojo_public_test_interfaces',
1904             '../net/net.gyp:net_java',
1905             '../net/net.gyp:net_javatests',
1906             '../net/net.gyp:net_java_test_support',
1907           ],
1908           'variables': {
1909             'apk_name': 'ContentShellTest',
1910             'java_in_dir': 'shell/android/javatests',
1911             'resource_dir': 'shell/android/shell_apk/res',
1912             'additional_src_dirs': ['public/android/javatests/',],
1913             'is_test_apk': 1,
1914           },
1915           'includes': [ '../build/java_apk.gypi' ],
1916         },
1917       ],
1918     }],
1919     ['OS!="android" and OS!="ios" and OS!="linux"', {
1920       # npapi test plugin doesn't build on android or ios
1921       'targets': [
1922         {
1923           'target_name': 'npapi_test_plugin',
1924           'type': 'loadable_module',
1925           'variables': {
1926             'chromium_code': 1,
1927           },
1928           'mac_bundle': 1,
1929           'dependencies': [
1930             '<(DEPTH)/base/base.gyp:base',
1931             '<(DEPTH)/third_party/icu/icu.gyp:icuuc',
1932             '<(DEPTH)/third_party/npapi/npapi.gyp:npapi',
1933           ],
1934           'sources': [
1935             'test/plugin/npapi_constants.cc',
1936             'test/plugin/npapi_constants.h',
1937             'test/plugin/npapi_test.cc',
1938             'test/plugin/npapi_test.def',
1939             'test/plugin/npapi_test.rc',
1940             'test/plugin/plugin_arguments_test.cc',
1941             'test/plugin/plugin_arguments_test.h',
1942             'test/plugin/plugin_client.cc',
1943             'test/plugin/plugin_client.h',
1944             'test/plugin/plugin_create_instance_in_paint.cc',
1945             'test/plugin/plugin_create_instance_in_paint.h',
1946             'test/plugin/plugin_delete_plugin_in_deallocate_test.cc',
1947             'test/plugin/plugin_delete_plugin_in_deallocate_test.h',
1948             'test/plugin/plugin_delete_plugin_in_stream_test.cc',
1949             'test/plugin/plugin_delete_plugin_in_stream_test.h',
1950             'test/plugin/plugin_execute_stream_javascript.cc',
1951             'test/plugin/plugin_execute_stream_javascript.h',
1952             'test/plugin/plugin_get_javascript_url_test.cc',
1953             'test/plugin/plugin_get_javascript_url_test.h',
1954             'test/plugin/plugin_get_javascript_url2_test.cc',
1955             'test/plugin/plugin_get_javascript_url2_test.h',
1956             'test/plugin/plugin_geturl_test.cc',
1957             'test/plugin/plugin_geturl_test.h',
1958             'test/plugin/plugin_javascript_open_popup.cc',
1959             'test/plugin/plugin_javascript_open_popup.h',
1960             'test/plugin/plugin_new_fails_test.cc',
1961             'test/plugin/plugin_new_fails_test.h',
1962             'test/plugin/plugin_npobject_identity_test.cc',
1963             'test/plugin/plugin_npobject_identity_test.h',
1964             'test/plugin/plugin_npobject_lifetime_test.cc',
1965             'test/plugin/plugin_npobject_lifetime_test.h',
1966             'test/plugin/plugin_npobject_proxy_test.cc',
1967             'test/plugin/plugin_npobject_proxy_test.h',
1968             'test/plugin/plugin_request_read_test.h',
1969             'test/plugin/plugin_request_read_test.cc',
1970             'test/plugin/plugin_schedule_timer_test.cc',
1971             'test/plugin/plugin_schedule_timer_test.h',
1972             'test/plugin/plugin_setup_test.cc',
1973             'test/plugin/plugin_setup_test.h',
1974             'test/plugin/plugin_test.cc',
1975             'test/plugin/plugin_test.h',
1976             'test/plugin/plugin_test_factory.h',
1977             'test/plugin/plugin_thread_async_call_test.cc',
1978             'test/plugin/plugin_thread_async_call_test.h',
1979             'test/plugin/plugin_windowed_test.cc',
1980             'test/plugin/plugin_windowed_test.h',
1981             'test/plugin/plugin_private_test.cc',
1982             'test/plugin/plugin_private_test.h',
1983             'test/plugin/plugin_test_factory.cc',
1984             'test/plugin/plugin_window_size_test.cc',
1985             'test/plugin/plugin_window_size_test.h',
1986             'test/plugin/plugin_windowless_test.cc',
1987             'test/plugin/plugin_windowless_test.h',
1988             'test/plugin/resource.h',
1989           ],
1990           'include_dirs': [
1991             '../..',
1992           ],
1993           'xcode_settings': {
1994             'INFOPLIST_FILE': '<(DEPTH)/content/test/plugin/Info.plist',
1995           },
1996           'conditions': [
1997             ['OS!="win"', {
1998               'sources!': [
1999                 # TODO(port):  Port these.
2000                 # plugin_npobject_lifetime_test.cc has win32-isms
2001                 #   (HWND, CALLBACK).
2002                 'test/plugin/plugin_npobject_lifetime_test.cc',
2003                  # The window APIs are necessarily platform-specific.
2004                 'test/plugin/plugin_window_size_test.cc',
2005                 'test/plugin/plugin_windowed_test.cc',
2006                  # Seems windows specific.
2007                 'test/plugin/plugin_create_instance_in_paint.cc',
2008                 'test/plugin/plugin_create_instance_in_paint.h',
2009                  # windows-specific resources
2010                 'test/plugin/npapi_test.def',
2011                 'test/plugin/npapi_test.rc',
2012               ],
2013             }],
2014             ['OS=="mac"', {
2015               'product_extension': 'plugin',
2016               'link_settings': {
2017                 'libraries': [
2018                   '$(SDKROOT)/System/Library/Frameworks/Carbon.framework',
2019                 ],
2020               },
2021             }],
2022             ['os_posix == 1 and OS != "mac" and (target_arch == "x64" or target_arch == "arm")', {
2023               # Shared libraries need -fPIC on x86-64
2024               'cflags': ['-fPIC']
2025             }],
2026           ],
2027         },
2028         {
2029           'target_name': 'copy_npapi_test_plugin',
2030           'type': 'none',
2031           'dependencies': [
2032             'npapi_test_plugin',
2033           ],
2034           'conditions': [
2035             ['OS=="win"', {
2036               'copies': [
2037                 {
2038                   'destination': '<(PRODUCT_DIR)/plugins',
2039                   'files': ['<(PRODUCT_DIR)/npapi_test_plugin.dll'],
2040                 },
2041               ],
2042             }],
2043             ['OS=="mac"', {
2044               'copies': [
2045                 {
2046                   'destination': '<(PRODUCT_DIR)/plugins/',
2047                   'files': ['<(PRODUCT_DIR)/npapi_test_plugin.plugin'],
2048                 },
2049               ]
2050             }],
2051             ['os_posix == 1 and OS != "mac"', {
2052               'copies': [
2053                 {
2054                   'destination': '<(PRODUCT_DIR)/plugins',
2055                   'files': ['<(PRODUCT_DIR)/libnpapi_test_plugin.so'],
2056                 },
2057               ],
2058             }],
2059           ],
2060         },
2061       ],
2062     }],
2063   ],