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

Side by Side Diff: android_webview/android_webview_tests.gypi

Issue 1547683003: Port android_webview_tests.gypi to GN. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@webview-tests-2
Patch Set: Add target x-refs Created 4 years, 11 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 | « android_webview/BUILD.gn ('k') | android_webview/test/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) 2012 The Chromium Authors. All rights reserved. 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 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 'targets': [ 5 'targets': [
6 # GN: //android_webview/test:android_webview_apk
6 { 7 {
7 'target_name': 'android_webview_apk', 8 'target_name': 'android_webview_apk',
8 'type': 'none', 9 'type': 'none',
9 'dependencies': [ 10 'dependencies': [
10 'libstandalonelibwebviewchromium', 11 'libstandalonelibwebviewchromium',
11 'android_webview_java', 12 'android_webview_java',
12 'android_webview_pak', 13 'android_webview_pak',
13 'libdrawgl', 14 'libdrawgl',
14 '../base/base.gyp:base_java_test_support', 15 '../base/base.gyp:base_java_test_support',
15 '../components/components.gyp:policy_java_test_support' 16 '../components/components.gyp:policy_java_test_support'
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
86 # android_webview_apk creates a .jar as a side effect. Any java 87 # android_webview_apk creates a .jar as a side effect. Any java
87 # targets that need that .jar in their classpath should depend on this 88 # targets that need that .jar in their classpath should depend on this
88 # target. For more details see the content_shell_apk_java target. 89 # target. For more details see the content_shell_apk_java target.
89 'target_name': 'android_webview_apk_java', 90 'target_name': 'android_webview_apk_java',
90 'type': 'none', 91 'type': 'none',
91 'dependencies': [ 92 'dependencies': [
92 'android_webview_apk', 93 'android_webview_apk',
93 ], 94 ],
94 'includes': [ '../build/apk_fake_jar.gypi' ], 95 'includes': [ '../build/apk_fake_jar.gypi' ],
95 }, 96 },
97 # GN: //android_webview/test:android_webview_test_apk
96 { 98 {
97 'target_name': 'android_webview_test_apk', 99 'target_name': 'android_webview_test_apk',
98 'type': 'none', 100 'type': 'none',
99 'dependencies': [ 101 'dependencies': [
100 '../base/base.gyp:base_java_test_support', 102 '../base/base.gyp:base_java_test_support',
101 '../components/components.gyp:policy_java_test_support', 103 '../components/components.gyp:policy_java_test_support',
102 '../content/content_shell_and_tests.gyp:content_java_test_support', 104 '../content/content_shell_and_tests.gyp:content_java_test_support',
103 '../net/net.gyp:net_java_test_support', 105 '../net/net.gyp:net_java_test_support',
104 '../testing/android/on_device_instrumentation.gyp:broker_java', 106 '../testing/android/on_device_instrumentation.gyp:broker_java',
105 '../testing/android/on_device_instrumentation.gyp:require_driver_apk', 107 '../testing/android/on_device_instrumentation.gyp:require_driver_apk',
106 'android_webview_apk_java', 108 'android_webview_apk_java',
107 ], 109 ],
108 'variables': { 110 'variables': {
109 'apk_name': 'AndroidWebViewTest', 111 'apk_name': 'AndroidWebViewTest',
110 'java_in_dir': '../android_webview/javatests', 112 'java_in_dir': '../android_webview/javatests',
111 'is_test_apk': 1, 113 'is_test_apk': 1,
112 'test_type': 'instrumentation', 114 'test_type': 'instrumentation',
113 'isolate_file': 'android_webview_test_apk.isolate', 115 'isolate_file': 'android_webview_test_apk.isolate',
114 }, 116 },
115 'includes': [ 117 'includes': [
116 '../build/java_apk.gypi', 118 '../build/java_apk.gypi',
117 '../build/android/test_runner.gypi', 119 '../build/android/test_runner.gypi',
118 ], 120 ],
119 }, 121 },
122 # GN: //android_webview/test:android_webview_unittests
120 { 123 {
121 'target_name': 'android_webview_unittests', 124 'target_name': 'android_webview_unittests',
122 'type': '<(gtest_target_type)', 125 'type': '<(gtest_target_type)',
123 'dependencies': [ 126 'dependencies': [
124 '../base/base.gyp:test_support_base', 127 '../base/base.gyp:test_support_base',
125 '../content/content_shell_and_tests.gyp:test_support_content', 128 '../content/content_shell_and_tests.gyp:test_support_content',
126 '../net/net.gyp:net_test_support', 129 '../net/net.gyp:net_test_support',
127 '../testing/android/native_test.gyp:native_test_native_code', 130 '../testing/android/native_test.gyp:native_test_native_code',
128 '../testing/gmock.gyp:gmock', 131 '../testing/gmock.gyp:gmock',
129 '../testing/gtest.gyp:gtest', 132 '../testing/gtest.gyp:gtest',
(...skipping 20 matching lines...) Expand all
150 'browser/test/rendering_test.h', 153 'browser/test/rendering_test.h',
151 'lib/main/webview_tests.cc', 154 'lib/main/webview_tests.cc',
152 'native/aw_contents_client_bridge_unittest.cc', 155 'native/aw_contents_client_bridge_unittest.cc',
153 'native/aw_media_url_interceptor_unittest.cc', 156 'native/aw_media_url_interceptor_unittest.cc',
154 'native/input_stream_unittest.cc', 157 'native/input_stream_unittest.cc',
155 'native/permission/media_access_permission_request_unittest.cc', 158 'native/permission/media_access_permission_request_unittest.cc',
156 'native/permission/permission_request_handler_unittest.cc', 159 'native/permission/permission_request_handler_unittest.cc',
157 'native/state_serializer_unittest.cc', 160 'native/state_serializer_unittest.cc',
158 ], 161 ],
159 }, 162 },
163 # GN: //android_webview/test:android_webview_unittest_java
160 { 164 {
161 'target_name': 'android_webview_unittest_java', 165 'target_name': 'android_webview_unittest_java',
162 'type': 'none', 166 'type': 'none',
163 'dependencies': [ 167 'dependencies': [
164 '../base/base.gyp:base_java_test_support', 168 '../base/base.gyp:base_java_test_support',
165 '../content/content_shell_and_tests.gyp:content_java_test_support', 169 '../content/content_shell_and_tests.gyp:content_java_test_support',
166 'android_webview_java', 170 'android_webview_java',
167 ], 171 ],
168 'variables': { 172 'variables': {
169 'java_in_dir': '../android_webview/unittestjava', 173 'java_in_dir': '../android_webview/unittestjava',
170 }, 174 },
171 'includes': [ '../build/java.gypi' ], 175 'includes': [ '../build/java.gypi' ],
172 }, 176 },
177 # GN: //android_webview/test:android_webview_unittests_jni
173 { 178 {
174 'target_name': 'android_webview_unittests_jni', 179 'target_name': 'android_webview_unittests_jni',
175 'type': 'none', 180 'type': 'none',
176 'sources': [ 181 'sources': [
177 '../android_webview/unittestjava/src/org/chromium/android_webview/unit test/InputStreamUnittest.java', 182 '../android_webview/unittestjava/src/org/chromium/android_webview/unit test/InputStreamUnittest.java',
178 '../android_webview/unittestjava/src/org/chromium/android_webview/unit test/MockAwContentsClientBridge.java', 183 '../android_webview/unittestjava/src/org/chromium/android_webview/unit test/MockAwContentsClientBridge.java',
179 ], 184 ],
180 'variables': { 185 'variables': {
181 'jni_gen_package': 'android_webview_unittests', 186 'jni_gen_package': 'android_webview_unittests',
182 }, 187 },
183 'includes': [ '../build/jni_generator.gypi' ], 188 'includes': [ '../build/jni_generator.gypi' ],
184 }, 189 },
190 # GN: //android_webview/test:android_webview_unittests_apk
185 { 191 {
186 'target_name': 'android_webview_unittests_apk', 192 'target_name': 'android_webview_unittests_apk',
187 'type': 'none', 193 'type': 'none',
188 'dependencies': [ 194 'dependencies': [
189 'android_webview_unittest_java', 195 'android_webview_unittest_java',
190 'android_webview_unittests', 196 'android_webview_unittests',
191 ], 197 ],
192 'variables': { 198 'variables': {
193 'test_suite_name': 'android_webview_unittests', 199 'test_suite_name': 'android_webview_unittests',
194 'additional_input_paths': [ 200 'additional_input_paths': [
195 '<(PRODUCT_DIR)/android_webview_unittests_apk/assets/asset_file.ogg', 201 '<(PRODUCT_DIR)/android_webview_unittests_apk/assets/asset_file.ogg',
196 ], 202 ],
197 }, 203 },
198 'copies': [ 204 'copies': [
199 { 205 {
200 'destination': '<(PRODUCT_DIR)/android_webview_unittests_apk/assets', 206 'destination': '<(PRODUCT_DIR)/android_webview_unittests_apk/assets',
201 'files': [ 207 'files': [
202 'test/unittest/assets/asset_file.ogg', 208 'test/unittest/assets/asset_file.ogg',
203 ], 209 ],
204 }, 210 },
205 ], 211 ],
206 'includes': [ '../build/apk_test.gypi' ], 212 'includes': [ '../build/apk_test.gypi' ],
207 }, 213 },
214 # GN: //android_webview/test:libdrawgl
208 { 215 {
209 'target_name': 'libdrawgl', 216 'target_name': 'libdrawgl',
210 'type': 'shared_library', 217 'type': 'shared_library',
211 # Do not depend on any other component here, since this target 218 # Do not depend on any other component here, since this target
212 # builds a separate shared library! 219 # builds a separate shared library!
213 'include_dirs': [ 220 'include_dirs': [
214 '..', 221 '..',
215 ], 222 ],
216 'variables': { 223 'variables': {
217 # This library uses native JNI exports; tell gyp so that the required 224 # This library uses native JNI exports; tell gyp so that the required
218 # symbols will be kept. 225 # symbols will be kept.
219 'use_native_jni_exports': 1, 226 'use_native_jni_exports': 1,
220 }, 227 },
221 'sources': [ 228 'sources': [
222 '../android_webview/test/shell/src/draw_gl/draw_gl.cc', 229 '../android_webview/test/shell/src/draw_gl/draw_gl.cc',
223 ], 230 ],
224 }, 231 },
232 # GN: //android_webview/test:libstandalonelibwebviewchromium
225 { 233 {
226 'target_name': 'libstandalonelibwebviewchromium', 234 'target_name': 'libstandalonelibwebviewchromium',
227 'includes': [ 235 'includes': [
228 'libwebviewchromium.gypi', 236 'libwebviewchromium.gypi',
229 ], 237 ],
230 }, 238 },
231 ], 239 ],
232 'conditions': [ 240 'conditions': [
233 ['test_isolation_mode != "noop"', 241 ['test_isolation_mode != "noop"',
234 { 242 {
(...skipping 22 matching lines...) Expand all
257 ], 265 ],
258 'sources': [ 266 'sources': [
259 'android_webview_unittests_apk.isolate', 267 'android_webview_unittests_apk.isolate',
260 ], 268 ],
261 }, 269 },
262 ] 270 ]
263 } 271 }
264 ], 272 ],
265 ] 273 ]
266 } 274 }
OLDNEW
« no previous file with comments | « android_webview/BUILD.gn ('k') | android_webview/test/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698