| OLD | NEW |
| (Empty) |
| 1 # Copyright (c) 2012 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 'targets': [ | |
| 6 # GN: //android_webview/test:android_webview_apk | |
| 7 { | |
| 8 'target_name': 'android_webview_apk', | |
| 9 'type': 'none', | |
| 10 'dependencies': [ | |
| 11 'libstandalonelibwebviewchromium', | |
| 12 'android_webview_java', | |
| 13 'android_webview_pak', | |
| 14 'libdrawgl', | |
| 15 '../base/base.gyp:base_java_test_support', | |
| 16 '../components/components.gyp:policy_java_test_support' | |
| 17 ], | |
| 18 'variables': { | |
| 19 'apk_name': 'AndroidWebView', | |
| 20 'java_in_dir': 'test/shell', | |
| 21 'native_lib_target': 'libstandalonelibwebviewchromium', | |
| 22 'native_lib_version_name': '<(version_full)', | |
| 23 'resource_dir': 'test/shell/res', | |
| 24 'extensions_to_not_compress': '.lpak,.pak,.dat,.bin', | |
| 25 'asset_location': '<(PRODUCT_DIR)/android_webview_apk/assets', | |
| 26 'extra_native_libs': ['<(SHARED_LIB_DIR)/libdrawgl.>(android_product_ext
ension)'], | |
| 27 'snapshot_copy_files': '<(snapshot_copy_files)', | |
| 28 'additional_input_paths': [ | |
| 29 '<(asset_location)/webviewchromium.pak', | |
| 30 '<(asset_location)/asset_file.html', | |
| 31 '<(asset_location)/cookie_test.html', | |
| 32 '<(asset_location)/asset_icon.png', | |
| 33 '<(asset_location)/full_screen_video.js', | |
| 34 '<(asset_location)/full_screen_video_test.html', | |
| 35 '<(asset_location)/full_screen_video_inside_div_test.html', | |
| 36 '<(asset_location)/multiple_videos_test.html', | |
| 37 '<(asset_location)/platform-media-codec-test.html', | |
| 38 '<(asset_location)/video.3gp', | |
| 39 '<(asset_location)/video.webm', | |
| 40 '<(asset_location)/visual_state_during_fullscreen_test.html', | |
| 41 '<(asset_location)/visual_state_waits_for_js_test.html', | |
| 42 '<(asset_location)/visual_state_waits_for_js_detached_test.html', | |
| 43 '<(asset_location)/visual_state_on_page_commit_visible_test.html', | |
| 44 '<@(snapshot_additional_input_paths)', | |
| 45 ], | |
| 46 'conditions': [ | |
| 47 ['icu_use_data_file_flag==1', { | |
| 48 'additional_input_paths': [ | |
| 49 '<(asset_location)/icudtl.dat', | |
| 50 ], | |
| 51 }], | |
| 52 ], | |
| 53 'includes': [ 'snapshot_copying.gypi' ], | |
| 54 }, | |
| 55 'copies': [ | |
| 56 { | |
| 57 'destination': '<(asset_location)', | |
| 58 'files': [ | |
| 59 '<(PRODUCT_DIR)/android_webview_assets/webviewchromium.pak', | |
| 60 '<(java_in_dir)/assets/asset_file.html', | |
| 61 '<(java_in_dir)/assets/asset_icon.png', | |
| 62 '<(java_in_dir)/assets/cookie_test.html', | |
| 63 '<(java_in_dir)/assets/full_screen_video.js', | |
| 64 '<(java_in_dir)/assets/full_screen_video_test.html', | |
| 65 '<(java_in_dir)/assets/full_screen_video_inside_div_test.html', | |
| 66 '<(java_in_dir)/assets/multiple_videos_test.html', | |
| 67 '<(java_in_dir)/assets/platform-media-codec-test.html', | |
| 68 '<(java_in_dir)/assets/video.3gp', | |
| 69 '<(java_in_dir)/assets/video.webm', | |
| 70 '<(java_in_dir)/assets/visual_state_during_fullscreen_test.html', | |
| 71 '<(java_in_dir)/assets/visual_state_waits_for_js_test.html', | |
| 72 '<(java_in_dir)/assets/visual_state_waits_for_js_detached_test.html'
, | |
| 73 '<(java_in_dir)/assets/visual_state_on_page_commit_visible_test.html
', | |
| 74 '<@(snapshot_copy_files)', | |
| 75 ], | |
| 76 'conditions': [ | |
| 77 ['icu_use_data_file_flag==1', { | |
| 78 'files': [ | |
| 79 '<(PRODUCT_DIR)/icudtl.dat', | |
| 80 ], | |
| 81 }], | |
| 82 ], | |
| 83 }, | |
| 84 ], | |
| 85 'includes': [ | |
| 86 '../build/java_apk.gypi', | |
| 87 '../build/util/version.gypi', | |
| 88 ], | |
| 89 }, | |
| 90 { | |
| 91 # android_webview_apk creates a .jar as a side effect. Any java | |
| 92 # targets that need that .jar in their classpath should depend on this | |
| 93 # target. For more details see the content_shell_apk_java target. | |
| 94 'target_name': 'android_webview_apk_java', | |
| 95 'type': 'none', | |
| 96 'dependencies': [ | |
| 97 'android_webview_apk', | |
| 98 ], | |
| 99 'includes': [ '../build/apk_fake_jar.gypi' ], | |
| 100 }, | |
| 101 # GN: //android_webview/test:android_webview_test_apk | |
| 102 { | |
| 103 'target_name': 'android_webview_test_apk', | |
| 104 'type': 'none', | |
| 105 'dependencies': [ | |
| 106 '../base/base.gyp:base_java_test_support', | |
| 107 '../components/components.gyp:policy_java_test_support', | |
| 108 '../content/content_shell_and_tests.gyp:content_java_test_support', | |
| 109 '../net/net.gyp:net_java_test_support', | |
| 110 '../testing/android/on_device_instrumentation.gyp:broker_java', | |
| 111 '../testing/android/on_device_instrumentation.gyp:require_driver_apk', | |
| 112 'android_webview_apk_java', | |
| 113 ], | |
| 114 'variables': { | |
| 115 'apk_name': 'AndroidWebViewTest', | |
| 116 'java_in_dir': '../android_webview/javatests', | |
| 117 'is_test_apk': 1, | |
| 118 'test_type': 'instrumentation', | |
| 119 'isolate_file': 'android_webview_test_data.isolate', | |
| 120 }, | |
| 121 'includes': [ | |
| 122 '../build/java_apk.gypi', | |
| 123 '../build/android/test_runner.gypi', | |
| 124 ], | |
| 125 }, | |
| 126 # GN: //android_webview/test:android_webview_unittests | |
| 127 { | |
| 128 'target_name': 'android_webview_unittests', | |
| 129 'type': '<(gtest_target_type)', | |
| 130 'dependencies': [ | |
| 131 '../base/base.gyp:test_support_base', | |
| 132 '../content/content_shell_and_tests.gyp:test_support_content', | |
| 133 '../net/net.gyp:net_test_support', | |
| 134 '../testing/android/native_test.gyp:native_test_native_code', | |
| 135 '../testing/gmock.gyp:gmock', | |
| 136 '../testing/gtest.gyp:gtest', | |
| 137 '../ui/base/ui_base.gyp:ui_base_jni_headers', | |
| 138 '../ui/gl/gl.gyp:gl', | |
| 139 '../ui/gl/init/gl_init.gyp:gl_init', | |
| 140 '../ui/gl/gl.gyp:gl_test_support', | |
| 141 'android_webview_common', | |
| 142 'android_webview_unittests_jni', | |
| 143 ], | |
| 144 'include_dirs': [ | |
| 145 '..', | |
| 146 '../skia/config', | |
| 147 '<(SHARED_INTERMEDIATE_DIR)/android_webview_unittests', | |
| 148 ], | |
| 149 'sources': [ | |
| 150 'browser/aw_form_database_service_unittest.cc', | |
| 151 'browser/aw_permission_manager_unittest.cc', | |
| 152 'browser/aw_static_cookie_policy_unittest.cc', | |
| 153 'browser/browser_view_renderer_unittest.cc', | |
| 154 'browser/net/android_stream_reader_url_request_job_unittest.cc', | |
| 155 'browser/net/aw_cookie_store_wrapper_unittest.cc', | |
| 156 'browser/net/input_stream_reader_unittest.cc', | |
| 157 'browser/test/fake_window.cc', | |
| 158 'browser/test/fake_window.h', | |
| 159 'browser/test/rendering_test.cc', | |
| 160 'browser/test/rendering_test.h', | |
| 161 'lib/main/webview_tests.cc', | |
| 162 'native/aw_contents_client_bridge_unittest.cc', | |
| 163 'native/aw_media_url_interceptor_unittest.cc', | |
| 164 'native/input_stream_unittest.cc', | |
| 165 'native/permission/media_access_permission_request_unittest.cc', | |
| 166 'native/permission/permission_request_handler_unittest.cc', | |
| 167 'native/state_serializer_unittest.cc', | |
| 168 ], | |
| 169 }, | |
| 170 # GN: //android_webview/test:android_webview_unittest_java | |
| 171 { | |
| 172 'target_name': 'android_webview_unittest_java', | |
| 173 'type': 'none', | |
| 174 'dependencies': [ | |
| 175 '../base/base.gyp:base_java_test_support', | |
| 176 '../content/content_shell_and_tests.gyp:content_java_test_support', | |
| 177 'android_webview_java', | |
| 178 ], | |
| 179 'variables': { | |
| 180 'java_in_dir': '../android_webview/unittestjava', | |
| 181 }, | |
| 182 'includes': [ '../build/java.gypi' ], | |
| 183 }, | |
| 184 # GN: //android_webview/test:android_webview_unittests_jni | |
| 185 { | |
| 186 'target_name': 'android_webview_unittests_jni', | |
| 187 'type': 'none', | |
| 188 'sources': [ | |
| 189 '../android_webview/unittestjava/src/org/chromium/android_webview/unit
test/InputStreamUnittest.java', | |
| 190 '../android_webview/unittestjava/src/org/chromium/android_webview/unit
test/MockAwContentsClientBridge.java', | |
| 191 ], | |
| 192 'variables': { | |
| 193 'jni_gen_package': 'android_webview_unittests', | |
| 194 }, | |
| 195 'includes': [ '../build/jni_generator.gypi' ], | |
| 196 }, | |
| 197 # GN: //android_webview/test:android_webview_unittests_apk | |
| 198 { | |
| 199 'target_name': 'android_webview_unittests_apk', | |
| 200 'type': 'none', | |
| 201 'dependencies': [ | |
| 202 'android_webview_unittest_java', | |
| 203 'android_webview_unittests', | |
| 204 ], | |
| 205 'variables': { | |
| 206 'test_suite_name': 'android_webview_unittests', | |
| 207 'additional_input_paths': [ | |
| 208 '<(PRODUCT_DIR)/android_webview_unittests_apk/assets/asset_file.ogg', | |
| 209 ], | |
| 210 }, | |
| 211 'copies': [ | |
| 212 { | |
| 213 'destination': '<(PRODUCT_DIR)/android_webview_unittests_apk/assets', | |
| 214 'files': [ | |
| 215 'test/unittest/assets/asset_file.ogg', | |
| 216 ], | |
| 217 }, | |
| 218 ], | |
| 219 'includes': [ '../build/apk_test.gypi' ], | |
| 220 }, | |
| 221 # GN: //android_webview/test:libdrawgl | |
| 222 { | |
| 223 'target_name': 'libdrawgl', | |
| 224 'type': 'shared_library', | |
| 225 # Do not depend on any other component here, since this target | |
| 226 # builds a separate shared library! | |
| 227 'include_dirs': [ | |
| 228 '..', | |
| 229 ], | |
| 230 'variables': { | |
| 231 # This library uses native JNI exports; tell gyp so that the required | |
| 232 # symbols will be kept. | |
| 233 'use_native_jni_exports': 1, | |
| 234 }, | |
| 235 'sources': [ | |
| 236 '../android_webview/test/shell/src/draw_gl/draw_gl.cc', | |
| 237 ], | |
| 238 }, | |
| 239 # GN: //android_webview/test:libstandalonelibwebviewchromium | |
| 240 { | |
| 241 'target_name': 'libstandalonelibwebviewchromium', | |
| 242 'includes': [ | |
| 243 'libwebviewchromium.gypi', | |
| 244 ], | |
| 245 }, | |
| 246 ], | |
| 247 'conditions': [ | |
| 248 ['test_isolation_mode != "noop"', | |
| 249 { | |
| 250 'targets': [ | |
| 251 { | |
| 252 'target_name': 'android_webview_test_apk_run', | |
| 253 'type': 'none', | |
| 254 'dependencies': [ | |
| 255 'android_webview_test_apk', | |
| 256 ], | |
| 257 'includes': [ | |
| 258 '../build/isolate.gypi', | |
| 259 ], | |
| 260 'sources': [ | |
| 261 'android_webview_test_apk.isolate', | |
| 262 ], | |
| 263 }, | |
| 264 { | |
| 265 'target_name': 'android_webview_unittests_apk_run', | |
| 266 'type': 'none', | |
| 267 'dependencies': [ | |
| 268 'android_webview_unittests_apk', | |
| 269 ], | |
| 270 'includes': [ | |
| 271 '../build/isolate.gypi', | |
| 272 ], | |
| 273 'sources': [ | |
| 274 'android_webview_unittests_apk.isolate', | |
| 275 ], | |
| 276 }, | |
| 277 ] | |
| 278 } | |
| 279 ], | |
| 280 ] | |
| 281 } | |
| OLD | NEW |