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