IndexedDBFactory now ForceCloses databases.
[chromium-blink-merge.git] / content / content_tests.gypi
blob26f73df64ff7bc3dd11da7026384285142638493
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   'targets': [
7     {
8       'target_name': 'test_support_content',
9       'type': 'static_library',
10       'dependencies': [
11         '../net/net.gyp:net_test_support',
12         '../skia/skia.gyp:skia',
13         '../testing/gmock.gyp:gmock',
14         '../testing/gtest.gyp:gtest',
15         '../ui/events/events.gyp:dom4_keycode_converter',
16         '../ui/events/events.gyp:events_base',
17         '../ui/gfx/gfx.gyp:gfx',
18         '../ui/gfx/gfx.gyp:gfx_geometry',
19         '../ui/resources/ui_resources.gyp:ui_resources',
20         '../ui/ui.gyp:ui',
21         '../ui/ui_unittests.gyp:ui_test_support',
22         '../url/url.gyp:url_lib',
23         'browser/speech/proto/speech_proto.gyp:speech_proto',
24         'content.gyp:content_app_both',
25         'content.gyp:content_browser',
26         'content.gyp:content_common',
27       ],
28       'include_dirs': [
29         '..',
30       ],
31       'sources': [
32         'public/test/browser_test_base.cc',
33         'public/test/browser_test_base.h',
34         'public/test/browser_test.h',
35         'public/test/browser_test_utils.cc',
36         'public/test/browser_test_utils.h',
37         'public/test/content_test_suite_base.cc',
38         'public/test/content_test_suite_base.h',
39         'public/test/download_test_observer.cc',
40         'public/test/download_test_observer.h',
41         'public/test/fake_speech_recognition_manager.cc',
42         'public/test/fake_speech_recognition_manager.h',
43         'public/test/mock_download_item.cc',
44         'public/test/mock_download_item.h',
45         'public/test/mock_download_manager.cc',
46         'public/test/mock_download_manager.h',
47         'public/test/mock_notification_observer.cc',
48         'public/test/mock_notification_observer.h',
49         'public/test/mock_render_process_host.cc',
50         'public/test/mock_render_process_host.h',
51         'public/test/mock_render_thread.cc',
52         'public/test/mock_render_thread.h',
53         'public/test/mock_resource_context.cc',
54         'public/test/mock_resource_context.h',
55         'public/test/nested_message_pump_android.cc',
56         'public/test/nested_message_pump_android.h',
57         'public/test/render_view_test.cc',
58         'public/test/render_view_test.h',
59         'public/test/render_widget_test.cc',
60         'public/test/render_widget_test.h',
61         'public/test/sandbox_file_system_test_helper.cc',
62         'public/test/sandbox_file_system_test_helper.h',
63         'public/test/test_browser_context.cc',
64         'public/test/test_browser_context.h',
65         'public/test/test_browser_thread.cc',
66         'public/test/test_browser_thread.h',
67         'public/test/test_browser_thread_bundle.cc',
68         'public/test/test_browser_thread_bundle.h',
69         'public/test/test_content_client_initializer.cc',
70         'public/test/test_content_client_initializer.h',
71         'public/test/test_file_error_injector.cc',
72         'public/test/test_file_error_injector.h',
73         'public/test/test_file_system_backend.cc',
74         'public/test/test_file_system_backend.h',
75         'public/test/test_file_system_context.cc',
76         'public/test/test_file_system_context.h',
77         'public/test/test_file_system_options.cc',
78         'public/test/test_file_system_options.h',
79         'public/test/test_launcher.cc',
80         'public/test/test_launcher.h',
81         'public/test/test_navigation_observer.cc',
82         'public/test/test_navigation_observer.h',
83         'public/test/test_notification_tracker.cc',
84         'public/test/test_notification_tracker.h',
85         'public/test/test_renderer_host.cc',
86         'public/test/test_renderer_host.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_tester.cc',
92         'public/test/web_contents_tester.h',
93         'app/startup_helper_win.cc',
94         # TODO(phajdan.jr): All of those files should live in content/test (if
95         # they're only used by content) or content/public/test (if they're used
96         # by other embedders).
97         'browser/download/mock_download_file.cc',
98         'browser/download/mock_download_file.h',
99         'browser/geolocation/fake_access_token_store.cc',
100         'browser/geolocation/fake_access_token_store.h',
101         'browser/geolocation/mock_location_arbitrator.cc',
102         'browser/geolocation/mock_location_arbitrator.h',
103         'browser/geolocation/mock_location_provider.cc',
104         'browser/geolocation/mock_location_provider.h',
105         'browser/renderer_host/compositing_iosurface_shader_programs_mac.cc',
106         'browser/renderer_host/compositing_iosurface_shader_programs_mac.h',
107         'browser/renderer_host/compositing_iosurface_transformer_mac.cc',
108         'browser/renderer_host/compositing_iosurface_transformer_mac.h',
109         'browser/renderer_host/media/mock_media_observer.cc',
110         'browser/renderer_host/media/mock_media_observer.h',
111         'gpu/gpu_idirect3d9_mock_win.cc',
112         'gpu/gpu_idirect3d9_mock_win.h',
113         'test/content_test_suite.cc',
114         'test/content_test_suite.h',
115         'test/mock_google_streaming_server.cc',
116         'test/mock_google_streaming_server.h',
117         'test/mock_keyboard.cc',
118         'test/mock_keyboard.h',
119         'test/mock_keyboard_driver_win.cc',
120         'test/mock_keyboard_driver_win.h',
121         'test/mock_render_process.cc',
122         'test/mock_render_process.h',
123         'test/mock_webclipboard_impl.cc',
124         'test/mock_webclipboard_impl.h',
125         'test/mock_webframeclient.h',
126         'test/mock_weburlloader.cc',
127         'test/mock_weburlloader.h',
128         'test/net/url_request_abort_on_end_job.cc',
129         'test/net/url_request_abort_on_end_job.h',
130         'test/net/url_request_failed_job.cc',
131         'test/net/url_request_failed_job.h',
132         'test/net/url_request_mock_http_job.cc',
133         'test/net/url_request_mock_http_job.h',
134         'test/net/url_request_prepackaged_interceptor.cc',
135         'test/net/url_request_prepackaged_interceptor.h',
136         'test/net/url_request_slow_download_job.cc',
137         'test/net/url_request_slow_download_job.h',
138         'test/ppapi_unittest.cc',
139         'test/ppapi_unittest.h',
140         'test/test_backing_store.cc',
141         'test/test_backing_store.h',
142         'test/test_content_browser_client.cc',
143         'test/test_content_browser_client.h',
144         'test/test_content_client.cc',
145         'test/test_content_client.h',
146         'test/test_media_stream_client.cc',
147         'test/test_media_stream_client.h',
148         'test/test_render_frame_host.cc',
149         'test/test_render_frame_host.h',
150         'test/test_render_frame_host_factory.cc',
151         'test/test_render_frame_host_factory.h',
152         'test/test_render_view_host.cc',
153         'test/test_render_view_host.h',
154         'test/test_render_view_host_factory.cc',
155         'test/test_render_view_host_factory.h',
156         'test/test_video_frame_provider.cc',
157         'test/test_video_frame_provider.h',
158         'test/test_web_contents.cc',
159         'test/test_web_contents.h',
160         'test/test_web_contents_view.cc',
161         'test/test_web_contents_view.h',
162         'test/test_webkit_platform_support.cc',
163         'test/test_webkit_platform_support.h',
164         'test/web_gesture_curve_mock.cc',
165         'test/web_gesture_curve_mock.h',
166         'test/web_layer_tree_view_impl_for_testing.cc',
167         'test/web_layer_tree_view_impl_for_testing.h',
168         'test/webkit_support.cc',
169         'test/webkit_support.h',
170         'test/webkit_support_glue.cc',
171         'test/weburl_loader_mock.cc',
172         'test/weburl_loader_mock.h',
173         'test/weburl_loader_mock_factory.cc',
174         'test/weburl_loader_mock_factory.h',
176         # TODO(kinuko): Those files should be moved to content/public/test.
177         '../webkit/browser/appcache/appcache_test_helper.cc',
178         '../webkit/browser/appcache/appcache_test_helper.h',
179         '../webkit/browser/fileapi/async_file_test_helper.cc',
180         '../webkit/browser/fileapi/async_file_test_helper.h',
181       ],
182       'conditions': [
183         ['OS == "ios"', {
184           'sources/': [
185             # iOS only needs a small portion of content; exclude all the
186             # implementation, and re-include what is used.
187             ['exclude', '\\.(cc|mm)$'],
188             ['include', '_ios\\.(cc|mm)$'],
189             ['include', '^public/test/content_test_suite_base\\.cc$'],
190             ['include', '^public/test/mock_notification_observer\\.cc$'],
191             ['include', '^public/test/mock_resource_context\\.cc$'],
192             ['include', '^public/test/test_browser_thread\\.cc$'],
193             ['include', '^public/test/test_content_client_initializer\\.cc$'],
194             ['include', '^public/test/test_notification_tracker\\.cc$'],
195             ['include', '^public/test/test_utils\\.cc$'],
196             ['include', '^public/test/unittest_test_suite\\.cc$'],
197             ['include', '^test/content_test_suite\\.cc$'],
198             ['include', '^test/test_content_browser_client\\.cc$'],
199             ['include', '^test/test_content_client\\.cc$'],
200           ],
201         }, {  # OS != "ios"
202           'conditions': [
203             ['OS=="mac"', {
204               'copies': [{
205                 'destination': '<(SHARED_INTERMEDIATE_DIR)/webkit',
206                 'files': [
207                   'shell/resources/missingImage.png',
208                   'shell/resources/textAreaResizeCorner.png',
209                 ],
210               }],
211             }],
212           ],
213           'dependencies': [
214             'content.gyp:content_child',
215             'content.gyp:content_gpu',
216             'content.gyp:content_ppapi_plugin',
217             'content.gyp:content_renderer',
218             'content.gyp:content_utility',
219             'content.gyp:content_worker',
220             '../cc/cc_tests.gyp:cc_test_support',
221             '../media/media.gyp:media',
222             '../ppapi/ppapi_internal.gyp:ppapi_host',
223             '../ppapi/ppapi_internal.gyp:ppapi_proxy',
224             '../ppapi/ppapi_internal.gyp:ppapi_shared',
225             '../ppapi/ppapi_internal.gyp:ppapi_unittest_shared',
226             '../third_party/WebKit/public/blink.gyp:blink',
227             '../ui/surface/surface.gyp:surface',
228             '../webkit/child/webkit_child.gyp:webkit_child',
229             '../webkit/common/gpu/webkit_gpu.gyp:webkit_gpu',
230             '../webkit/common/user_agent/webkit_user_agent.gyp:user_agent',
231             '../webkit/glue/webkit_glue.gyp:glue',
232             '../webkit/renderer/compositor_bindings/compositor_bindings.gyp:webkit_compositor_support',
233             '../webkit/renderer/webkit_renderer.gyp:webkit_renderer',
234             '../webkit/storage_browser.gyp:webkit_storage_browser',
235             '../webkit/storage_common.gyp:webkit_storage_common',
236           ],
237           'export_dependent_settings': [
238             '../third_party/WebKit/public/blink.gyp:blink',
239           ],
240         }],
241         ['OS == "win" or toolkit_uses_gtk == 1', {
242           'dependencies': [
243             '../sandbox/sandbox.gyp:sandbox',
244           ],
245         }],
246         ['enable_webrtc==1', {
247           'sources': [
248             'renderer/media/mock_media_stream_dependency_factory.cc',
249             'renderer/media/mock_media_stream_dependency_factory.h',
250             'renderer/media/mock_media_stream_dispatcher.cc',
251             'renderer/media/mock_media_stream_dispatcher.h',
252             'renderer/media/mock_media_stream_registry.cc',
253             'renderer/media/mock_media_stream_registry.h',
254             'renderer/media/mock_peer_connection_impl.cc',
255             'renderer/media/mock_peer_connection_impl.h',
256             'renderer/media/mock_web_rtc_peer_connection_handler_client.cc',
257             'renderer/media/mock_web_rtc_peer_connection_handler_client.h',
258             'test/webrtc_audio_device_test.cc',
259             'test/webrtc_audio_device_test.h',
260           ],
261           'dependencies': [
262             '../third_party/libjingle/libjingle.gyp:libjingle_webrtc',
263             '../third_party/libjingle/libjingle.gyp:libpeerconnection',
264             '../third_party/webrtc/modules/modules.gyp:audio_device',
265             '../third_party/webrtc/modules/modules.gyp:video_capture_module',
266           ],
267         }],
268         ['toolkit_uses_gtk == 1', {
269           'dependencies': [
270             '../build/linux/system.gyp:gtk',
271           ],
272         }],
273         ['use_glib == 1', {
274           'dependencies': [
275             '../build/linux/system.gyp:glib',
276           ],
277         }],
278         ['use_aura==1', {
279           'dependencies': [
280             '../ui/aura/aura.gyp:aura_test_support',
281             '../ui/compositor/compositor.gyp:compositor',
282             '../ui/resources/ui_resources.gyp:ui_test_pak',
283           ],
284         }],
285         ['OS=="win"', {
286           'dependencies': [
287             '../third_party/iaccessible2/iaccessible2.gyp:iaccessible2',
288           ],
289         }],
290         ['OS!="android" and OS!="ios"', {
291           'dependencies': [
292             '../third_party/libvpx/libvpx.gyp:libvpx',
293           ],
294         }],
295         ['OS=="android"', {
296           'dependencies': [
297             '../ui/shell_dialogs/shell_dialogs.gyp:shell_dialogs',
298             'test_support_content_jni_headers',
299           ],
300         }],
301       ],
302     },
303     {
304       'target_name': 'content_unittests',
305       'type': '<(gtest_target_type)',
306       'dependencies': [
307         'content.gyp:content_browser',
308         'content.gyp:content_common',
309         'test_support_content',
310         'browser/speech/proto/speech_proto.gyp:speech_proto',
311         '../base/base.gyp:test_support_base',
312         '../crypto/crypto.gyp:crypto',
313         '../net/net.gyp:net_test_support',
314         '../skia/skia.gyp:skia',
315         '../sql/sql.gyp:sql',
316         '../sql/sql.gyp:test_support_sql',
317         '../testing/gmock.gyp:gmock',
318         '../testing/gtest.gyp:gtest',
319         '../ui/accessibility/accessibility.gyp:accessibility',
320         '../ui/gfx/gfx.gyp:gfx',
321         '../ui/gfx/gfx.gyp:gfx_geometry',
322         '../ui/ui.gyp:ui',
323         '../webkit/common/user_agent/webkit_user_agent.gyp:user_agent',
324       ],
325       'include_dirs': [
326         '..',
327         '<(SHARED_INTERMEDIATE_DIR)',  # Needed by key_systems_unittest.cc.
328       ],
329       'sources': [
330         'browser/accessibility/browser_accessibility_mac_unittest.mm',
331         'browser/accessibility/browser_accessibility_manager_unittest.cc',
332         'browser/accessibility/browser_accessibility_win_unittest.cc',
333         'browser/appcache/chrome_appcache_service_unittest.cc',
334         'browser/aura/software_browser_compositor_output_surface_unittest.cc',
335         'browser/aura/software_output_device_ozone_unittest.cc',
336         'browser/browser_thread_unittest.cc',
337         'browser/browser_url_handler_impl_unittest.cc',
338         'browser/byte_stream_unittest.cc',
339         'browser/child_process_security_policy_unittest.cc',
340         'browser/device_orientation/data_fetcher_impl_android_unittest.cc',
341         'browser/device_orientation/data_fetcher_shared_memory_base_unittest.cc',
342         'browser/devtools/devtools_http_handler_unittest.cc',
343         'browser/devtools/devtools_manager_unittest.cc',
344         'browser/dom_storage/dom_storage_area_unittest.cc',
345         'browser/dom_storage/dom_storage_context_impl_unittest.cc',
346         'browser/dom_storage/dom_storage_database_unittest.cc',
347         'browser/dom_storage/session_storage_database_unittest.cc',
348         'browser/download/base_file_unittest.cc',
349         'browser/download/download_file_unittest.cc',
350         'browser/download/download_item_impl_unittest.cc',
351         'browser/download/download_manager_impl_unittest.cc',
352         'browser/download/file_metadata_unittest_linux.cc',
353         'browser/download/rate_estimator_unittest.cc',
354         'browser/download/save_package_unittest.cc',
355         'browser/fileapi/blob_url_request_job_unittest.cc',
356         'browser/fileapi/copy_or_move_file_validator_unittest.cc',
357         'browser/fileapi/copy_or_move_operation_delegate_unittest.cc',
358         'browser/fileapi/dragged_file_util_unittest.cc',
359         'browser/fileapi/file_system_context_unittest.cc',
360         'browser/fileapi/file_system_dir_url_request_job_unittest.cc',
361         'browser/fileapi/file_system_file_stream_reader_unittest.cc',
362         'browser/fileapi/file_system_operation_impl_unittest.cc',
363         'browser/fileapi/file_system_operation_impl_write_unittest.cc',
364         'browser/fileapi/file_system_operation_runner_unittest.cc',
365         'browser/fileapi/file_system_quota_client_unittest.cc',
366         'browser/fileapi/file_system_url_request_job_unittest.cc',
367         'browser/fileapi/file_writer_delegate_unittest.cc',
368         'browser/fileapi/fileapi_message_filter_unittest.cc',
369         'browser/fileapi/local_file_util_unittest.cc',
370         'browser/fileapi/obfuscated_file_util_unittest.cc',
371         'browser/fileapi/plugin_private_file_system_backend_unittest.cc',
372         'browser/fileapi/recursive_operation_delegate_unittest.cc',
373         'browser/fileapi/sandbox_file_system_backend_delegate_unittest.cc',
374         'browser/fileapi/sandbox_file_system_backend_unittest.cc',
375         'browser/fileapi/transient_file_util_unittest.cc',
376         'browser/fileapi/upload_file_system_file_element_reader_unittest.cc',
377         'browser/frame_host/frame_tree_unittest.cc',
378         'browser/frame_host/navigation_controller_impl_unittest.cc',
379         'browser/frame_host/navigation_entry_impl_unittest.cc',
380         'browser/frame_host/render_frame_host_manager_unittest.cc',
381         'browser/frame_host/render_widget_host_view_child_frame_unittest.cc',
382         'browser/frame_host/render_widget_host_view_guest_unittest.cc',
383         'browser/gamepad/gamepad_provider_unittest.cc',
384         'browser/gamepad/gamepad_test_helpers.cc',
385         'browser/gamepad/gamepad_test_helpers.h',
386         'browser/geolocation/geolocation_provider_unittest.cc',
387         'browser/geolocation/location_arbitrator_impl_unittest.cc',
388         'browser/geolocation/network_location_provider_unittest.cc',
389         'browser/geolocation/wifi_data_provider_chromeos_unittest.cc',
390         'browser/geolocation/wifi_data_provider_common_unittest.cc',
391         'browser/geolocation/wifi_data_provider_linux_unittest.cc',
392         'browser/geolocation/wifi_data_provider_unittest_win.cc',
393         'browser/gpu/shader_disk_cache_unittest.cc',
394         'browser/host_zoom_map_impl_unittest.cc',
395         'browser/indexed_db/indexed_db_backing_store_unittest.cc',
396         'browser/indexed_db/indexed_db_cleanup_on_io_error_unittest.cc',
397         'browser/indexed_db/indexed_db_database_unittest.cc',
398         'browser/indexed_db/indexed_db_factory_unittest.cc',
399         'browser/indexed_db/indexed_db_fake_backing_store.cc',
400         'browser/indexed_db/indexed_db_fake_backing_store.h',
401         'browser/indexed_db/indexed_db_leveldb_coding_unittest.cc',
402         'browser/indexed_db/indexed_db_quota_client_unittest.cc',
403         'browser/indexed_db/indexed_db_transaction_unittest.cc',
404         'browser/indexed_db/indexed_db_unittest.cc',
405         'browser/indexed_db/mock_indexed_db_callbacks.cc',
406         'browser/indexed_db/mock_indexed_db_callbacks.h',
407         'browser/indexed_db/mock_indexed_db_database_callbacks.cc',
408         'browser/indexed_db/mock_indexed_db_database_callbacks.h',
409         'browser/indexed_db/leveldb/leveldb_unittest.cc',
410         'browser/indexed_db/list_set_unittest.cc',
411         'browser/loader/offline_policy_unittest.cc',
412         'browser/loader/resource_buffer_unittest.cc',
413         'browser/loader/resource_dispatcher_host_unittest.cc',
414         'browser/loader/resource_loader_unittest.cc',
415         'browser/loader/resource_scheduler_unittest.cc',
416         'browser/loader/upload_data_stream_builder_unittest.cc',
417         'browser/mach_broker_mac_unittest.cc',
418         'browser/media/media_internals_unittest.cc',
419         'browser/media/webrtc_identity_store_unittest.cc',
420         'browser/net/sqlite_persistent_cookie_store_unittest.cc',
421         'browser/notification_service_impl_unittest.cc',
422         'browser/plugin_loader_posix_unittest.cc',
423         'browser/power_monitor_message_broadcaster_unittest.cc',
424         'browser/renderer_host/compositing_iosurface_transformer_mac_unittest.cc',
425         'browser/renderer_host/gtk_key_bindings_handler_unittest.cc',
426         'browser/renderer_host/input/gesture_event_filter_unittest.cc',
427         'browser/renderer_host/input/input_router_impl_unittest.cc',
428         'browser/renderer_host/input/mock_input_ack_handler.cc',
429         'browser/renderer_host/input/mock_input_ack_handler.h',
430         'browser/renderer_host/input/mock_input_router_client.cc',
431         'browser/renderer_host/input/mock_input_router_client.h',
432         'browser/renderer_host/input/synthetic_gesture_controller_unittest.cc',
433         'browser/renderer_host/input/tap_suppression_controller_unittest.cc',
434         'browser/renderer_host/input/touch_event_queue_unittest.cc',
435         'browser/renderer_host/input/touch_action_filter_unittest.cc',
436         'browser/renderer_host/media/audio_input_device_manager_unittest.cc',
437         'browser/renderer_host/media/audio_mirroring_manager_unittest.cc',
438         'browser/renderer_host/media/audio_renderer_host_unittest.cc',
439         'browser/renderer_host/media/device_request_message_filter_unittest.cc',
440         'browser/renderer_host/media/media_stream_dispatcher_host_unittest.cc',
441         'browser/renderer_host/media/media_stream_manager_unittest.cc',
442         'browser/renderer_host/media/media_stream_ui_proxy_unittest.cc',
443         'browser/renderer_host/media/midi_host_unittest.cc',
444         'browser/renderer_host/media/video_capture_buffer_pool_unittest.cc',
445         'browser/renderer_host/media/video_capture_controller_unittest.cc',
446         'browser/renderer_host/media/video_capture_host_unittest.cc',
447         'browser/renderer_host/media/video_capture_manager_unittest.cc',
448         'browser/renderer_host/media/video_capture_oracle_unittest.cc',
449         'browser/renderer_host/media/web_contents_audio_input_stream_unittest.cc',
450         'browser/renderer_host/media/web_contents_video_capture_device_unittest.cc',
451         'browser/renderer_host/pepper/browser_ppapi_host_test.cc',
452         'browser/renderer_host/pepper/browser_ppapi_host_test.h',
453         'browser/renderer_host/pepper/pepper_file_system_browser_host_unittest.cc',
454         'browser/renderer_host/pepper/pepper_gamepad_host_unittest.cc',
455         'browser/renderer_host/pepper/pepper_printing_host_unittest.cc',
456         'browser/renderer_host/pepper/quota_reservation_unittest.cc',
457         'browser/renderer_host/render_process_host_unittest.cc',
458         'browser/renderer_host/render_view_host_unittest.cc',
459         'browser/renderer_host/render_widget_host_unittest.cc',
460         'browser/renderer_host/render_widget_host_view_aura_unittest.cc',
461         'browser/renderer_host/render_widget_host_view_mac_editcommand_helper_unittest.mm',
462         'browser/renderer_host/render_widget_host_view_mac_unittest.mm',
463         'browser/renderer_host/software_frame_manager_unittest.cc',
464         'browser/renderer_host/text_input_client_mac_unittest.mm',
465         'browser/renderer_host/web_input_event_aura_unittest.cc',
466         'browser/renderer_host/input/web_input_event_builders_gtk_unittest.cc',
467         'browser/renderer_host/websocket_dispatcher_host_unittest.cc',
468         'browser/resolve_proxy_msg_helper_unittest.cc',
469         'browser/service_worker/embedded_worker_instance_unittest.cc',
470         'browser/service_worker/service_worker_context_unittest.cc',
471         'browser/service_worker/service_worker_dispatcher_host_unittest.cc',
472         'browser/service_worker/service_worker_registration_unittest.cc',
473         'browser/service_worker/service_worker_storage_unittest.cc',
474         'browser/service_worker/service_worker_job_unittest.cc',
475         'browser/site_instance_impl_unittest.cc',
476         'browser/speech/chunked_byte_buffer_unittest.cc',
477         'browser/speech/endpointer/endpointer_unittest.cc',
478         'browser/speech/google_one_shot_remote_engine_unittest.cc',
479         'browser/speech/google_streaming_remote_engine_unittest.cc',
480         'browser/speech/speech_recognizer_impl_unittest.cc',
481         'browser/ssl/ssl_host_state_unittest.cc',
482         'browser/startup_task_runner_unittest.cc',
483         'browser/storage_partition_impl_map_unittest.cc',
484         'browser/storage_partition_impl_unittest.cc',
485         'browser/streams/stream_unittest.cc',
486         'browser/streams/stream_url_request_job_unittest.cc',
487         'browser/system_message_window_win_unittest.cc',
488         'browser/web_contents/aura/window_slider_unittest.cc',
489         'browser/web_contents/web_contents_delegate_unittest.cc',
490         'browser/web_contents/web_contents_impl_unittest.cc',
491         'browser/web_contents/web_contents_user_data_unittest.cc',
492         'browser/web_contents/web_contents_view_mac_unittest.mm',
493         'browser/web_contents/web_drag_dest_mac_unittest.mm',
494         'browser/web_contents/web_drag_source_mac_unittest.mm',
495         'browser/webui/web_ui_data_source_unittest.cc',
496         'browser/webui/web_ui_message_handler_unittest.cc',
497         'child/fileapi/webfilewriter_base_unittest.cc',
498         'child/indexed_db/indexed_db_dispatcher_unittest.cc',
499         'child/indexed_db/webidbcursor_impl_unittest.cc',
500         'child/npapi/plugin_lib_unittest.cc',
501         'child/power_monitor_broadcast_source_unittest.cc',
502         'child/resource_dispatcher_unittest.cc',
503         'child/site_isolation_policy_unittest.cc',
504         'common/android/address_parser_unittest.cc',
505         'common/cc_messages_unittest.cc',
506         'common/common_param_traits_unittest.cc',
507         'common/dom_storage/dom_storage_map_unittest.cc',
508         'common/gpu/gpu_memory_manager_unittest.cc',
509         'common/indexed_db/indexed_db_key_unittest.cc',
510         'common/input/input_param_traits_unittest.cc',
511         'common/inter_process_time_ticks_converter_unittest.cc',
512         'common/mac/attributed_string_coder_unittest.mm',
513         'common/mac/font_descriptor_unittest.mm',
514         'common/page_state_serialization_unittest.cc',
515         'common/page_zoom_unittest.cc',
516         'common/plugin_list_unittest.cc',
517         'common/sandbox_mac_diraccess_unittest.mm',
518         'common/sandbox_mac_fontloading_unittest.mm',
519         'common/sandbox_mac_system_access_unittest.mm',
520         'common/sandbox_mac_unittest_helper.h',
521         'common/sandbox_mac_unittest_helper.mm',
522         'common/webplugininfo_unittest.cc',
523         'renderer/active_notification_tracker_unittest.cc',
524         'renderer/android/email_detector_unittest.cc',
525         'renderer/android/phone_number_detector_unittest.cc',
526         'renderer/bmp_image_decoder_unittest.cc',
527         'renderer/device_orientation/device_motion_event_pump_unittest.cc',
528         'renderer/device_orientation/device_orientation_event_pump_unittest.cc',
529         'renderer/disambiguation_popup_helper_unittest.cc',
530         'renderer/dom_storage/dom_storage_cached_area_unittest.cc',
531         'renderer/ico_image_decoder_unittest.cc',
532         'renderer/input/input_event_filter_unittest.cc',
533         'renderer/input/input_handler_proxy_unittest.cc',
534         'renderer/media/android/media_info_loader_unittest.cc',
535         'renderer/media/audio_message_filter_unittest.cc',
536         'renderer/media/audio_renderer_mixer_manager_unittest.cc',
537         'renderer/media/buffered_data_source_unittest.cc',
538         'renderer/media/buffered_resource_loader_unittest.cc',
539         'renderer/media/cache_util_unittest.cc',
540         'renderer/media/crypto/key_systems_unittest.cc',
541         'renderer/media/media_stream_video_source_unittest.cc',
542         'renderer/media/test_response_generator.cc',
543         'renderer/media/test_response_generator.h',
544         'renderer/media/video_capture_impl_manager_unittest.cc',
545         'renderer/media/video_capture_impl_unittest.cc',
546         'renderer/media/video_capture_message_filter_unittest.cc',
547         'renderer/media/video_destination_handler_unittest.cc',
548         'renderer/media/webaudiosourceprovider_impl_unittest.cc',
549         'renderer/npapi/webplugin_impl_unittest.cc',
550         'renderer/paint_aggregator_unittest.cc',
551         'renderer/pepper/host_var_tracker_unittest.cc',
552         'renderer/pepper/mock_resource.h',
553         'renderer/pepper/pepper_broker_unittest.cc',
554         'renderer/pepper/v8_var_converter_unittest.cc',
555         'renderer/render_thread_impl_unittest.cc',
556         'renderer/render_view_impl_unittest.cc',
557         'renderer/render_widget_unittest.cc',
558         'renderer/skia_benchmarking_extension_unittest.cc',
559         'renderer/v8_value_converter_impl_unittest.cc',
560         'renderer/webcrypto/webcrypto_impl_unittest.cc',
561         'test/image_decoder_test.cc',
562         'test/image_decoder_test.h',
563         'test/run_all_unittests.cc',
564         '../webkit/browser/appcache/appcache_database_unittest.cc',
565         '../webkit/browser/appcache/appcache_group_unittest.cc',
566         '../webkit/browser/appcache/appcache_host_unittest.cc',
567         '../webkit/browser/appcache/appcache_quota_client_unittest.cc',
568         '../webkit/browser/appcache/appcache_request_handler_unittest.cc',
569         '../webkit/browser/appcache/appcache_response_unittest.cc',
570         '../webkit/browser/appcache/appcache_service_unittest.cc',
571         '../webkit/browser/appcache/appcache_storage_impl_unittest.cc',
572         '../webkit/browser/appcache/appcache_storage_unittest.cc',
573         '../webkit/browser/appcache/appcache_unittest.cc',
574         '../webkit/browser/appcache/appcache_update_job_unittest.cc',
575         '../webkit/browser/appcache/appcache_url_request_job_unittest.cc',
576         '../webkit/browser/appcache/manifest_parser_unittest.cc',
577         '../webkit/browser/appcache/mock_appcache_policy.cc',
578         '../webkit/browser/appcache/mock_appcache_policy.h',
579         '../webkit/browser/appcache/mock_appcache_service.cc',
580         '../webkit/browser/appcache/mock_appcache_service.h',
581         '../webkit/browser/appcache/mock_appcache_storage.cc',
582         '../webkit/browser/appcache/mock_appcache_storage.h',
583         '../webkit/browser/appcache/mock_appcache_storage_unittest.cc',
584         '../webkit/browser/blob/blob_storage_context_unittest.cc',
585         '../webkit/browser/blob/local_file_stream_reader_unittest.cc',
586         '../webkit/browser/blob/mock_blob_url_request_context.cc',
587         '../webkit/browser/blob/mock_blob_url_request_context.h',
588         '../webkit/browser/database/database_quota_client_unittest.cc',
589         '../webkit/browser/database/database_tracker_unittest.cc',
590         '../webkit/browser/database/database_util_unittest.cc',
591         '../webkit/browser/database/databases_table_unittest.cc',
592         '../webkit/browser/fileapi/external_mount_points_unittest.cc',
593         '../webkit/browser/fileapi/file_system_url_unittest.cc',
594         '../webkit/browser/fileapi/file_system_usage_cache_unittest.cc',
595         '../webkit/browser/fileapi/isolated_context_unittest.cc',
596         '../webkit/browser/fileapi/local_file_stream_writer_unittest.cc',
597         '../webkit/browser/fileapi/mock_file_change_observer.cc',
598         '../webkit/browser/fileapi/mock_file_change_observer.h',
599         '../webkit/browser/fileapi/native_file_util_unittest.cc',
600         '../webkit/browser/fileapi/quota/quota_backend_impl_unittest.cc',
601         '../webkit/browser/fileapi/quota/quota_reservation_manager_unittest.cc',
602         '../webkit/browser/fileapi/sandbox_database_test_helper.cc',
603         '../webkit/browser/fileapi/sandbox_database_test_helper.h',
604         '../webkit/browser/fileapi/sandbox_directory_database_unittest.cc',
605         '../webkit/browser/fileapi/sandbox_isolated_origin_database_unittest.cc',
606         '../webkit/browser/fileapi/sandbox_origin_database_unittest.cc',
607         '../webkit/browser/fileapi/sandbox_prioritized_origin_database_unittest.cc',
608         '../webkit/browser/fileapi/test_file_set.cc',
609         '../webkit/browser/fileapi/test_file_set.h',
610         '../webkit/browser/fileapi/timed_task_helper_unittest.cc',
611         '../webkit/child/multipart_response_delegate_unittest.cc',
612         '../webkit/child/touch_fling_gesture_curve_unittest.cc',
613         '../webkit/child/worker_task_runner_unittest.cc',
614         '../webkit/common/blob/shareable_file_reference_unittest.cc',
615         '../webkit/common/cursors/webcursor_unittest.cc',
616         '../webkit/common/database/database_connections_unittest.cc',
617         '../webkit/common/database/database_identifier_unittest.cc',
618         '../webkit/common/fileapi/file_system_util_unittest.cc',
619         '../webkit/glue/webkit_glue_unittest.cc',
620         '../webkit/common/user_agent/user_agent_unittest.cc',
621         '../webkit/browser/quota/mock_quota_manager.cc',
622         '../webkit/browser/quota/mock_quota_manager.h',
623         '../webkit/browser/quota/mock_quota_manager_unittest.cc',
624         '../webkit/browser/quota/mock_special_storage_policy.cc',
625         '../webkit/browser/quota/mock_special_storage_policy.h',
626         '../webkit/browser/quota/mock_storage_client.cc',
627         '../webkit/browser/quota/mock_storage_client.h',
628         '../webkit/browser/quota/quota_database_unittest.cc',
629         '../webkit/browser/quota/quota_manager_unittest.cc',
630         '../webkit/browser/quota/quota_temporary_storage_evictor_unittest.cc',
631         '../webkit/browser/quota/usage_tracker_unittest.cc',
632         '../webkit/renderer/cpp_variant_unittest.cc',
633       ],
634       'conditions': [
635         ['OS == "ios"', {
636           'sources/': [
637             # iOS only needs a small portion of content; exclude all the
638             # implementation, and re-include what is used.
639             ['exclude', '\\.(cc|mm)$'],
640             ['include', '_ios\\.(cc|mm)$'],
641             ['include', '^browser/notification_service_impl_unittest\\.cc$'],
642             ['include', '^browser/web_contents/navigation_entry_impl_unittest\\.cc$'],
643             ['include', '^test/run_all_unittests\\.cc$'],
644           ],
645         }, {  # OS != "ios"
646           'dependencies': [
647             'content.gyp:content_browser',
648             'content.gyp:content_child',
649             'content.gyp:content_gpu',
650             'content.gyp:content_plugin',
651             'content.gyp:content_renderer',
652             'content_resources.gyp:content_resources',
653             '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
654             '../gpu/gpu.gyp:gpu',
655             '../gpu/gpu.gyp:gpu_unittest_utils',
656             '../ipc/ipc.gyp:test_support_ipc',
657             '../jingle/jingle.gyp:jingle_glue_test_util',
658             '../media/media.gyp:media_test_support',
659             '../media/media.gyp:shared_memory_support',
660             '../third_party/WebKit/public/blink.gyp:blink',
661             '../third_party/icu/icu.gyp:icui18n',
662             '../third_party/icu/icu.gyp:icuuc',
663             '../third_party/leveldatabase/leveldatabase.gyp:leveldatabase',
664             '../third_party/libjingle/libjingle.gyp:libjingle',
665             '../ui/compositor/compositor.gyp:compositor_test_support',
666             '../ui/gl/gl.gyp:gl',
667             '../v8/tools/gyp/v8.gyp:v8',
668             '../webkit/common/webkit_common.gyp:webkit_common',
669             '../webkit/glue/webkit_glue.gyp:glue',
670             '../webkit/child/webkit_child.gyp:webkit_child',
671             '../webkit/renderer/webkit_renderer.gyp:webkit_renderer',
672             '../webkit/storage_browser.gyp:webkit_storage_browser',
673             '../webkit/storage_common.gyp:webkit_storage_common',
674           ],
675         }],
676         ['enable_plugins==0', {
677           'sources/': [
678             ['exclude', '^browser/renderer_host/pepper/'],
679             ['exclude', '^child/npapi/'],
680             ['exclude', '^renderer/npapi/'],
681             ['exclude', '^renderer/pepper/'],
682           ],
683           'sources!': [
684             'browser/plugin_loader_posix_unittest.cc',
685             'renderer/media/video_destination_handler_unittest.cc',
686           ],
687         }],
688         ['enable_webrtc==1', {
689           'sources': [
690             'browser/media/webrtc_internals_unittest.cc',
691             'browser/renderer_host/media/webrtc_identity_service_host_unittest.cc',
692             'browser/renderer_host/p2p/socket_host_test_utils.cc',
693             'browser/renderer_host/p2p/socket_host_test_utils.h',
694             'browser/renderer_host/p2p/socket_host_tcp_unittest.cc',
695             'browser/renderer_host/p2p/socket_host_tcp_server_unittest.cc',
696             'browser/renderer_host/p2p/socket_host_udp_unittest.cc',
697             'renderer/media/media_stream_audio_processor_unittest.cc',
698             'renderer/media/media_stream_dependency_factory_unittest.cc',
699             'renderer/media/media_stream_dispatcher_unittest.cc',
700             'renderer/media/media_stream_impl_unittest.cc',
701             'renderer/media/rtc_peer_connection_handler_unittest.cc',
702             'renderer/media/rtc_video_decoder_unittest.cc',
703             'renderer/media/video_source_handler_unittest.cc',
704             'renderer/media/webrtc_audio_capturer_unittest.cc',
705             'renderer/media/webrtc_audio_device_unittest.cc',
706             'renderer/media/webrtc_identity_service_unittest.cc',
707             'renderer/media/webrtc_local_audio_source_provider_unittest.cc',
708             'renderer/media/webrtc_local_audio_track_unittest.cc',
709           ],
710           'dependencies': [
711             '../third_party/libjingle/libjingle.gyp:libjingle_webrtc',
712             '../third_party/libjingle/libjingle.gyp:libpeerconnection',
713             '../third_party/webrtc/modules/modules.gyp:video_capture_module',
714             '../third_party/webrtc/voice_engine/voice_engine.gyp:voice_engine',
715           ]
716         }, {
717           'sources!': [
718             'renderer/media/video_destination_handler_unittest.cc',
719           ],
720         }],
721         ['enable_webrtc==1 and (OS=="linux" or OS=="mac" or OS=="win")', {
722           'sources': [
723             'browser/renderer_host/media/desktop_capture_device_unittest.cc',
724           ],
725           'dependencies': [
726             '../third_party/webrtc/modules/modules.gyp:desktop_capture',
727           ],
728         }],
729         ['enable_webrtc==1 and chromeos==1', {
730           'sources': [
731             'browser/renderer_host/media/desktop_capture_device_aura_unittest.cc',
732           ],
733         }],
734         # TODO(jrg): remove the OS=="android" section?
735         # http://crbug.com/113172
736         # Understand better how media_stream_ is tied into Chromium.
737         ['enable_webrtc==0 and OS=="android"', {
738           'sources/': [
739             ['exclude', '^renderer/media/media_stream_'],
740           ],
741         }],
742         ['input_speech==0', {
743           'sources/': [
744             ['exclude', '^browser/speech/'],
745           ]
746         }],
747         ['notifications==0', {
748            'sources!': [
749              'renderer/active_notification_tracker_unittest.cc',
750            ],
751         }],
752         ['OS=="linux"', {
753           'dependencies': [
754             '../build/linux/system.gyp:dbus',
755             '../dbus/dbus.gyp:dbus_test_support',
756           ],
757         }],
758         ['OS=="win" and win_use_allocator_shim==1', {
759           'dependencies': [
760             '../base/allocator/allocator.gyp:allocator',
761           ],
762         }],
763         ['OS=="win"', {
764           'dependencies': [
765             '../third_party/iaccessible2/iaccessible2.gyp:iaccessible2',
766           ],
767         }],
768         ['OS=="mac"', {
769           # These flags are needed to run the test on Mac.
770           # Search for comments about "xcode_settings" in chrome_tests.gypi.
771           'xcode_settings': {'OTHER_LDFLAGS': ['-Wl,-ObjC']},
772         }],
773         ['chromeos==1', {
774           'sources/': [
775             ['exclude', '^browser/renderer_host/gtk_key_bindings_handler_unittest.cc'],
776             ['exclude', '^browser/geolocation/wifi_data_provider_linux_unittest.cc'],
777           ],
778         }],
779         ['use_aura==1', {
780           'dependencies': [
781             '../ui/aura/aura.gyp:aura',
782           ]
783         }],
784         ['use_aura==1 or toolkit_views==1', {
785           'dependencies': [
786             '../ui/events/events.gyp:events_test_support',
787           ],
788         }],
789         ['OS == "android"', {
790           'sources': [
791             'browser/renderer_host/java/jni_helper_unittest.cc',
792           ],
793           'sources!': [
794             'browser/geolocation/network_location_provider_unittest.cc',
795             'browser/geolocation/wifi_data_provider_chromeos_unittest.cc',
796             'browser/geolocation/wifi_data_provider_common_unittest.cc',
797             'browser/geolocation/wifi_data_provider_linux_unittest.cc',
798           ],
799         }],
800         ['OS != "android" and OS != "ios"', {
801           'dependencies': [
802             '../third_party/libvpx/libvpx.gyp:libvpx',
803           ],
804         }],
805         ['OS == "android" and gtest_target_type == "shared_library"', {
806           'dependencies': [
807             '../testing/android/native_test.gyp:native_test_native_code',
808           ],
809         }],
810         ['use_aura!=1 and OS!="win" and OS!="android"', {
811           'sources!': [
812             'browser/renderer_host/input/tap_suppression_controller_unittest.cc',
813           ],
814         }],
815         ['enable_webrtc==1 and google_tv==1', {
816           'sources': [
817             'renderer/media/rtc_video_decoder_factory_tv_unittest.cc',
818           ],
819         }],
820         ['use_dbus==0', {
821           'sources!': [
822             'browser/geolocation/wifi_data_provider_linux_unittest.cc',
823           ],
824         }],
825       ],
826     },
827   ],
828   'conditions': [
829     ['test_isolation_mode != "noop"', {
830       'targets': [
831         {
832           'target_name': 'content_unittests_run',
833           'type': 'none',
834           'dependencies': [
835             'content_unittests',
836           ],
837           'includes': [
838             '../build/isolate.gypi',
839             'content_unittests.isolate',
840           ],
841           'sources': [
842             'content_unittests.isolate',
843           ],
844        },
845       ],
846     }],
847     ['OS!="ios"', {
848       'targets': [
849         {
850           'target_name': 'content_perftests',
851           'type': '<(gtest_target_type)',
852           'defines!': ['CONTENT_IMPLEMENTATION'],
853           'dependencies': [
854             'content.gyp:content_common',
855             'test_support_content',
856             '../base/base.gyp:test_support_base',
857             '../cc/cc.gyp:cc',
858             '../skia/skia.gyp:skia',
859             '../testing/gtest.gyp:gtest',
860             '../testing/perf/perf_test.gyp:*',
861             '../ui/gfx/gfx.gyp:gfx',
862             '../ui/gfx/gfx.gyp:gfx_geometry',
863           ],
864           'include_dirs': [
865             '..',
866           ],
867           'sources': [
868             'common/cc_messages_perftest.cc',
869             'test/run_all_perftests.cc',
870           ],
871         },
872         {
873           'target_name': 'content_browser_test_support',
874           'type': 'static_library',
875           'dependencies': [
876             'content_shell_lib',
877             '../skia/skia.gyp:skia',
878             '../testing/gtest.gyp:gtest',
879           ],
880           'sources': [
881             'test/accessibility_browser_test_utils.cc',
882             'test/accessibility_browser_test_utils.h',
883             'test/content_browser_test.cc',
884             'test/content_browser_test.h',
885             'test/content_browser_test_utils.cc',
886             'test/content_browser_test_utils.h',
887             'test/content_browser_test_utils_mac.mm',
888             'test/cpp_binding_example.cc',
889             'test/cpp_binding_example.h',
890           ],
891         },
892         {
893           'target_name': 'content_browsertests',
894           'type': '<(gtest_target_type)',
895           'dependencies': [
896             'content.gyp:content_common',
897             'content.gyp:content_gpu',
898             'content.gyp:content_plugin',
899             'content.gyp:content_renderer',
900             'content_browser_test_support',
901             'content_resources.gyp:content_resources',
902             'content_shell_lib',
903             'content_shell_pak',
904             '../base/base.gyp:test_support_base',
905             '../gin/gin.gyp:gin',
906             '../gpu/gpu.gyp:gpu',
907             '../ipc/ipc.gyp:test_support_ipc',
908             '../media/media.gyp:media_test_support',
909             '../media/media.gyp:shared_memory_support',
910             '../net/net.gyp:net_test_support',
911             '../ppapi/ppapi_internal.gyp:ppapi_host',
912             '../ppapi/ppapi_internal.gyp:ppapi_ipc',
913             '../ppapi/ppapi_internal.gyp:ppapi_proxy',
914             '../ppapi/ppapi_internal.gyp:ppapi_shared',
915             '../ppapi/ppapi_internal.gyp:ppapi_unittest_shared',
916             '../testing/gmock.gyp:gmock',
917             '../testing/gtest.gyp:gtest',
918             '../third_party/WebKit/public/blink.gyp:blink',
919             '../third_party/leveldatabase/leveldatabase.gyp:leveldatabase',
920             '../third_party/mesa/mesa.gyp:osmesa',
921             '../ui/accessibility/accessibility.gyp:accessibility',
922             '../ui/gfx/gfx.gyp:gfx',
923             '../ui/gfx/gfx.gyp:gfx_geometry',
924             '../ui/gl/gl.gyp:gl',
925             '../ui/resources/ui_resources.gyp:ui_resources',
926             '../ui/shell_dialogs/shell_dialogs.gyp:shell_dialogs',
927             '../ui/snapshot/snapshot.gyp:snapshot',
928             '../ui/ui.gyp:ui',
929             '../webkit/child/webkit_child.gyp:webkit_child',
930             '../webkit/glue/webkit_glue.gyp:glue',
931             '../webkit/renderer/webkit_renderer.gyp:webkit_renderer',
932           ],
933           'include_dirs': [
934             '..',
935             '<(SHARED_INTERMEDIATE_DIR)',  # Needed by encrypted_media_browsertest.cc
936           ],
937           'includes': [
938             'browser/gpu/test_support_gpu.gypi',
939           ],
940           'defines': [
941             'HAS_OUT_OF_PROC_TEST_RUNNER',
942           ],
943           'sources': [
944             'browser/accessibility/accessibility_win_browsertest.cc',
945             'browser/accessibility/cross_platform_accessibility_browsertest.cc',
946             'browser/accessibility/dump_accessibility_tree_browsertest.cc',
947             'browser/aura/image_transport_factory_browsertest.cc',
948             'browser/bookmarklet_browsertest.cc',
949             'browser/browser_plugin/browser_plugin_host_browsertest.cc',
950             'browser/browser_plugin/test_browser_plugin_embedder.cc',
951             'browser/browser_plugin/test_browser_plugin_embedder.h',
952             'browser/browser_plugin/test_browser_plugin_guest.cc',
953             'browser/browser_plugin/test_browser_plugin_guest.h',
954             'browser/browser_plugin/test_browser_plugin_guest_delegate.cc',
955             'browser/browser_plugin/test_browser_plugin_guest_delegate.h',
956             'browser/browser_plugin/test_browser_plugin_guest_manager.cc',
957             'browser/browser_plugin/test_browser_plugin_guest_manager.h',
958             'browser/child_process_security_policy_browsertest.cc',
959             'browser/database_browsertest.cc',
960             'browser/device_orientation/device_inertial_sensor_browsertest.cc',
961             'browser/devtools/renderer_overrides_handler_browsertest.cc',
962             'browser/dom_storage/dom_storage_browsertest.cc',
963             'browser/download/download_browsertest.cc',
964             'browser/download/drag_download_file_browsertest.cc',
965             'browser/download/mhtml_generation_browsertest.cc',
966             'browser/download/save_package_browsertest.cc',
967             'browser/fileapi/file_system_browsertest.cc',
968             'browser/frame_host/frame_tree_browsertest.cc',
969             'browser/frame_host/render_frame_host_manager_browsertest.cc',
970             'browser/gpu/compositor_util_browsertest.cc',
971             'browser/gpu/gpu_ipc_browsertests.cc',
972             'browser/indexed_db/indexed_db_browsertest.cc',
973             'browser/loader/resource_dispatcher_host_browsertest.cc',
974             'browser/media/encrypted_media_browsertest.cc',
975             'browser/media/media_browsertest.cc',
976             'browser/media/media_browsertest.h',
977             'browser/media/media_source_browsertest.cc',
978             'browser/media/webrtc_internals_browsertest.cc',
979             'browser/plugin_data_remover_impl_browsertest.cc',
980             'browser/plugin_browsertest.cc',
981             'browser/plugin_service_impl_browsertest.cc',
982             'browser/renderer_host/input/touch_input_browsertest.cc',
983             'browser/renderer_host/render_process_host_browsertest.cc',
984             'browser/renderer_host/render_view_host_browsertest.cc',
985             'browser/renderer_host/render_widget_host_browsertest.cc',
986             'browser/renderer_host/render_widget_host_view_browsertest.cc',
987             'browser/security_exploit_browsertest.cc',
988             'browser/session_history_browsertest.cc',
989             'browser/site_per_process_browsertest.cc',
990             'browser/speech/input_tag_speech_browsertest.cc',
991             'browser/speech/speech_recognition_browsertest.cc',
992             'browser/tracing/tracing_controller_browsertest.cc',
993             'browser/web_contents/touch_editable_impl_aura_browsertest.cc',
994             'browser/web_contents/web_contents_impl_browsertest.cc',
995             'browser/web_contents/web_contents_view_aura_browsertest.cc',
996             'browser/webkit_browsertest.cc',
997             'browser/worker_host/test/worker_browsertest.cc',
998             'child/site_isolation_policy_browsertest.cc',
999             'common/gpu/client/context_provider_command_buffer_browsertest.cc',
1000             'renderer/accessibility/renderer_accessibility_browsertest.cc',
1001             'renderer/browser_plugin/browser_plugin_browsertest.cc',
1002             'renderer/browser_plugin/browser_plugin_browsertest.h',
1003             'renderer/browser_plugin/mock_browser_plugin.cc',
1004             'renderer/browser_plugin/mock_browser_plugin.h',
1005             'renderer/browser_plugin/mock_browser_plugin_manager.cc',
1006             'renderer/browser_plugin/mock_browser_plugin_manager.h',
1007             'renderer/cpp_bound_class_unittest.cc',
1008             'renderer/dom_serializer_browsertest.cc',
1009             'renderer/gin_browsertest.cc',
1010             'renderer/mouse_lock_dispatcher_browsertest.cc',
1011             'renderer/pepper/fake_pepper_plugin_instance.cc',
1012             'renderer/pepper/mock_renderer_ppapi_host.cc',
1013             'renderer/pepper/pepper_device_enumeration_host_helper_unittest.cc',
1014             'renderer/pepper/pepper_file_chooser_host_unittest.cc',
1015             'renderer/pepper/pepper_graphics_2d_host_unittest.cc',
1016             'renderer/pepper/pepper_url_request_unittest.cc',
1017             'renderer/render_thread_impl_browsertest.cc',
1018             'renderer/render_view_browsertest.cc',
1019             'renderer/render_view_browsertest_mac.mm',
1020             'renderer/render_widget_browsertest.cc',
1021             'renderer/resource_fetcher_browsertest.cc',
1022             'renderer/savable_resources_browsertest.cc',
1023             'test/content_browser_test_test.cc',
1024             'test/content_test_launcher.cc',
1025             'test/webui_resource_browsertest.cc',
1026           ],
1027           'conditions': [
1028             ['chromeos==0', {
1029               'sources!': [
1030                 'browser/web_contents/touch_editable_impl_aura_browsertest.cc',
1031               ],
1032             }],
1033             ['OS=="win"', {
1034               'resource_include_dirs': [
1035                 '<(SHARED_INTERMEDIATE_DIR)/webkit',
1036               ],
1037               'sources': [
1038                 'shell/app/resource.h',
1039                 'shell/app/shell.rc',
1040                 # TODO:  It would be nice to have these pulled in
1041                 # automatically from direct_dependent_settings in
1042                 # their various targets (net.gyp:net_resources, etc.),
1043                 # but that causes errors in other targets when
1044                 # resulting .res files get referenced multiple times.
1045                 '<(SHARED_INTERMEDIATE_DIR)/net/net_resources.rc',
1046                 '<(SHARED_INTERMEDIATE_DIR)/webkit/blink_resources.rc',
1047                 '<(SHARED_INTERMEDIATE_DIR)/webkit/webkit_strings_en-US.rc',
1048               ],
1049               'dependencies': [
1050                 '<(DEPTH)/net/net.gyp:net_resources',
1051                 '<(DEPTH)/third_party/iaccessible2/iaccessible2.gyp:iaccessible2',
1052                 '<(DEPTH)/third_party/isimpledom/isimpledom.gyp:isimpledom',
1053                 '<(DEPTH)/webkit/webkit_resources.gyp:webkit_strings',
1054                 '<(DEPTH)/webkit/webkit_resources.gyp:webkit_resources',
1055               ],
1056               'configurations': {
1057                 'Debug_Base': {
1058                   'msvs_settings': {
1059                     'VCLinkerTool': {
1060                       'LinkIncremental': '<(msvs_large_module_debug_link_mode)',
1061                     },
1062                   },
1063                 },
1064               },
1065               # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
1066               'msvs_disabled_warnings': [ 4267, ],
1067             }, {  # OS!="win"
1068               'sources!': [
1069                 'browser/accessibility/accessibility_win_browsertest.cc',
1070               ],
1071             }],
1072             ['OS=="win" and win_use_allocator_shim==1', {
1073               'dependencies': [
1074                 '../base/allocator/allocator.gyp:allocator',
1075               ],
1076             }],
1077             ['OS=="linux"', {
1078               'sources!': [
1079                 'browser/accessibility/dump_accessibility_tree_browsertest.cc',
1080               ],
1081             }],
1082             ['OS=="android"', {
1083               'sources': [
1084                 'shell/android/browsertests_apk/content_browser_tests_android.cc',
1085               ],
1086               'dependencies': [
1087                 'content_shell_jni_headers',
1088                 'content_shell_lib',
1089                 '../testing/android/native_test.gyp:native_test_util',
1090               ],
1091             }],
1092             ['OS=="mac"', {
1093               'dependencies': [
1094                 'content_shell',  # Needed for Content Shell.app's Helper.
1095               ],
1096               'sources': [
1097                 'renderer/external_popup_menu_browsertest.cc',
1098               ],
1099             }],
1100             ['use_aura==1', {
1101               'sources!': [
1102                 'browser/accessibility/accessibility_win_browsertest.cc',
1103               ],
1104             }, {
1105               'sources/': [
1106                 ['exclude', '^browser/aura/'],
1107               ],
1108             }],
1109             ['use_aura==1 and OS!="win"', {
1110               'sources!': [
1111                 'browser/plugin_browsertest.cc',
1112               ],
1113             }],
1114             ['use_aura==1 or toolkit_views==1', {
1115               'dependencies': [
1116                 '../ui/events/events.gyp:events_test_support',
1117               ],
1118             }],
1119             ['OS!="android" and OS!="ios"', {
1120               # npapi test plugin doesn't build on android or ios
1121               'dependencies': [
1122                 # Runtime dependencies
1123                 'copy_npapi_test_plugin',
1124               ],
1125             }],
1126             ['enable_webrtc==1', {
1127               'sources': [
1128                 'browser/media/webrtc_aecdump_browsertest.cc',
1129                 'browser/media/webrtc_browsertest.cc',
1130               ],
1131               'dependencies': [
1132                 '../testing/perf/perf_test.gyp:perf_test',
1133               ],
1134             }],
1135             ['enable_plugins==0', {
1136               'sources/': [
1137                 ['exclude', '^renderer/pepper/'],
1138               ],
1139               'sources!': [
1140                 'browser/plugin_service_impl_browsertest.cc',
1141                 'browser/plugin_data_remover_impl_browsertest.cc',
1142               ],
1143             }],
1144             ['input_speech==0', {
1145               'sources/': [
1146                 ['exclude', '^browser/speech/'],
1147               ]
1148             }],
1149             ['branding=="Chrome"', {
1150               'sources!': [
1151                 # These tests depend on single process mode, which is disabled
1152                 # in official builds.
1153                 'renderer/dom_serializer_browsertest.cc',
1154                 'renderer/resource_fetcher_browsertest.cc',
1155                 'renderer/savable_resources_browsertest.cc',
1156               ],
1157             }],
1158           ],
1159         },
1160         {
1161           'target_name': 'content_gl_tests',
1162           'type': '<(gtest_target_type)',
1163           'dependencies': [
1164             'content.gyp:content_common',
1165             'test_support_content',
1166             '../base/base.gyp:test_support_base',
1167             '../gpu/gpu.gyp:command_buffer_common',
1168             '../testing/gtest.gyp:gtest',
1169             '../ui/gfx/gfx.gyp:gfx',
1170             '../ui/gfx/gfx.gyp:gfx_geometry',
1171             '../ui/gl/gl.gyp:gl',
1172             '../ui/ui.gyp:ui',
1173             '../third_party/WebKit/public/blink.gyp:blink',
1174             # The following two dependencies provide the missing
1175             # symbol HeapProfilerStart in Linux component builds.
1176             '../webkit/child/webkit_child.gyp:webkit_child',
1177             '../webkit/glue/webkit_glue.gyp:glue',
1178           ],
1179           'include_dirs': [
1180             '..',
1181           ],
1182           'sources': [
1183             'common/gpu/client/gl_helper_unittests.cc',
1184             'common/gpu/client/gpu_in_process_context_tests.cc',
1185           ],
1186           'conditions': [
1187             ['OS=="android"', {
1188               'dependencies': [
1189                 '../testing/android/native_test.gyp:native_test_native_code',
1190               ],
1191             }],
1192           ],
1193         },
1194         {
1195           'target_name': 'content_gl_benchmark',
1196           'type': '<(gtest_target_type)',
1197           'dependencies': [
1198             'content.gyp:content_common',
1199             'test_support_content',
1200             '../base/base.gyp:test_support_base',
1201             '../testing/gtest.gyp:gtest',
1202             '../ui/gfx/gfx.gyp:gfx',
1203             '../ui/gfx/gfx.gyp:gfx_geometry',
1204             '../ui/gl/gl.gyp:gl',
1205             '../ui/ui.gyp:ui',
1206             '../third_party/WebKit/public/blink.gyp:blink',
1207             # The following two dependencies provide the missing
1208             # symbol HeapProfilerStart in Linux component builds.
1209             '../webkit/glue/webkit_glue.gyp:glue',
1210             '../webkit/child/webkit_child.gyp:webkit_child',
1211           ],
1212           'include_dirs': [
1213             '..',
1214           ],
1215           'sources': [
1216             'common/gpu/client/gl_helper_benchmark.cc',
1217           ],
1218         },
1219         {
1220           'target_name': 'content_webkit_unit_test_support',
1221           'type': 'static_library',
1222           'dependencies': [
1223             'test_support_content',
1224           ],
1225           'include_dirs': [
1226             '..',
1227           ],
1228           'sources': [
1229             'test/webkit_unit_test_support.cc',
1230             'test/webkit_unit_test_support.h',
1231           ],
1232         },
1233       ],
1234     }],
1235     ['chromeos==1 or OS=="win" or OS=="android"', {
1236       'targets': [
1237           {
1238             'target_name': 'video_decode_accelerator_unittest',
1239             'type': '<(gtest_target_type)',
1240             'dependencies': [
1241               'content.gyp:content',
1242               '../base/base.gyp:base',
1243               '../testing/gtest.gyp:gtest',
1244               '../media/media.gyp:media',
1245               '../ui/gl/gl.gyp:gl',
1246               '../ui/gfx/gfx.gyp:gfx',
1247               '../ui/gfx/gfx.gyp:gfx_geometry',
1248               '../ui/ui.gyp:ui',
1249             ],
1250             'include_dirs': [
1251               '<(DEPTH)/third_party/khronos',
1252             ],
1253             'sources': [
1254               'common/gpu/media/android_video_decode_accelerator_unittest.cc',
1255               'common/gpu/media/rendering_helper.h',
1256               'common/gpu/media/rendering_helper.cc',
1257               'common/gpu/media/video_accelerator_unittest_helpers.h',
1258               'common/gpu/media/video_decode_accelerator_unittest.cc',
1259             ],
1260             'conditions': [
1261               ['OS=="android"', {
1262                 'sources/': [
1263                   ['exclude', '^common/gpu/media/rendering_helper.h'],
1264                   ['exclude', '^common/gpu/media/rendering_helper.cc'],
1265                   ['exclude', '^common/gpu/media/video_decode_accelerator_unittest.cc'],
1266                 ],
1267                 'dependencies': [
1268                   '../media/media.gyp:player_android',
1269                   '../testing/gmock.gyp:gmock',
1270                   '../testing/android/native_test.gyp:native_test_native_code',
1271                   '../gpu/gpu.gyp:gpu_unittest_utils',
1272                 ],
1273               }, { # OS!="android"
1274                 'sources/': [
1275                   ['exclude', '^common/gpu/media/android_video_decode_accelerator_unittest.cc'],
1276                 ],
1277               }],
1278               ['OS=="win"', {
1279                 'dependencies': [
1280                   '<(angle_path)/src/build_angle.gyp:libEGL',
1281                   '<(angle_path)/src/build_angle.gyp:libGLESv2',
1282                 ],
1283               }],
1284               ['(OS=="win" and win_use_allocator_shim==1) or '
1285                '(os_posix == 1 and OS != "android" and '
1286                ' linux_use_tcmalloc==1)', {
1287                 'dependencies': [
1288                   '../base/allocator/allocator.gyp:allocator',
1289                 ],
1290               }],
1291               ['target_arch != "arm" and (OS=="linux" or chromeos == 1)', {
1292                 'include_dirs': [
1293                   '<(DEPTH)/third_party/libva',
1294                 ],
1295               }],
1296             ],
1297             # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
1298             'msvs_disabled_warnings': [ 4267, ],
1299           },
1300         ]
1301     }],
1302     ['chromeos==1 and target_arch == "arm"', {
1303       'targets': [
1304         {
1305           'target_name': 'video_encode_accelerator_unittest',
1306           'type': 'executable',
1307           'dependencies': [
1308             'content.gyp:content',
1309             '../base/base.gyp:base',
1310             '../testing/gtest.gyp:gtest',
1311             '../media/media.gyp:media',
1312               '../ui/gl/gl.gyp:gl',
1313               '../ui/gfx/gfx.gyp:gfx',
1314               '../ui/gfx/gfx.gyp:gfx_geometry',
1315               '../ui/ui.gyp:ui',
1316           ],
1317           'sources': [
1318             'common/gpu/media/video_accelerator_unittest_helpers.h',
1319             'common/gpu/media/video_encode_accelerator_unittest.cc',
1320           ],
1321         },
1322       ]
1323     }],
1324     # Special target to wrap a gtest_target_type==shared_library
1325     # content_unittests into an android apk for execution.
1326     # See base.gyp for TODO(jrg)s about this strategy.
1327     ['OS == "android" and gtest_target_type == "shared_library"', {
1328       'targets': [
1329         {
1330           'target_name': 'content_gl_tests_apk',
1331           'type': 'none',
1332           'dependencies': [
1333             'content_gl_tests',
1334             'content_java_test_support',
1335           ],
1336           'variables': {
1337             'test_suite_name': 'content_gl_tests',
1338             'input_shlib_path': '<(SHARED_LIB_DIR)/<(SHARED_LIB_PREFIX)content_gl_tests<(SHARED_LIB_SUFFIX)',
1339           },
1340           'includes': [
1341             '../build/apk_test.gypi',
1342           ],
1343         },
1344         {
1345           'target_name': 'content_unittests_apk',
1346           'type': 'none',
1347           'dependencies': [
1348             'content.gyp:content_java',
1349             'content_unittests',
1350           ],
1351           'variables': {
1352             'test_suite_name': 'content_unittests',
1353             'input_shlib_path': '<(SHARED_LIB_DIR)/<(SHARED_LIB_PREFIX)content_unittests<(SHARED_LIB_SUFFIX)',
1354           },
1355           'includes': [ '../build/apk_test.gypi' ],
1356         },
1357         {
1358           'target_name': 'content_browsertests_apk',
1359           'type': 'none',
1360           'dependencies': [
1361             'content.gyp:content_java',
1362             'content_browsertests',
1363             'content_java_test_support',
1364             'content_shell_java',
1365           ],
1366           'variables': {
1367             'apk_name': 'content_browsertests',
1368             'java_in_dir': 'shell/android/browsertests_apk',
1369             'resource_dir': 'shell/android/browsertests_apk/res',
1370             'native_lib_target': 'libcontent_browsertests',
1371             'additional_input_paths': ['<(PRODUCT_DIR)/content_shell/assets/content_shell.pak'],
1372             'asset_location': '<(PRODUCT_DIR)/content_shell/assets',
1373           },
1374           'includes': [ '../build/java_apk.gypi' ],
1375         },
1376         {
1377           'target_name': 'content_linker_test_apk',
1378           'type': 'none',
1379           'dependencies': [
1380             'content_android_linker_test',
1381             'content.gyp:content_java',
1382             'content_shell_java',
1383           ],
1384           'variables': {
1385             'apk_name': 'ContentLinkerTest',
1386             'java_in_dir': 'shell/android/linker_test_apk',
1387             'resource_dir': 'shell/android/linker_test_apk/res',
1388             'native_lib_target': 'libcontent_android_linker_test',
1389             'additional_input_paths': ['<(PRODUCT_DIR)/content_shell/assets/content_shell.pak'],
1390             'asset_location': '<(PRODUCT_DIR)/content_shell/assets',
1391             'use_content_linker': '1',
1392             'enable_content_linker_tests': '1',
1393           },
1394           'includes': [ '../build/java_apk.gypi' ],
1395         },
1396         {
1397           'target_name': 'content_android_linker_test',
1398           'type': 'shared_library',
1399           'defines!': ['CONTENT_IMPLEMENTATION'],
1400           'dependencies': [
1401             'content_android_linker_test_jni_headers',
1402             'content_shell_lib',
1403             # Required to include "content/public/browser/android/compositor.h"
1404             # in content_linker_test_android.cc :-(
1405             '../skia/skia.gyp:skia',
1406           ],
1407           'sources': [
1408             'shell/android/linker_test_apk/content_linker_test_android.cc',
1409             'shell/android/linker_test_apk/content_linker_test_linker_tests.cc',
1410           ],
1411         },
1412         {
1413           'target_name': 'content_android_linker_test_jni_headers',
1414           'type': 'none',
1415           'sources': [
1416             'shell/android/linker_test_apk/src/org/chromium/content_linker_test_apk/LinkerTests.java',
1417           ],
1418           'variables': {
1419             'jni_gen_package': 'content/shell',
1420             'jni_generator_ptr_type': 'long',
1421           },
1422           'includes': [ '../build/jni_generator.gypi' ],
1423         },
1424         {
1425           'target_name': 'video_decode_accelerator_unittest_apk',
1426           'type': 'none',
1427           'dependencies': [
1428             'video_decode_accelerator_unittest',
1429           ],
1430           'variables': {
1431             'test_suite_name': 'video_decode_accelerator_unittest',
1432             'input_shlib_path': '<(SHARED_LIB_DIR)/<(SHARED_LIB_PREFIX)content_unittests<(SHARED_LIB_SUFFIX)',
1433           },
1434           'includes': [ '../build/apk_test.gypi' ],
1435         },
1436       ],
1437     }],
1438     ['OS == "android"', {
1439       'targets': [
1440         {
1441           'target_name': 'test_support_content_jni_headers',
1442           'type': 'none',
1443           'sources': [
1444             'public/test/android/javatests/src/org/chromium/content/browser/test/NestedSystemMessageHandler.java',
1445           ],
1446           'variables': {
1447             'jni_gen_package': 'content/public/test',
1448             'jni_generator_ptr_type': 'long',
1449           },
1450           'includes': [ '../build/jni_generator.gypi' ],
1451         },
1452         {
1453           'target_name': 'content_java_test_support',
1454           'type': 'none',
1455           'dependencies': [
1456             '../base/base.gyp:base',
1457             '../base/base.gyp:base_java_test_support',
1458             'content.gyp:content_common',
1459             'content.gyp:content_java',
1460           ],
1461           'variables': {
1462             'java_in_dir': '../content/public/test/android/javatests',
1463           },
1464           'includes': [ '../build/java.gypi' ],
1465         },
1466         {
1467           'target_name': 'content_shell_test_apk',
1468           'type': 'none',
1469           'dependencies': [
1470             'content_java_test_support',
1471             'content_shell_apk_java',
1472             'content.gyp:content_java',
1473             '../base/base.gyp:base_java',
1474             '../base/base.gyp:base_javatests',
1475             '../base/base.gyp:base_java_test_support',
1476             '../media/media.gyp:media_java',
1477             '../media/media.gyp:media_test_support',
1478             '../net/net.gyp:net_java',
1479             '../net/net.gyp:net_javatests',
1480           ],
1481           'variables': {
1482             'apk_name': 'ContentShellTest',
1483             'java_in_dir': 'shell/android/javatests',
1484             'resource_dir': 'shell/android/shell_apk/res',
1485             'additional_src_dirs': ['public/android/javatests/',],
1486             'is_test_apk': 1,
1487           },
1488           'includes': [ '../build/java_apk.gypi' ],
1489         },
1490       ],
1491     }],
1492     ['OS!="android" and OS!="ios"', {
1493       # npapi test plugin doesn't build on android or ios
1494       'targets': [
1495         {
1496           'target_name': 'npapi_test_plugin',
1497           'type': 'loadable_module',
1498           'variables': {
1499             'chromium_code': 1,
1500           },
1501           'mac_bundle': 1,
1502           'dependencies': [
1503             '<(DEPTH)/base/base.gyp:base',
1504             '<(DEPTH)/third_party/icu/icu.gyp:icuuc',
1505             '<(DEPTH)/third_party/npapi/npapi.gyp:npapi',
1506           ],
1507           'sources': [
1508             'test/plugin/npapi_constants.cc',
1509             'test/plugin/npapi_constants.h',
1510             'test/plugin/npapi_test.cc',
1511             'test/plugin/npapi_test.def',
1512             'test/plugin/npapi_test.rc',
1513             'test/plugin/plugin_arguments_test.cc',
1514             'test/plugin/plugin_arguments_test.h',
1515             'test/plugin/plugin_client.cc',
1516             'test/plugin/plugin_client.h',
1517             'test/plugin/plugin_create_instance_in_paint.cc',
1518             'test/plugin/plugin_create_instance_in_paint.h',
1519             'test/plugin/plugin_delete_plugin_in_deallocate_test.cc',
1520             'test/plugin/plugin_delete_plugin_in_deallocate_test.h',
1521             'test/plugin/plugin_delete_plugin_in_stream_test.cc',
1522             'test/plugin/plugin_delete_plugin_in_stream_test.h',
1523             'test/plugin/plugin_execute_stream_javascript.cc',
1524             'test/plugin/plugin_execute_stream_javascript.h',
1525             'test/plugin/plugin_get_javascript_url_test.cc',
1526             'test/plugin/plugin_get_javascript_url_test.h',
1527             'test/plugin/plugin_get_javascript_url2_test.cc',
1528             'test/plugin/plugin_get_javascript_url2_test.h',
1529             'test/plugin/plugin_geturl_test.cc',
1530             'test/plugin/plugin_geturl_test.h',
1531             'test/plugin/plugin_javascript_open_popup.cc',
1532             'test/plugin/plugin_javascript_open_popup.h',
1533             'test/plugin/plugin_new_fails_test.cc',
1534             'test/plugin/plugin_new_fails_test.h',
1535             'test/plugin/plugin_npobject_identity_test.cc',
1536             'test/plugin/plugin_npobject_identity_test.h',
1537             'test/plugin/plugin_npobject_lifetime_test.cc',
1538             'test/plugin/plugin_npobject_lifetime_test.h',
1539             'test/plugin/plugin_npobject_proxy_test.cc',
1540             'test/plugin/plugin_npobject_proxy_test.h',
1541             'test/plugin/plugin_request_read_test.h',
1542             'test/plugin/plugin_request_read_test.cc',
1543             'test/plugin/plugin_schedule_timer_test.cc',
1544             'test/plugin/plugin_schedule_timer_test.h',
1545             'test/plugin/plugin_setup_test.cc',
1546             'test/plugin/plugin_setup_test.h',
1547             'test/plugin/plugin_test.cc',
1548             'test/plugin/plugin_test.h',
1549             'test/plugin/plugin_test_factory.h',
1550             'test/plugin/plugin_thread_async_call_test.cc',
1551             'test/plugin/plugin_thread_async_call_test.h',
1552             'test/plugin/plugin_windowed_test.cc',
1553             'test/plugin/plugin_windowed_test.h',
1554             'test/plugin/plugin_private_test.cc',
1555             'test/plugin/plugin_private_test.h',
1556             'test/plugin/plugin_test_factory.cc',
1557             'test/plugin/plugin_window_size_test.cc',
1558             'test/plugin/plugin_window_size_test.h',
1559             'test/plugin/plugin_windowless_test.cc',
1560             'test/plugin/plugin_windowless_test.h',
1561             'test/plugin/resource.h',
1562           ],
1563           'include_dirs': [
1564             '../..',
1565           ],
1566           'xcode_settings': {
1567             'INFOPLIST_FILE': '<(DEPTH)/content/test/plugin/Info.plist',
1568           },
1569           'conditions': [
1570             ['OS!="win"', {
1571               'sources!': [
1572                 # TODO(port):  Port these.
1573                 # plugin_npobject_lifetime_test.cc has win32-isms
1574                 #   (HWND, CALLBACK).
1575                 'test/plugin/plugin_npobject_lifetime_test.cc',
1576                  # The window APIs are necessarily platform-specific.
1577                 'test/plugin/plugin_window_size_test.cc',
1578                 'test/plugin/plugin_windowed_test.cc',
1579                  # Seems windows specific.
1580                 'test/plugin/plugin_create_instance_in_paint.cc',
1581                 'test/plugin/plugin_create_instance_in_paint.h',
1582                  # windows-specific resources
1583                 'test/plugin/npapi_test.def',
1584                 'test/plugin/npapi_test.rc',
1585               ],
1586             }],
1587             ['OS=="mac"', {
1588               'product_extension': 'plugin',
1589               'link_settings': {
1590                 'libraries': [
1591                   '$(SDKROOT)/System/Library/Frameworks/Carbon.framework',
1592                 ],
1593               },
1594             }],
1595             ['os_posix == 1 and OS != "mac" and (target_arch == "x64" or target_arch == "arm")', {
1596               # Shared libraries need -fPIC on x86-64
1597               'cflags': ['-fPIC']
1598             }],
1599           ],
1600         },
1601         {
1602           'target_name': 'copy_npapi_test_plugin',
1603           'type': 'none',
1604           'dependencies': [
1605             'npapi_test_plugin',
1606           ],
1607           'conditions': [
1608             ['OS=="win"', {
1609               'copies': [
1610                 {
1611                   'destination': '<(PRODUCT_DIR)/plugins',
1612                   'files': ['<(PRODUCT_DIR)/npapi_test_plugin.dll'],
1613                 },
1614               ],
1615             }],
1616             ['OS=="mac"', {
1617               'copies': [
1618                 {
1619                   'destination': '<(PRODUCT_DIR)/plugins/',
1620                   'files': ['<(PRODUCT_DIR)/npapi_test_plugin.plugin'],
1621                 },
1622               ]
1623             }],
1624             ['os_posix == 1 and OS != "mac"', {
1625               'copies': [
1626                 {
1627                   'destination': '<(PRODUCT_DIR)/plugins',
1628                   'files': ['<(PRODUCT_DIR)/libnpapi_test_plugin.so'],
1629                 },
1630               ],
1631             }],
1632           ],
1633         },
1634       ],
1635     }],
1636   ],