Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(565)

Side by Side Diff: content/content_tests.gypi

Issue 1824653002: Remove iOS conditions in content/ build files. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: merge Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « content/common/BUILD.gn ('k') | content/public/browser/BUILD.gn » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright (c) 2013 The Chromium Authors. All rights reserved. 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 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 { 5 {
6 'variables': { 6 'variables': {
7 'layouttest_support_content_sources': [ 7 'layouttest_support_content_sources': [
8 'public/test/layouttest_support.h', 8 'public/test/layouttest_support.h',
9 'public/test/nested_message_pump_android.cc', 9 'public/test/nested_message_pump_android.cc',
10 'public/test/nested_message_pump_android.h', 10 'public/test/nested_message_pump_android.h',
(...skipping 827 matching lines...) Expand 10 before | Expand all | Expand 10 after
838 'common/gpu/client/gpu_memory_buffer_impl_ozone_native_pixmap_unittest.cc' , 838 'common/gpu/client/gpu_memory_buffer_impl_ozone_native_pixmap_unittest.cc' ,
839 'common/gpu/gpu_memory_buffer_factory_ozone_native_pixmap_unittest.cc', 839 'common/gpu/gpu_memory_buffer_factory_ozone_native_pixmap_unittest.cc',
840 ], 840 ],
841 }, 841 },
842 'targets': [ 842 'targets': [
843 { 843 {
844 # GN version: //content/test:test_support 844 # GN version: //content/test:test_support
845 'target_name': 'test_support_content', 845 'target_name': 'test_support_content',
846 'type': 'static_library', 846 'type': 'static_library',
847 'dependencies': [ 847 'dependencies': [
848 '../cc/blink/cc_blink.gyp:cc_blink',
849 '../cc/cc.gyp:cc',
850 '../cc/cc_tests.gyp:cc_test_support',
851 '../components/scheduler/scheduler.gyp:scheduler',
852 '../components/scheduler/scheduler.gyp:scheduler_test_support',
853 '../gpu/blink/gpu_blink.gyp:gpu_blink',
848 '../gpu/gpu.gyp:gpu_ipc_common', 854 '../gpu/gpu.gyp:gpu_ipc_common',
855 '../ipc/mojo/ipc_mojo.gyp:*',
856 '../media/blink/media_blink.gyp:media_blink',
857 '../media/media.gyp:media',
858 '../media/midi/midi.gyp:midi',
859 '../mojo/mojo_edk.gyp:mojo_common_test_support',
849 '../mojo/mojo_base.gyp:mojo_application_base', 860 '../mojo/mojo_base.gyp:mojo_application_base',
850 '../mojo/mojo_edk.gyp:mojo_system_impl', 861 '../mojo/mojo_edk.gyp:mojo_system_impl',
851 '../mojo/mojo_public.gyp:mojo_cpp_bindings', 862 '../mojo/mojo_public.gyp:mojo_cpp_bindings',
852 '../net/net.gyp:net_test_support', 863 '../net/net.gyp:net_test_support',
864 '../ppapi/ppapi_internal.gyp:ppapi_host',
865 '../ppapi/ppapi_internal.gyp:ppapi_proxy',
866 '../ppapi/ppapi_internal.gyp:ppapi_shared',
867 '../ppapi/ppapi_internal.gyp:ppapi_unittest_shared',
853 '../skia/skia.gyp:skia', 868 '../skia/skia.gyp:skia',
869 '../storage/storage_browser.gyp:storage',
854 '../storage/storage_common.gyp:storage_common', 870 '../storage/storage_common.gyp:storage_common',
855 '../testing/gmock.gyp:gmock', 871 '../testing/gmock.gyp:gmock',
856 '../testing/gtest.gyp:gtest', 872 '../testing/gtest.gyp:gtest',
873 '../third_party/WebKit/public/blink.gyp:blink',
857 '../ui/accessibility/accessibility.gyp:ax_gen', 874 '../ui/accessibility/accessibility.gyp:ax_gen',
858 '../ui/base/ime/ui_base_ime.gyp:ui_base_ime', 875 '../ui/base/ime/ui_base_ime.gyp:ui_base_ime',
859 '../ui/base/ui_base.gyp:ui_base', 876 '../ui/base/ui_base.gyp:ui_base',
860 '../ui/base/ui_base.gyp:ui_base_test_support', 877 '../ui/base/ui_base.gyp:ui_base_test_support',
861 '../ui/base/ui_base.gyp:ui_data_pack', 878 '../ui/base/ui_base.gyp:ui_data_pack',
879 '../ui/compositor/compositor.gyp:compositor_test_support',
862 '../ui/events/events.gyp:dom_keycode_converter', 880 '../ui/events/events.gyp:dom_keycode_converter',
863 '../ui/events/events.gyp:events_base', 881 '../ui/events/events.gyp:events_base',
864 '../ui/events/events.gyp:events_test_support', 882 '../ui/events/events.gyp:events_test_support',
865 '../ui/events/events.gyp:gesture_detection', 883 '../ui/events/events.gyp:gesture_detection',
866 '../ui/gfx/gfx.gyp:gfx_test_support', 884 '../ui/gfx/gfx.gyp:gfx_test_support',
867 '../ui/resources/ui_resources.gyp:ui_resources', 885 '../ui/resources/ui_resources.gyp:ui_resources',
886 '../ui/surface/surface.gyp:surface',
868 '../url/url.gyp:url_lib', 887 '../url/url.gyp:url_lib',
869 'browser/speech/proto/speech_proto.gyp:speech_proto', 888 '../v8/tools/gyp/v8.gyp:v8',
889 'browser/speech/proto/speech_proto.gyp:speech_proto',
890 'content_test_mojo_bindings',
891 'content.gyp:content_app_both',
870 'content.gyp:content_browser', 892 'content.gyp:content_browser',
893 'content.gyp:content_child',
871 'content.gyp:content_common', 894 'content.gyp:content_common',
895 'content.gyp:content_gpu',
896 'content.gyp:content_plugin',
897 'content.gyp:content_ppapi_plugin',
898 'content.gyp:content_renderer',
899 'content.gyp:content_utility',
900 'content_shell_and_tests.gyp:content_shell_pak',
872 ], 901 ],
873 'export_dependent_settings': [ 902 'export_dependent_settings': [
874 'content.gyp:content_browser', 903 'content.gyp:content_browser',
904 '../third_party/WebKit/public/blink.gyp:blink',
875 ], 905 ],
876 'include_dirs': [ 906 'include_dirs': [
877 '..', 907 '..',
878 ], 908 ],
879 'sources': [ '<@(test_support_content_sources)' ], 909 'sources': [ '<@(test_support_content_sources)' ],
880 'conditions': [ 910 'conditions': [
881 ['enable_plugins==0', { 911 ['enable_plugins==0', {
882 'sources!': [ 912 'sources!': [
883 'public/test/ppapi_test_utils.cc', 913 'public/test/ppapi_test_utils.cc',
884 'test/ppapi_unittest.cc', 914 'test/ppapi_unittest.cc',
885 ], 915 ],
886 }], 916 }],
887 ['enable_web_speech==0', { 917 ['enable_web_speech==0', {
888 'sources!': [ 918 'sources!': [
889 'test/mock_google_streaming_server.cc', 919 'test/mock_google_streaming_server.cc',
890 ], 920 ],
891 }], 921 }],
892 ['OS == "ios"', { 922 ['OS == "mac"', {
893 'sources/': [ 923 'copies': [{
894 # iOS only needs a small portion of content; exclude all the 924 'destination': '<(SHARED_INTERMEDIATE_DIR)/webkit',
895 # implementation, and re-include what is used. 925 'files': [
896 ['exclude', '\\.(cc|mm)$'], 926 'shell/resources/missingImage.png',
897 ['include', '_ios\\.(cc|mm)$'], 927 'shell/resources/textAreaResizeCorner.png',
898 ['include', '^public/test/mock_notification_observer\\.cc$'], 928 ],
899 ['include', '^public/test/mock_resource_context\\.cc$'], 929 }],
900 ['include', '^public/test/test_content_client_initializer\\.cc$'],
901 ['include', '^public/test/test_notification_tracker\\.cc$'],
902 ['include', '^public/test/test_utils\\.cc$'],
903 ['include', '^public/test/unittest_test_suite\\.cc$'],
904 ['include', '^test/test_content_browser_client\\.cc$'],
905 ['include', '^test/test_content_client\\.cc$'],
906 ],
907 }, { # OS != "ios"
908 'conditions': [
909 ['OS=="mac"', {
910 'copies': [{
911 'destination': '<(SHARED_INTERMEDIATE_DIR)/webkit',
912 'files': [
913 'shell/resources/missingImage.png',
914 'shell/resources/textAreaResizeCorner.png',
915 ],
916 }],
917 }],
918 ],
919 'dependencies': [
920 'content_test_mojo_bindings',
921 'content.gyp:content_app_both',
922 'content.gyp:content_child',
923 'content.gyp:content_common',
924 'content.gyp:content_gpu',
925 'content.gyp:content_plugin',
926 'content.gyp:content_ppapi_plugin',
927 'content.gyp:content_renderer',
928 'content.gyp:content_utility',
929 'content_shell_and_tests.gyp:content_shell_pak',
930 '../cc/blink/cc_blink.gyp:cc_blink',
931 '../cc/cc.gyp:cc',
932 '../cc/cc_tests.gyp:cc_test_support',
933 '../components/scheduler/scheduler.gyp:scheduler',
934 '../components/scheduler/scheduler.gyp:scheduler_test_support',
935 '../gpu/blink/gpu_blink.gyp:gpu_blink',
936 '../ipc/mojo/ipc_mojo.gyp:*',
937 '../media/blink/media_blink.gyp:media_blink',
938 '../media/media.gyp:media',
939 '../media/midi/midi.gyp:midi',
940 '../mojo/mojo_base.gyp:mojo_application_base',
941 '../mojo/mojo_edk.gyp:mojo_common_test_support',
942 '../mojo/mojo_public.gyp:mojo_cpp_bindings',
943 '../ppapi/ppapi_internal.gyp:ppapi_host',
944 '../ppapi/ppapi_internal.gyp:ppapi_proxy',
945 '../ppapi/ppapi_internal.gyp:ppapi_shared',
946 '../ppapi/ppapi_internal.gyp:ppapi_unittest_shared',
947 '../storage/storage_browser.gyp:storage',
948 '../storage/storage_common.gyp:storage_common',
949 '../third_party/WebKit/public/blink.gyp:blink',
950 '../ui/compositor/compositor.gyp:compositor_test_support',
951 '../ui/surface/surface.gyp:surface',
952 '../v8/tools/gyp/v8.gyp:v8',
953 ],
954 'export_dependent_settings': [
955 '../third_party/WebKit/public/blink.gyp:blink',
956 ],
957 }], 930 }],
958 ['OS == "win"', { 931 ['OS == "win"', {
959 'dependencies': [ 932 'dependencies': [
960 '../sandbox/sandbox.gyp:sandbox', 933 '../sandbox/sandbox.gyp:sandbox',
961 'content.gyp:sandbox_helper_win', 934 'content.gyp:sandbox_helper_win',
962 ], 935 ],
963 }], 936 }],
964 ['enable_webrtc==1', { 937 ['enable_webrtc==1', {
965 'sources': [ 938 'sources': [
966 'renderer/media/mock_data_channel_impl.cc', 939 'renderer/media/mock_data_channel_impl.cc',
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
1013 '../third_party/libvpx/libvpx.gyp:libvpx', 986 '../third_party/libvpx/libvpx.gyp:libvpx',
1014 ], 987 ],
1015 }], 988 }],
1016 ['OS=="android"', { 989 ['OS=="android"', {
1017 'dependencies': [ 990 'dependencies': [
1018 '../ui/android/ui_android.gyp:ui_android', 991 '../ui/android/ui_android.gyp:ui_android',
1019 '../ui/shell_dialogs/shell_dialogs.gyp:shell_dialogs', 992 '../ui/shell_dialogs/shell_dialogs.gyp:shell_dialogs',
1020 'content.gyp:content_shell_assets_copy', 993 'content.gyp:content_shell_assets_copy',
1021 ], 994 ],
1022 }], 995 }],
1023 ['v8_use_external_startup_data==1 and OS!="ios"', { 996 ['v8_use_external_startup_data==1', {
1024 'dependencies': [ 997 'dependencies': [
1025 '../gin/gin.gyp:gin', 998 '../gin/gin.gyp:gin',
1026 ], 999 ],
1027 }], 1000 }],
1028 ], 1001 ],
1029 }, 1002 },
1003 {
1004 # GN version: //content/test:layouttest_support
1005 'target_name': 'layouttest_support_content',
1006 'type': 'static_library',
1007 'dependencies': [
1008 'content.gyp:content_renderer',
1009 'test_support_content',
1010 '../components/test_runner/test_runner.gyp:test_runner',
1011 '../skia/skia.gyp:skia',
1012 '../ui/accessibility/accessibility.gyp:ax_gen',
1013 '../ui/base/ime/ui_base_ime.gyp:ui_base_ime',
1014 '../v8/tools/gyp/v8.gyp:v8',
1015 ],
1016 'include_dirs': [
1017 '..',
1018 '<(SHARED_INTERMEDIATE_DIR)',
1019 ],
1020 'sources': [ '<@(layouttest_support_content_sources)' ],
1021 'conditions': [
1022 ['OS=="android"', {
1023 'dependencies': [
1024 'test_support_content_jni_headers',
1025 ],
1026 }],
1027 ],
1028 },
1029 {
1030 # GN version: //content/test:content_unittests
1031 'target_name': 'content_unittests',
1032 'type': '<(gtest_target_type)',
1033 'dependencies': [
1034 'browser/background_sync/background_sync_proto.gyp:background_sync_proto ',
1035 'browser/cache_storage/cache_storage_proto.gyp:cache_storage_proto',
1036 'browser/notifications/notification_proto.gyp:notification_proto',
1037 'browser/service_worker/service_worker_proto.gyp:service_worker_proto',
1038 'browser/speech/proto/speech_proto.gyp:speech_proto',
1039 'content.gyp:content_browser',
1040 'content.gyp:content_child',
1041 'content.gyp:content_common',
1042 'content.gyp:content_gpu',
1043 'content.gyp:content_plugin',
1044 'content.gyp:content_renderer',
1045 'content.gyp:content_resources',
1046 'content_common_mojo_bindings.gyp:content_common_mojo_bindings',
1047 'test_support_content',
1048 '../base/base.gyp:test_support_base',
1049 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic _annotations',
1050 '../cc/cc.gyp:cc',
1051 '../cc/cc.gyp:cc_surfaces',
1052 '../cc/cc_tests.gyp:cc_test_support',
1053 '../crypto/crypto.gyp:crypto',
1054 '../device/battery/battery.gyp:device_battery',
1055 '../device/battery/battery.gyp:device_battery_mojo_bindings',
1056 '../device/bluetooth/bluetooth.gyp:device_bluetooth',
1057 '../gin/gin.gyp:gin',
1058 '../gpu/gpu.gyp:gpu',
1059 '../gpu/gpu.gyp:gpu_unittest_utils',
1060 '../ipc/ipc.gyp:test_support_ipc',
1061 '../media/media.gyp:media_test_support',
1062 '../media/media.gyp:shared_memory_support',
1063 '../mojo/mojo_edk.gyp:mojo_common_test_support',
1064 '../mojo/mojo_public.gyp:mojo_cpp_bindings',
1065 '../net/net.gyp:net_extras',
1066 '../net/net.gyp:net_test_support',
1067 '../skia/skia.gyp:skia',
1068 '../sql/sql.gyp:sql',
1069 '../sql/sql.gyp:test_support_sql',
1070 '../storage/storage_browser.gyp:storage',
1071 '../storage/storage_common.gyp:storage_common',
1072 '../testing/gmock.gyp:gmock',
1073 '../testing/gtest.gyp:gtest',
1074 '../third_party/icu/icu.gyp:icui18n',
1075 '../third_party/icu/icu.gyp:icuuc',
1076 '../third_party/leveldatabase/leveldatabase.gyp:leveldatabase',
1077 '../third_party/libjingle/libjingle.gyp:libjingle',
1078 '../third_party/re2/re2.gyp:re2',
1079 '../third_party/WebKit/public/blink.gyp:blink',
1080 '../ui/accessibility/accessibility.gyp:accessibility',
1081 '../ui/base/ui_base.gyp:ui_base',
1082 '../ui/events/blink/events_blink.gyp:events_blink',
1083 '../ui/gfx/gfx.gyp:gfx',
1084 '../ui/gfx/gfx.gyp:gfx_geometry',
1085 '../ui/gfx/ipc/gfx_ipc.gyp:gfx_ipc',
1086 '../ui/gl/gl.gyp:gl',
1087 '../ui/gl/gl.gyp:gl_test_support',
1088 ],
1089 'include_dirs': [
1090 '..',
1091 '<(SHARED_INTERMEDIATE_DIR)', # Needed by render_media_client_unittest. cc.
1092 ],
1093 'sources': [ '<@(content_unittests_sources)' ],
1094 'conditions': [
1095 ['OS != "win"', {
1096 'sources': [
1097 'browser/file_descriptor_info_impl_unittest.cc',
1098 ],
1099 }],
1100 ['OS == "mac"', {
1101 'dependencies': [
1102 '../third_party/ocmock/ocmock.gyp:ocmock',
1103 ],
1104 }],
1105 ['enable_plugins==1', {
1106 'sources': [ '<@(content_unittests_plugins_sources)' ],
1107 }],
1108 ['enable_webrtc==1', {
1109 'sources': [ '<@(content_unittests_webrtc_sources)' ],
1110 'dependencies': [
1111 '../third_party/libjingle/libjingle.gyp:libjingle_webrtc',
1112 '../third_party/libjingle/libjingle.gyp:libpeerconnection',
1113 '../third_party/webrtc/modules/modules.gyp:video_capture_module',
1114 '../ui/shell_dialogs/shell_dialogs.gyp:shell_dialogs',
1115 ],
1116 }],
1117 ['enable_webrtc==1 and enable_plugins==1', {
1118 'sources': [ '<@(content_unittests_plugin_webrtc_sources)' ],
1119 }],
1120 ['enable_webrtc==1 and (OS=="linux" or OS=="mac" or OS=="win")', {
1121 'sources': [
1122 'browser/media/capture/desktop_capture_device_unittest.cc',
1123 ],
1124 'dependencies': [
1125 '../third_party/webrtc/modules/modules.gyp:desktop_capture',
1126 ],
1127 }],
1128 ['enable_webrtc==1 and chromeos==1', {
1129 'sources': [
1130 'browser/media/capture/desktop_capture_device_aura_unittest.cc',
1131 ],
1132 }],
1133 ['enable_web_speech==1', {
1134 'sources': [ '<@(content_unittests_speech_sources)' ],
1135 }],
1136 ['OS=="linux" and use_dbus==1', {
1137 'dependencies': [
1138 '../build/linux/system.gyp:dbus',
1139 '../dbus/dbus.gyp:dbus_test_support',
1140 ],
1141 }],
1142 ['OS=="win"', {
1143 'dependencies': [
1144 '../third_party/iaccessible2/iaccessible2.gyp:iaccessible2',
1145 ],
1146 }],
1147 ['OS=="mac"', {
1148 # These flags are needed to run the test on Mac.
1149 # Search for comments about "xcode_settings" in chrome_tests.gypi.
1150 'xcode_settings': {'OTHER_LDFLAGS': ['-Wl,-ObjC']},
1151 }],
1152 ['chromeos==1', {
1153 'dependencies': [
1154 '../chromeos/chromeos.gyp:chromeos',
1155 ],
1156 'sources!': [
1157 'browser/geolocation/wifi_data_provider_linux_unittest.cc',
1158 ],
1159 }],
1160 ['use_aura==1', {
1161 'dependencies': [
1162 '../ui/aura/aura.gyp:aura',
1163 '../ui/aura_extra/aura_extra.gyp:aura_extra',
1164 '../ui/wm/wm.gyp:wm',
1165 ],
1166 }],
1167 ['use_aura==1 or toolkit_views==1', {
1168 'dependencies': [
1169 '../ui/events/events.gyp:events_test_support',
1170 ],
1171 }],
1172 ['use_aura!=1 and OS!="mac"', {
1173 'sources/': [
1174 ['exclude', '^browser/compositor/'],
1175 ],
1176 }],
1177 ['OS == "android"', {
1178 'sources': [ '<@(content_unittests_android_sources)' ],
1179 'sources!': [
1180 'browser/geolocation/network_location_provider_unittest.cc',
1181 'browser/geolocation/wifi_data_provider_common_unittest.cc',
1182 'browser/power_usage_monitor_impl_unittest.cc',
1183 'browser/renderer_host/begin_frame_observer_proxy_unittest.cc',
1184 'browser/webui/url_data_manager_backend_unittest.cc',
1185 'renderer/media/audio_track_recorder_unittest.cc',
1186 'renderer/media/media_recorder_handler_unittest.cc',
1187 'renderer/media/video_track_recorder_unittest.cc',
1188 ],
1189 'dependencies': [
1190 '../testing/android/native_test.gyp:native_test_native_code',
1191 ],
1192 'dependencies!': [
1193 '../device/battery/battery.gyp:device_battery',
1194 ],
1195 }, { # OS != "android"
1196 'dependencies': [
1197 '../third_party/libvpx/libvpx.gyp:libvpx',
1198 ],
1199 }],
1200 ['chromecast == 1', {
1201 'sources!': [
1202 'renderer/media/audio_track_recorder_unittest.cc',
1203 'renderer/media/media_recorder_handler_unittest.cc',
1204 'renderer/media/video_track_recorder_unittest.cc',
1205 ],
1206 }],
1207 # Avoid windows due to non-availability of cursor resources in test.
1208 ['OS != "linux"', {
1209 'sources!': [
1210 'browser/media/capture/cursor_renderer_aura_unittest.cc',
1211 ],
1212 }],
1213 ['use_aura!=1 and OS!="android"', {
1214 'sources!': [
1215 'browser/renderer_host/input/tap_suppression_controller_unittest.cc' ,
1216 ],
1217 }],
1218 ['use_dbus==0', {
1219 'sources!': [
1220 'browser/geolocation/wifi_data_provider_linux_unittest.cc',
1221 ],
1222 }],
1223 ['OS!="win" and OS!="mac"', {
1224 'sources!': [
1225 'common/plugin_list_unittest.cc',
1226 ],
1227 }],
1228 ['use_ozone==1', {
1229 'sources': [ '<@(content_unittests_ozone_sources)' ],
1230 'dependencies': [
1231 '../ui/ozone/ozone.gyp:ozone',
1232 '../ui/ozone/ozone.gyp:ozone_base',
1233 ],
1234 }],
1235 ['OS == "mac"', {
1236 'sources': [ '<@(content_unittests_mac_sources)' ],
1237 'dependencies': [
1238 '../third_party/boringssl/boringssl.gyp:boringssl',
1239 ],
1240 }],
1241 ],
1242 },
1243 {
1244 # GN version: //content/test:content_perftests
1245 'target_name': 'content_perftests',
1246 'type': '<(gtest_target_type)',
1247 'defines!': ['CONTENT_IMPLEMENTATION'],
1248 'dependencies': [
1249 'content.gyp:content_browser',
1250 'content.gyp:content_common',
1251 'test_support_content',
1252 '../base/base.gyp:test_support_base',
1253 '../cc/cc.gyp:cc',
1254 '../skia/skia.gyp:skia',
1255 '../testing/gtest.gyp:gtest',
1256 '../testing/perf/perf_test.gyp:*',
1257 '../ui/gfx/gfx.gyp:gfx',
1258 '../ui/gfx/gfx.gyp:gfx_geometry',
1259 ],
1260 'include_dirs': [
1261 '..',
1262 ],
1263 'sources': [
1264 'browser/renderer_host/input/input_router_impl_perftest.cc',
1265 'common/cc_messages_perftest.cc',
1266 'common/discardable_shared_memory_heap_perftest.cc',
1267 'test/run_all_perftests.cc',
1268 ],
1269 'conditions': [
1270 ['OS == "android"', {
1271 'dependencies': [
1272 '../testing/android/native_test.gyp:native_test_native_code',
1273 ],
1274 }],
1275 ],
1276 },
1277 {
1278 # GN version: //content/test:browsertest_support
1279 # content_browser_test_support can be used by targets that run
1280 # content_shell based browser tests.
1281 'target_name': 'content_browser_test_support',
1282 'type': 'static_library',
1283 'dependencies': [
1284 'content_shell_lib',
1285 '../skia/skia.gyp:skia',
1286 '../testing/gtest.gyp:gtest',
1287 '../ui/accessibility/accessibility.gyp:ax_gen',
1288 '../ui/base/ime/ui_base_ime.gyp:ui_base_ime',
1289 ],
1290 'export_dependent_settings': [
1291 '../skia/skia.gyp:skia',
1292 ],
1293 'sources': [
1294 # Source list duplicated in GN build.
1295 'public/test/content_browser_test.cc',
1296 'public/test/content_browser_test.h',
1297 'public/test/content_browser_test_utils.cc',
1298 'public/test/content_browser_test_utils.h',
1299 'public/test/content_browser_test_utils_mac.mm',
1300 'test/content_browser_test_utils_internal.cc',
1301 'test/content_browser_test_utils_internal.h',
1302 'test/content_test_launcher.cc',
1303 ],
1304 'include_dirs': [
1305 '<(SHARED_INTERMEDIATE_DIR)',
1306 ],
1307 'conditions': [
1308 ['OS=="android"', {
1309 'dependencies': [
1310 'content.gyp:content_app_both',
1311 ],
1312 }, {
1313 'dependencies': [
1314 'content.gyp:content_browser',
1315 ],
1316 }],
1317 ],
1318 },
1319 {
1320 # GN version: //content/test:browsertest_base
1321 # content_browser_test_base can be used by any browser test target.
1322 'target_name': 'content_browser_test_base',
1323 'type': 'static_library',
1324 'dependencies': [
1325 '../base/base.gyp:base',
1326 '../net/net.gyp:net_test_support',
1327 '../testing/gtest.gyp:gtest',
1328 '../third_party/WebKit/public/blink.gyp:blink',
1329 '../ui/base/ime/ui_base_ime.gyp:ui_base_ime',
1330 '../ui/base/ui_base.gyp:ui_base',
1331 '../ui/base/ui_base.gyp:ui_base_test_support',
1332 '../ui/events/events.gyp:events_test_support',
1333 'content.gyp:content_browser',
1334 'content.gyp:content_common',
1335 ],
1336 'export_dependent_settings': [
1337 'content.gyp:content_browser',
1338 '../third_party/WebKit/public/blink.gyp:blink',
1339 ],
1340 'sources': [
1341 # Source list duplicated in GN build.
1342 'public/test/browser_test.h',
1343 'public/test/browser_test_base.cc',
1344 'public/test/browser_test_base.h',
1345 'public/test/browser_test_utils.cc',
1346 'public/test/browser_test_utils.h',
1347 ],
1348 },
1349 {
1350 # GN version: //content/test:test_mojo_bindings
1351 'target_name': 'content_test_mojo_bindings',
1352 'type': 'static_library',
1353 'sources': [
1354 'public/test/test_mojo_service.mojom',
1355 ],
1356 'includes': [ '../mojo/mojom_bindings_generator.gypi' ],
1357 },
1358 {
1359 # GN version: //content/test:web_ui_test_mojo_bindings
1360 'target_name': 'web_ui_test_mojo_bindings',
1361 'type': 'static_library',
1362 'dependencies': [
1363 '../mojo/mojo_public.gyp:mojo_cpp_bindings',
1364 ],
1365 'sources': [
1366 'test/data/web_ui_test_mojo_bindings.mojom',
1367 ],
1368 'includes': [ '../mojo/mojom_bindings_generator.gypi' ],
1369 'export_dependent_settings': [
1370 '../mojo/mojo_public.gyp:mojo_cpp_bindings',
1371 ],
1372 },
1373 {
1374 # GN version: //content/tests:content_browsertests
1375 'target_name': 'content_browsertests',
1376 'type': '<(gtest_target_type)',
1377 'dependencies': [
1378 'browser/background_sync/background_sync_proto.gyp:background_sync_proto ',
1379 'content.gyp:content_common',
1380 'content.gyp:content_gpu',
1381 'content.gyp:content_plugin',
1382 'content.gyp:content_renderer',
1383 'content.gyp:content_resources',
1384 'content_browser_test_base',
1385 'content_browser_test_support',
1386 'content_common_mojo_bindings.gyp:content_common_mojo_bindings',
1387 'content_shell_lib',
1388 'content_shell_pak',
1389 'test_support_content',
1390 'web_ui_test_mojo_bindings',
1391 '../base/base.gyp:test_support_base',
1392 '../device/battery/battery.gyp:device_battery',
1393 '../device/battery/battery.gyp:device_battery_mojo_bindings',
1394 '../device/vibration/vibration.gyp:device_vibration_mojo_bindings',
1395 '../gin/gin.gyp:gin',
1396 '../gpu/gpu.gyp:gpu',
1397 '../ipc/ipc.gyp:test_support_ipc',
1398 '../media/media.gyp:media_test_support',
1399 '../media/media.gyp:shared_memory_support',
1400 '../mojo/mojo_base.gyp:mojo_application_base',
1401 '../mojo/mojo_base.gyp:mojo_test_support',
1402 '../mojo/mojo_edk.gyp:mojo_common_test_support',
1403 '../mojo/mojo_edk.gyp:mojo_system_impl',
1404 '../mojo/mojo_public.gyp:mojo_cpp_bindings',
1405 '../mojo/mojo_public.gyp:mojo_js_bindings',
1406 '../net/net.gyp:net_test_support',
1407 '../ppapi/ppapi_internal.gyp:ppapi_host',
1408 '../ppapi/ppapi_internal.gyp:ppapi_ipc',
1409 '../ppapi/ppapi_internal.gyp:ppapi_proxy',
1410 '../ppapi/ppapi_internal.gyp:ppapi_shared',
1411 '../ppapi/ppapi_internal.gyp:ppapi_unittest_shared',
1412 '../testing/gmock.gyp:gmock',
1413 '../testing/gtest.gyp:gtest',
1414 '../third_party/WebKit/public/blink.gyp:blink',
1415 '../third_party/leveldatabase/leveldatabase.gyp:leveldatabase',
1416 '../third_party/mesa/mesa.gyp:osmesa',
1417 '../third_party/zlib/zlib.gyp:zlib',
1418 '../ui/accessibility/accessibility.gyp:accessibility',
1419 '../ui/base/ui_base.gyp:ui_base',
1420 '../ui/gfx/gfx.gyp:gfx',
1421 '../ui/gfx/gfx.gyp:gfx_geometry',
1422 '../ui/gl/gl.gyp:gl',
1423 '../ui/gl/gl.gyp:gl_test_support',
1424 '../ui/resources/ui_resources.gyp:ui_resources',
1425 '../ui/shell_dialogs/shell_dialogs.gyp:shell_dialogs',
1426 '../ui/snapshot/snapshot.gyp:snapshot',
1427 '../ui/accessibility/accessibility.gyp:ax_gen',
1428 ],
1429 'include_dirs': [
1430 '..',
1431 '<(SHARED_INTERMEDIATE_DIR)', # Needed by encrypted_media_browsertest.c c
1432 ],
1433 'includes': [
1434 'browser/gpu/test_support_gpu.gypi',
1435 ],
1436 'defines': [
1437 'HAS_OUT_OF_PROC_TEST_RUNNER',
1438 ],
1439 'sources': [ '<@(content_browsertests_sources)' ],
1440 'conditions': [
1441 ['OS=="win"', {
1442 'resource_include_dirs': [
1443 '<(SHARED_INTERMEDIATE_DIR)/webkit',
1444 ],
1445 'sources': [
1446 '<@(content_browsertests_win_sources)',
1447 'shell/app/resource.h',
1448 'shell/app/shell.rc',
1449 ],
1450 'dependencies': [
1451 '<(DEPTH)/content/app/strings/content_strings.gyp:content_strings',
1452 '<(DEPTH)/media/media.gyp:media_features',
1453 '<(DEPTH)/net/net.gyp:net_resources',
1454 '<(DEPTH)/third_party/WebKit/public/blink_resources.gyp:blink_resour ces',
1455 '<(DEPTH)/third_party/iaccessible2/iaccessible2.gyp:iaccessible2',
1456 '<(DEPTH)/third_party/isimpledom/isimpledom.gyp:isimpledom',
1457 ],
1458 'configurations': {
1459 'Debug_Base': {
1460 'msvs_settings': {
1461 'VCLinkerTool': {
1462 'LinkIncremental': '<(msvs_large_module_debug_link_mode)',
1463 },
1464 },
1465 },
1466 },
1467 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
1468 'msvs_disabled_warnings': [ 4267, ],
1469 }],
1470 ['OS=="android"', {
1471 'sources': [ '<@(content_browsertests_android_sources)' ],
1472 'sources!': [
1473 'browser/battery_status/battery_monitor_impl_browsertest.cc',
1474 'browser/media/session/media_session_delegate_default_browsertest.cc ',
1475 ],
1476 'dependencies': [
1477 'content_shell_jni_headers',
1478 'content_shell_lib',
1479 '../testing/android/native_test.gyp:native_test_support',
1480 ],
1481 'dependencies!': [
1482 '../device/battery/battery.gyp:device_battery',
1483 ],
1484 }],
1485 ['OS=="mac"', {
1486 'dependencies': [
1487 'content_shell', # Needed for Content Shell.app's Helper.
1488 ],
1489 'sources': [
1490 'renderer/external_popup_menu_browsertest.cc',
1491 ],
1492 }],
1493 ['use_aura==1 or toolkit_views==1', {
1494 'dependencies': [
1495 '../ui/events/events.gyp:events_test_support',
1496 ],
1497 }],
1498 ['use_aura!=1 and OS!="mac"', {
1499 'sources!' :[
1500 'browser/compositor/image_transport_factory_browsertest.cc',
1501 ],
1502 }],
1503 ['use_aura==1', {
1504 'dependencies': [
1505 '../ui/touch_selection/ui_touch_selection.gyp:ui_touch_selection',
1506 '../ui/touch_selection/ui_touch_selection.gyp:ui_touch_selection_tes t_support',
1507 ]}, {
1508 'sources!': [
1509 'browser/renderer_host/input/touch_selection_controller_client_aura_ browsertest.cc',
1510 ],
1511 }],
1512 ['enable_webrtc==1', {
1513 'sources': [ '<@(content_browsertests_webrtc_sources)' ],
1514 'dependencies': [
1515 '../testing/perf/perf_test.gyp:perf_test',
1516 ],
1517 }],
1518 ['enable_plugins==1', {
1519 'sources': [ '<@(content_browsertests_plugins_sources)' ],
1520 'dependencies': [
1521 '../ppapi/ppapi_internal.gyp:ppapi_tests',
1522 ]
1523 }],
1524 ['enable_web_speech == 1', {
1525 'sources': [ '<@(content_browsertests_speech_sources)' ],
1526 }],
1527 ['branding != "Chrome"', {
1528 'sources': [ '<@(content_browsertests_unofficial_build_sources)' ],
1529 }],
1530 ],
1531 },
1532 {
1533 # GN version: //content/test:content_gl_tests
1534 'target_name': 'content_gl_tests',
1535 'type': '<(gtest_target_type)',
1536 'dependencies': [
1537 'content.gyp:content_common',
1538 'test_support_content',
1539 '../base/base.gyp:test_support_base',
1540 '../gpu/gpu.gyp:command_buffer_common',
1541 '../testing/gtest.gyp:gtest',
1542 '../third_party/WebKit/public/blink.gyp:blink',
1543 '../ui/base/ui_base.gyp:ui_base',
1544 '../ui/gfx/gfx.gyp:gfx',
1545 '../ui/gfx/gfx.gyp:gfx_geometry',
1546 '../ui/gfx/gfx.gyp:gfx_test_support',
1547 '../ui/gl/gl.gyp:gl',
1548 '../ui/gl/gl.gyp:gl_test_support',
1549 '../v8/tools/gyp/v8.gyp:v8',
1550 ],
1551 'include_dirs': [
1552 '..',
1553 ],
1554 'sources': [
1555 'browser/compositor/gl_helper_unittest.cc',
1556 'common/gpu/client/gpu_in_process_context_tests.cc',
1557 'test/run_all_gl_tests.cc',
1558 ],
1559 'conditions': [
1560 ['OS=="android"', {
1561 'dependencies': [
1562 '../testing/android/native_test.gyp:native_test_native_code',
1563 ],
1564 }, {
1565 'dependencies': [
1566 # Runtime dependencis.
1567 '../third_party/ffmpeg/ffmpeg.gyp:ffmpeg',
1568 '../third_party/mesa/mesa.gyp:osmesa',
1569 ],
1570 }],
1571 ],
1572 },
1573 {
1574 # GN version: //content/test:content_gl_benchmark
1575 'target_name': 'content_gl_benchmark',
1576 'type': '<(gtest_target_type)',
1577 'dependencies': [
1578 'content.gyp:content_common',
1579 'test_support_content',
1580 '../base/base.gyp:test_support_base',
1581 '../testing/gtest.gyp:gtest',
1582 '../third_party/WebKit/public/blink.gyp:blink',
1583 '../ui/base/ui_base.gyp:ui_base',
1584 '../ui/gfx/gfx.gyp:gfx',
1585 '../ui/gfx/gfx.gyp:gfx_geometry',
1586 '../ui/gl/gl.gyp:gl',
1587 '../ui/gl/gl.gyp:gl_test_support',
1588 ],
1589 'include_dirs': [
1590 '..',
1591 ],
1592 'sources': [
1593 'browser/compositor/gl_helper_benchmark.cc',
1594 'test/run_gl_benchmark.cc',
1595 ],
1596 },
1030 ], 1597 ],
1031 'conditions': [ 1598 'conditions': [
1032 ['test_isolation_mode != "noop"', { 1599 ['test_isolation_mode != "noop"', {
1033 'targets': [ 1600 'targets': [
1034 { 1601 {
1035 # GN: //content/test:content_site_isolation_browsertests_run 1602 # GN: //content/test:content_site_isolation_browsertests_run
1036 'target_name': 'content_site_isolation_browsertests_run', 1603 'target_name': 'content_site_isolation_browsertests_run',
1037 'type': 'none', 1604 'type': 'none',
1038 'dependencies': [ 1605 'dependencies': [
1039 'content_browsertests_run', 1606 'content_browsertests_run',
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
1097 '../build/isolate.gypi', 1664 '../build/isolate.gypi',
1098 ], 1665 ],
1099 'sources': [ 1666 'sources': [
1100 'content_gl_tests.isolate', 1667 'content_gl_tests.isolate',
1101 ], 1668 ],
1102 }, 1669 },
1103 ], 1670 ],
1104 }], 1671 }],
1105 ], 1672 ],
1106 }], 1673 }],
1107 ['OS!="ios"', {
1108 'targets': [
1109 {
1110 # GN version: //content/test:layouttest_support
1111 'target_name': 'layouttest_support_content',
1112 'type': 'static_library',
1113 'dependencies': [
1114 'content.gyp:content_renderer',
1115 'test_support_content',
1116 '../components/test_runner/test_runner.gyp:test_runner',
1117 '../skia/skia.gyp:skia',
1118 '../ui/accessibility/accessibility.gyp:ax_gen',
1119 '../ui/base/ime/ui_base_ime.gyp:ui_base_ime',
1120 '../v8/tools/gyp/v8.gyp:v8',
1121 ],
1122 'include_dirs': [
1123 '..',
1124 '<(SHARED_INTERMEDIATE_DIR)',
1125 ],
1126 'sources': [ '<@(layouttest_support_content_sources)' ],
1127 'conditions': [
1128 ['OS=="android"', {
1129 'dependencies': [
1130 'test_support_content_jni_headers',
1131 ],
1132 }],
1133 ],
1134 },
1135 {
1136 # GN version: //content/test:content_unittests
1137 'target_name': 'content_unittests',
1138 'type': '<(gtest_target_type)',
1139 'dependencies': [
1140 'browser/background_sync/background_sync_proto.gyp:background_sync_p roto',
1141 'browser/cache_storage/cache_storage_proto.gyp:cache_storage_proto',
1142 'browser/notifications/notification_proto.gyp:notification_proto',
1143 'browser/service_worker/service_worker_proto.gyp:service_worker_prot o',
1144 'browser/speech/proto/speech_proto.gyp:speech_proto',
1145 'content.gyp:content_browser',
1146 'content.gyp:content_child',
1147 'content.gyp:content_common',
1148 'content.gyp:content_gpu',
1149 'content.gyp:content_plugin',
1150 'content.gyp:content_renderer',
1151 'content.gyp:content_resources',
1152 'content_common_mojo_bindings.gyp:content_common_mojo_bindings',
1153 'test_support_content',
1154 '../base/base.gyp:test_support_base',
1155 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dyn amic_annotations',
1156 '../cc/cc.gyp:cc',
1157 '../cc/cc.gyp:cc_surfaces',
1158 '../cc/cc_tests.gyp:cc_test_support',
1159 '../crypto/crypto.gyp:crypto',
1160 '../device/battery/battery.gyp:device_battery',
1161 '../device/battery/battery.gyp:device_battery_mojo_bindings',
1162 '../device/bluetooth/bluetooth.gyp:device_bluetooth',
1163 '../gin/gin.gyp:gin',
1164 '../gpu/gpu.gyp:gpu',
1165 '../gpu/gpu.gyp:gpu_unittest_utils',
1166 '../ipc/ipc.gyp:test_support_ipc',
1167 '../media/media.gyp:media_test_support',
1168 '../media/media.gyp:shared_memory_support',
1169 '../mojo/mojo_edk.gyp:mojo_common_test_support',
1170 '../mojo/mojo_public.gyp:mojo_cpp_bindings',
1171 '../net/net.gyp:net_extras',
1172 '../net/net.gyp:net_test_support',
1173 '../skia/skia.gyp:skia',
1174 '../sql/sql.gyp:sql',
1175 '../sql/sql.gyp:test_support_sql',
1176 '../storage/storage_browser.gyp:storage',
1177 '../storage/storage_common.gyp:storage_common',
1178 '../testing/gmock.gyp:gmock',
1179 '../testing/gtest.gyp:gtest',
1180 '../third_party/icu/icu.gyp:icui18n',
1181 '../third_party/icu/icu.gyp:icuuc',
1182 '../third_party/leveldatabase/leveldatabase.gyp:leveldatabase',
1183 '../third_party/libjingle/libjingle.gyp:libjingle',
1184 '../third_party/re2/re2.gyp:re2',
1185 '../third_party/WebKit/public/blink.gyp:blink',
1186 '../ui/accessibility/accessibility.gyp:accessibility',
1187 '../ui/base/ui_base.gyp:ui_base',
1188 '../ui/events/blink/events_blink.gyp:events_blink',
1189 '../ui/gfx/gfx.gyp:gfx',
1190 '../ui/gfx/gfx.gyp:gfx_geometry',
1191 '../ui/gfx/ipc/gfx_ipc.gyp:gfx_ipc',
1192 '../ui/gl/gl.gyp:gl',
1193 '../ui/gl/gl.gyp:gl_test_support',
1194 ],
1195 'include_dirs': [
1196 '..',
1197 '<(SHARED_INTERMEDIATE_DIR)', # Needed by render_media_client_unitt est.cc.
1198 ],
1199 'sources': [ '<@(content_unittests_sources)' ],
1200 'conditions': [
1201 ['OS != "win"', {
1202 'sources': [
1203 'browser/file_descriptor_info_impl_unittest.cc',
1204 ],
1205 }],
1206 ['OS == "mac"', {
1207 'dependencies': [
1208 '../third_party/ocmock/ocmock.gyp:ocmock',
1209 ],
1210 }],
1211 ['enable_plugins==1', {
1212 'sources': [ '<@(content_unittests_plugins_sources)' ],
1213 }],
1214 ['enable_webrtc==1', {
1215 'sources': [ '<@(content_unittests_webrtc_sources)' ],
1216 'dependencies': [
1217 '../third_party/libjingle/libjingle.gyp:libjingle_webrtc',
1218 '../third_party/libjingle/libjingle.gyp:libpeerconnection',
1219 '../third_party/webrtc/modules/modules.gyp:video_capture_module' ,
1220 '../ui/shell_dialogs/shell_dialogs.gyp:shell_dialogs',
1221 ],
1222 }],
1223 ['enable_webrtc==1 and enable_plugins==1', {
1224 'sources': [ '<@(content_unittests_plugin_webrtc_sources)' ],
1225 }],
1226 ['enable_webrtc==1 and (OS=="linux" or OS=="mac" or OS=="win")', {
1227 'sources': [
1228 'browser/media/capture/desktop_capture_device_unittest.cc',
1229 ],
1230 'dependencies': [
1231 '../third_party/webrtc/modules/modules.gyp:desktop_capture',
1232 ],
1233 }],
1234 ['enable_webrtc==1 and chromeos==1', {
1235 'sources': [
1236 'browser/media/capture/desktop_capture_device_aura_unittest.cc',
1237 ],
1238 }],
1239 ['enable_web_speech==1', {
1240 'sources': [ '<@(content_unittests_speech_sources)' ],
1241 }],
1242 ['OS=="linux" and use_dbus==1', {
1243 'dependencies': [
1244 '../build/linux/system.gyp:dbus',
1245 '../dbus/dbus.gyp:dbus_test_support',
1246 ],
1247 }],
1248 ['OS=="win"', {
1249 'dependencies': [
1250 '../third_party/iaccessible2/iaccessible2.gyp:iaccessible2',
1251 ],
1252 }],
1253 ['OS=="mac"', {
1254 # These flags are needed to run the test on Mac.
1255 # Search for comments about "xcode_settings" in chrome_tests.gypi.
1256 'xcode_settings': {'OTHER_LDFLAGS': ['-Wl,-ObjC']},
1257 }],
1258 ['chromeos==1', {
1259 'dependencies': [
1260 '../chromeos/chromeos.gyp:chromeos',
1261 ],
1262 'sources!': [
1263 'browser/geolocation/wifi_data_provider_linux_unittest.cc',
1264 ],
1265 }],
1266 ['use_aura==1', {
1267 'dependencies': [
1268 '../ui/aura/aura.gyp:aura',
1269 '../ui/aura_extra/aura_extra.gyp:aura_extra',
1270 '../ui/wm/wm.gyp:wm',
1271 ],
1272 }],
1273 ['use_aura==1 or toolkit_views==1', {
1274 'dependencies': [
1275 '../ui/events/events.gyp:events_test_support',
1276 ],
1277 }],
1278 ['use_aura!=1 and OS!="mac"', {
1279 'sources/': [
1280 ['exclude', '^browser/compositor/'],
1281 ],
1282 }],
1283 ['OS == "android"', {
1284 'sources': [ '<@(content_unittests_android_sources)' ],
1285 'sources!': [
1286 'browser/geolocation/network_location_provider_unittest.cc',
1287 'browser/geolocation/wifi_data_provider_common_unittest.cc',
1288 'browser/power_usage_monitor_impl_unittest.cc',
1289 'browser/renderer_host/begin_frame_observer_proxy_unittest.cc',
1290 'browser/webui/url_data_manager_backend_unittest.cc',
1291 'renderer/media/audio_track_recorder_unittest.cc',
1292 'renderer/media/media_recorder_handler_unittest.cc',
1293 'renderer/media/video_track_recorder_unittest.cc',
1294 ],
1295 'dependencies': [
1296 '../testing/android/native_test.gyp:native_test_native_code',
1297 ],
1298 'dependencies!': [
1299 '../device/battery/battery.gyp:device_battery',
1300 ],
1301 }, { # OS != "android"
1302 'dependencies': [
1303 '../third_party/libvpx/libvpx.gyp:libvpx',
1304 ],
1305 }],
1306 ['chromecast == 1', {
1307 'sources!': [
1308 'renderer/media/audio_track_recorder_unittest.cc',
1309 'renderer/media/media_recorder_handler_unittest.cc',
1310 'renderer/media/video_track_recorder_unittest.cc',
1311 ],
1312 }],
1313 # Avoid windows due to non-availability of cursor resources in test.
1314 ['OS != "linux"', {
1315 'sources!': [
1316 'browser/media/capture/cursor_renderer_aura_unittest.cc',
1317 ],
1318 }],
1319 ['use_aura!=1 and OS!="android"', {
1320 'sources!': [
1321 'browser/renderer_host/input/tap_suppression_controller_unittest .cc',
1322 ],
1323 }],
1324 ['use_dbus==0', {
1325 'sources!': [
1326 'browser/geolocation/wifi_data_provider_linux_unittest.cc',
1327 ],
1328 }],
1329 ['OS!="win" and OS!="mac"', {
1330 'sources!': [
1331 'common/plugin_list_unittest.cc',
1332 ],
1333 }],
1334 ['use_ozone==1', {
1335 'sources': [ '<@(content_unittests_ozone_sources)' ],
1336 'dependencies': [
1337 '../ui/ozone/ozone.gyp:ozone',
1338 '../ui/ozone/ozone.gyp:ozone_base',
1339 ],
1340 }],
1341 ['OS == "mac"', {
1342 'sources': [ '<@(content_unittests_mac_sources)' ],
1343 'dependencies': [
1344 '../third_party/boringssl/boringssl.gyp:boringssl',
1345 ],
1346 }],
1347 ],
1348 },
1349 {
1350 # GN version: //content/test:content_perftests
1351 'target_name': 'content_perftests',
1352 'type': '<(gtest_target_type)',
1353 'defines!': ['CONTENT_IMPLEMENTATION'],
1354 'dependencies': [
1355 'content.gyp:content_browser',
1356 'content.gyp:content_common',
1357 'test_support_content',
1358 '../base/base.gyp:test_support_base',
1359 '../cc/cc.gyp:cc',
1360 '../skia/skia.gyp:skia',
1361 '../testing/gtest.gyp:gtest',
1362 '../testing/perf/perf_test.gyp:*',
1363 '../ui/gfx/gfx.gyp:gfx',
1364 '../ui/gfx/gfx.gyp:gfx_geometry',
1365 ],
1366 'include_dirs': [
1367 '..',
1368 ],
1369 'sources': [
1370 'browser/renderer_host/input/input_router_impl_perftest.cc',
1371 'common/cc_messages_perftest.cc',
1372 'common/discardable_shared_memory_heap_perftest.cc',
1373 'test/run_all_perftests.cc',
1374 ],
1375 'conditions': [
1376 ['OS == "android"', {
1377 'dependencies': [
1378 '../testing/android/native_test.gyp:native_test_native_code',
1379 ],
1380 }],
1381 ],
1382 },
1383 {
1384 # GN version: //content/test:browsertest_support
1385 # content_browser_test_support can be used by targets that run
1386 # content_shell based browser tests.
1387 'target_name': 'content_browser_test_support',
1388 'type': 'static_library',
1389 'dependencies': [
1390 'content_shell_lib',
1391 '../skia/skia.gyp:skia',
1392 '../testing/gtest.gyp:gtest',
1393 '../ui/accessibility/accessibility.gyp:ax_gen',
1394 '../ui/base/ime/ui_base_ime.gyp:ui_base_ime',
1395 ],
1396 'export_dependent_settings': [
1397 '../skia/skia.gyp:skia',
1398 ],
1399 'sources': [
1400 # Source list duplicated in GN build.
1401 'public/test/content_browser_test.cc',
1402 'public/test/content_browser_test.h',
1403 'public/test/content_browser_test_utils.cc',
1404 'public/test/content_browser_test_utils.h',
1405 'public/test/content_browser_test_utils_mac.mm',
1406 'test/content_browser_test_utils_internal.cc',
1407 'test/content_browser_test_utils_internal.h',
1408 'test/content_test_launcher.cc',
1409 ],
1410 'include_dirs': [
1411 '<(SHARED_INTERMEDIATE_DIR)',
1412 ],
1413 'conditions': [
1414 ['OS=="android"', {
1415 'dependencies': [
1416 'content.gyp:content_app_both',
1417 ],
1418 }, {
1419 'dependencies': [
1420 'content.gyp:content_browser',
1421 ],
1422 }],
1423 ],
1424 },
1425 {
1426 # GN version: //content/test:browsertest_base
1427 # content_browser_test_base can be used by any browser test target.
1428 'target_name': 'content_browser_test_base',
1429 'type': 'static_library',
1430 'dependencies': [
1431 '../base/base.gyp:base',
1432 '../net/net.gyp:net_test_support',
1433 '../testing/gtest.gyp:gtest',
1434 '../ui/base/ime/ui_base_ime.gyp:ui_base_ime',
1435 '../ui/base/ui_base.gyp:ui_base',
1436 '../ui/base/ui_base.gyp:ui_base_test_support',
1437 '../ui/events/events.gyp:events_test_support',
1438 'content.gyp:content_browser',
1439 'content.gyp:content_common',
1440 ],
1441 'export_dependent_settings': [
1442 'content.gyp:content_browser',
1443 ],
1444 'sources': [
1445 # Source list duplicated in GN build.
1446 'public/test/browser_test.h',
1447 'public/test/browser_test_base.cc',
1448 'public/test/browser_test_base.h',
1449 'public/test/browser_test_utils.cc',
1450 'public/test/browser_test_utils.h',
1451 ],
1452 'conditions': [
1453 ['OS != "ios"', {
1454 'dependencies': [ '../third_party/WebKit/public/blink.gyp:blink' ] ,
1455 'export_dependent_settings': [
1456 '../third_party/WebKit/public/blink.gyp:blink',
1457 ],
1458 }],
1459 ],
1460 },
1461 {
1462 # GN version: //content/test:test_mojo_bindings
1463 'target_name': 'content_test_mojo_bindings',
1464 'type': 'static_library',
1465 'sources': [
1466 'public/test/test_mojo_service.mojom',
1467 ],
1468 'includes': [ '../mojo/mojom_bindings_generator.gypi' ],
1469 },
1470 {
1471 # GN version: //content/test:web_ui_test_mojo_bindings
1472 'target_name': 'web_ui_test_mojo_bindings',
1473 'type': 'static_library',
1474 'dependencies': [
1475 '../mojo/mojo_public.gyp:mojo_cpp_bindings',
1476 ],
1477 'sources': [
1478 'test/data/web_ui_test_mojo_bindings.mojom',
1479 ],
1480 'includes': [ '../mojo/mojom_bindings_generator.gypi' ],
1481 'export_dependent_settings': [
1482 '../mojo/mojo_public.gyp:mojo_cpp_bindings',
1483 ],
1484 },
1485 {
1486 # GN version: //content/tests:content_browsertests
1487 'target_name': 'content_browsertests',
1488 'type': '<(gtest_target_type)',
1489 'dependencies': [
1490 'browser/background_sync/background_sync_proto.gyp:background_sync_p roto',
1491 'content.gyp:content_common',
1492 'content.gyp:content_gpu',
1493 'content.gyp:content_plugin',
1494 'content.gyp:content_renderer',
1495 'content.gyp:content_resources',
1496 'content_browser_test_base',
1497 'content_browser_test_support',
1498 'content_common_mojo_bindings.gyp:content_common_mojo_bindings',
1499 'content_shell_lib',
1500 'content_shell_pak',
1501 'test_support_content',
1502 'web_ui_test_mojo_bindings',
1503 '../base/base.gyp:test_support_base',
1504 '../device/battery/battery.gyp:device_battery',
1505 '../device/battery/battery.gyp:device_battery_mojo_bindings',
1506 '../device/vibration/vibration.gyp:device_vibration_mojo_bindings',
1507 '../gin/gin.gyp:gin',
1508 '../gpu/gpu.gyp:gpu',
1509 '../ipc/ipc.gyp:test_support_ipc',
1510 '../media/media.gyp:media_test_support',
1511 '../media/media.gyp:shared_memory_support',
1512 '../mojo/mojo_base.gyp:mojo_application_base',
1513 '../mojo/mojo_base.gyp:mojo_test_support',
1514 '../mojo/mojo_edk.gyp:mojo_common_test_support',
1515 '../mojo/mojo_edk.gyp:mojo_system_impl',
1516 '../mojo/mojo_public.gyp:mojo_cpp_bindings',
1517 '../mojo/mojo_public.gyp:mojo_js_bindings',
1518 '../net/net.gyp:net_test_support',
1519 '../ppapi/ppapi_internal.gyp:ppapi_host',
1520 '../ppapi/ppapi_internal.gyp:ppapi_ipc',
1521 '../ppapi/ppapi_internal.gyp:ppapi_proxy',
1522 '../ppapi/ppapi_internal.gyp:ppapi_shared',
1523 '../ppapi/ppapi_internal.gyp:ppapi_unittest_shared',
1524 '../testing/gmock.gyp:gmock',
1525 '../testing/gtest.gyp:gtest',
1526 '../third_party/WebKit/public/blink.gyp:blink',
1527 '../third_party/leveldatabase/leveldatabase.gyp:leveldatabase',
1528 '../third_party/mesa/mesa.gyp:osmesa',
1529 '../third_party/zlib/zlib.gyp:zlib',
1530 '../ui/accessibility/accessibility.gyp:accessibility',
1531 '../ui/base/ui_base.gyp:ui_base',
1532 '../ui/gfx/gfx.gyp:gfx',
1533 '../ui/gfx/gfx.gyp:gfx_geometry',
1534 '../ui/gl/gl.gyp:gl',
1535 '../ui/gl/gl.gyp:gl_test_support',
1536 '../ui/resources/ui_resources.gyp:ui_resources',
1537 '../ui/shell_dialogs/shell_dialogs.gyp:shell_dialogs',
1538 '../ui/snapshot/snapshot.gyp:snapshot',
1539 '../ui/accessibility/accessibility.gyp:ax_gen',
1540 ],
1541 'include_dirs': [
1542 '..',
1543 '<(SHARED_INTERMEDIATE_DIR)', # Needed by encrypted_media_browserte st.cc
1544 ],
1545 'includes': [
1546 'browser/gpu/test_support_gpu.gypi',
1547 ],
1548 'defines': [
1549 'HAS_OUT_OF_PROC_TEST_RUNNER',
1550 ],
1551 'sources': [ '<@(content_browsertests_sources)' ],
1552 'conditions': [
1553 ['OS=="win"', {
1554 'resource_include_dirs': [
1555 '<(SHARED_INTERMEDIATE_DIR)/webkit',
1556 ],
1557 'sources': [
1558 '<@(content_browsertests_win_sources)',
1559 'shell/app/resource.h',
1560 'shell/app/shell.rc',
1561 ],
1562 'dependencies': [
1563 '<(DEPTH)/content/app/strings/content_strings.gyp:content_string s',
1564 '<(DEPTH)/media/media.gyp:media_features',
1565 '<(DEPTH)/net/net.gyp:net_resources',
1566 '<(DEPTH)/third_party/WebKit/public/blink_resources.gyp:blink_re sources',
1567 '<(DEPTH)/third_party/iaccessible2/iaccessible2.gyp:iaccessible2 ',
1568 '<(DEPTH)/third_party/isimpledom/isimpledom.gyp:isimpledom',
1569 ],
1570 'configurations': {
1571 'Debug_Base': {
1572 'msvs_settings': {
1573 'VCLinkerTool': {
1574 'LinkIncremental': '<(msvs_large_module_debug_link_mode)',
1575 },
1576 },
1577 },
1578 },
1579 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
1580 'msvs_disabled_warnings': [ 4267, ],
1581 }],
1582 ['OS=="android"', {
1583 'sources': [ '<@(content_browsertests_android_sources)' ],
1584 'sources!': [
1585 'browser/battery_status/battery_monitor_impl_browsertest.cc',
1586 'browser/media/session/media_session_delegate_default_browsertes t.cc',
1587 ],
1588 'dependencies': [
1589 'content_shell_jni_headers',
1590 'content_shell_lib',
1591 '../testing/android/native_test.gyp:native_test_support',
1592 ],
1593 'dependencies!': [
1594 '../device/battery/battery.gyp:device_battery',
1595 ],
1596 }],
1597 ['OS=="mac"', {
1598 'dependencies': [
1599 'content_shell', # Needed for Content Shell.app's Helper.
1600 ],
1601 'sources': [
1602 'renderer/external_popup_menu_browsertest.cc',
1603 ],
1604 }],
1605 ['use_aura==1 or toolkit_views==1', {
1606 'dependencies': [
1607 '../ui/events/events.gyp:events_test_support',
1608 ],
1609 }],
1610 ['use_aura!=1 and OS!="mac"', {
1611 'sources!' :[
1612 'browser/compositor/image_transport_factory_browsertest.cc',
1613 ],
1614 }],
1615 ['use_aura==1', {
1616 'dependencies': [
1617 '../ui/touch_selection/ui_touch_selection.gyp:ui_touch_selection ',
1618 '../ui/touch_selection/ui_touch_selection.gyp:ui_touch_selection _test_support',
1619 ]}, {
1620 'sources!': [
1621 'browser/renderer_host/input/touch_selection_controller_client_a ura_browsertest.cc',
1622 ],
1623 }],
1624 ['enable_webrtc==1', {
1625 'sources': [ '<@(content_browsertests_webrtc_sources)' ],
1626 'dependencies': [
1627 '../testing/perf/perf_test.gyp:perf_test',
1628 ],
1629 }],
1630 ['enable_plugins==1', {
1631 'sources': [ '<@(content_browsertests_plugins_sources)' ],
1632 'dependencies': [
1633 '../ppapi/ppapi_internal.gyp:ppapi_tests',
1634 ]
1635 }],
1636 ['enable_web_speech == 1', {
1637 'sources': [ '<@(content_browsertests_speech_sources)' ],
1638 }],
1639 ['branding != "Chrome"', {
1640 'sources': [ '<@(content_browsertests_unofficial_build_sources)' ] ,
1641 }],
1642 ],
1643 },
1644 {
1645 # GN version: //content/test:content_gl_tests
1646 'target_name': 'content_gl_tests',
1647 'type': '<(gtest_target_type)',
1648 'dependencies': [
1649 'content.gyp:content_common',
1650 'test_support_content',
1651 '../base/base.gyp:test_support_base',
1652 '../gpu/gpu.gyp:command_buffer_common',
1653 '../testing/gtest.gyp:gtest',
1654 '../third_party/WebKit/public/blink.gyp:blink',
1655 '../ui/base/ui_base.gyp:ui_base',
1656 '../ui/gfx/gfx.gyp:gfx',
1657 '../ui/gfx/gfx.gyp:gfx_geometry',
1658 '../ui/gfx/gfx.gyp:gfx_test_support',
1659 '../ui/gl/gl.gyp:gl',
1660 '../ui/gl/gl.gyp:gl_test_support',
1661 '../v8/tools/gyp/v8.gyp:v8',
1662 ],
1663 'include_dirs': [
1664 '..',
1665 ],
1666 'sources': [
1667 'browser/compositor/gl_helper_unittest.cc',
1668 'common/gpu/client/gpu_in_process_context_tests.cc',
1669 'test/run_all_gl_tests.cc',
1670 ],
1671 'conditions': [
1672 ['OS=="android"', {
1673 'dependencies': [
1674 '../testing/android/native_test.gyp:native_test_native_code',
1675 ],
1676 }, {
1677 'dependencies': [
1678 # Runtime dependencis.
1679 '../third_party/ffmpeg/ffmpeg.gyp:ffmpeg',
1680 '../third_party/mesa/mesa.gyp:osmesa',
1681 ],
1682 }],
1683 ],
1684 },
1685 {
1686 # GN version: //content/test:content_gl_benchmark
1687 'target_name': 'content_gl_benchmark',
1688 'type': '<(gtest_target_type)',
1689 'dependencies': [
1690 'content.gyp:content_common',
1691 'test_support_content',
1692 '../base/base.gyp:test_support_base',
1693 '../testing/gtest.gyp:gtest',
1694 '../third_party/WebKit/public/blink.gyp:blink',
1695 '../ui/base/ui_base.gyp:ui_base',
1696 '../ui/gfx/gfx.gyp:gfx',
1697 '../ui/gfx/gfx.gyp:gfx_geometry',
1698 '../ui/gl/gl.gyp:gl',
1699 '../ui/gl/gl.gyp:gl_test_support',
1700 ],
1701 'include_dirs': [
1702 '..',
1703 ],
1704 'sources': [
1705 'browser/compositor/gl_helper_benchmark.cc',
1706 'test/run_gl_benchmark.cc',
1707 ],
1708 },
1709 ],
1710 }],
1711 ['chromeos==1 or OS=="win" or OS=="android"', { 1674 ['chromeos==1 or OS=="win" or OS=="android"', {
1712 'targets': [ 1675 'targets': [
1713 { 1676 {
1714 # TODO(GYP): Port Windows and ChromeOS logic. 1677 # TODO(GYP): Port Windows and ChromeOS logic.
1715 # GN: //content/test:video_decode_accelerator_unittest 1678 # GN: //content/test:video_decode_accelerator_unittest
1716 'target_name': 'video_decode_accelerator_unittest', 1679 'target_name': 'video_decode_accelerator_unittest',
1717 'type': '<(gtest_target_type)', 1680 'type': '<(gtest_target_type)',
1718 'dependencies': [ 1681 'dependencies': [
1719 '../base/base.gyp:base', 1682 '../base/base.gyp:base',
1720 '../media/media.gyp:media', 1683 '../media/media.gyp:media',
(...skipping 529 matching lines...) Expand 10 before | Expand all | Expand 10 after
2250 'content_unittests_apk.isolate', 2213 'content_unittests_apk.isolate',
2251 ], 2214 ],
2252 }, 2215 },
2253 ], 2216 ],
2254 }, 2217 },
2255 ], 2218 ],
2256 ], 2219 ],
2257 }], 2220 }],
2258 ], 2221 ],
2259 } 2222 }
OLDNEW
« no previous file with comments | « content/common/BUILD.gn ('k') | content/public/browser/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698