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