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

Side by Side Diff: android_webview/android_webview_tests.gypi

Issue 12609013: [android_webview] Build test code against the shell APK. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix up minsdkversoin Created 7 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 | Annotate | Revision Log
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 { 6 {
7 'target_name': 'android_webview_test_java', 7 'target_name': 'android_webview_apk',
8 'type': 'none', 8 'type': 'none',
9 'dependencies': [ 9 'dependencies': [
10 '../base/base.gyp:base_java_test_support', 10 'libwebviewchromium',
11 '../content/content.gyp:content_java_test_support',
12 '../net/net.gyp:net_java_test_support',
13 'android_webview_java', 11 'android_webview_java',
14 'libwebviewchromium', 12 'android_webview_pak',
15 ], 13 ],
16 'variables': { 14 'variables': {
17 'java_in_dir': '../android_webview/javatests', 15 'apk_name': 'AndroidWebView',
18 'has_java_resources': 1, 16 'java_in_dir': '../android_webview/test/shell',
19 'R_package': 'org.chromium.android_webview.test', 17 'native_libs_paths': ['<(SHARED_LIB_DIR)/libwebviewchromium.so'],
20 'R_package_relpath': 'org/chromium/android_webview/test', 18 'resource_dir': 'res',
21 },
22 'includes': [ '../build/java.gypi' ],
23 },
24 {
25 'target_name': 'android_webview_test_apk',
26 'type': 'none',
27 'dependencies': [
28 'android_webview_test_java',
29 ],
30 'variables': {
31 'apk_name': 'AndroidWebViewTest',
32 'java_in_dir': '../android_webview/test_apk',
33 'is_test_apk': 0, # We want resources from android_webview_test_java.
34 'additional_input_paths': [ 19 'additional_input_paths': [
35 '<(PRODUCT_DIR)/android_webview_test_apk/assets/asset_file.html', 20 '<(PRODUCT_DIR)/android_webview_apk/assets/webviewchromium.pak',
36 '<(PRODUCT_DIR)/android_webview_test_apk/assets/asset_icon.png', 21 '<(PRODUCT_DIR)/android_webview_apk/assets/asset_file.html',
37 '<(PRODUCT_DIR)/android_webview_test_apk/assets/full_screen_video_test .html', 22 '<(PRODUCT_DIR)/android_webview_apk/assets/asset_icon.png',
23 '<(PRODUCT_DIR)/android_webview_apk/assets/full_screen_video_test.html ',
38 ], 24 ],
39 }, 25 },
40 'copies': [ 26 'copies': [
41 { 27 {
42 'destination': '<(PRODUCT_DIR)/android_webview_test_apk/assets', 28 'destination': '<(PRODUCT_DIR)/android_webview_apk/assets',
43 'files': [ 29 'files': [
44 '<(java_in_dir)/assets/asset_file.html', 30 '<(java_in_dir)/assets/asset_file.html',
45 '<(java_in_dir)/assets/asset_icon.png', 31 '<(java_in_dir)/assets/asset_icon.png',
46 '<(java_in_dir)/assets/full_screen_video_test.html', 32 '<(java_in_dir)/assets/full_screen_video_test.html',
47 ], 33 ],
48 }, 34 },
49 ], 35 ],
50 'includes': [ '../build/java_apk.gypi' ], 36 'includes': [ '../build/java_apk.gypi' ],
51 }, 37 },
52 { 38 {
53 'target_name': 'android_webview_shell_apk', 39 # android_webview_apk creates a .jar as a side effect. Any java
40 # targets that need that .jar in their classpath should depend on this
41 # target. For more details see the chromium_testshell_java target.
42 'target_name': 'android_webview_apk_java',
54 'type': 'none', 43 'type': 'none',
55 'dependencies': [ 44 'dependencies': [
56 'android_webview_test_java', 45 'android_webview_apk',
57 'android_webview_pak', 46 ],
47 'all_dependent_settings': {
48 'variables': {
49 'input_jars_paths': ['>(apk_output_jar_path)'],
50 },
51 },
52 'actions': [
53 {
54 'action_name': 'fake_generate_jar',
55 'inputs': [],
56 'outputs': ['>(apk_output_jar_path)'],
57 'action': [],
58 },
59 ],
60 },
61 {
62 'target_name': 'android_webview_test_apk',
63 'type': 'none',
64 'dependencies': [
65 '../base/base.gyp:base_java_test_support',
66 '../content/content.gyp:content_java_test_support',
67 '../net/net.gyp:net_java_test_support',
68 'android_webview_apk_java',
58 ], 69 ],
59 'variables': { 70 'variables': {
60 'apk_name': 'AndroidWebViewShell', 71 'apk_name': 'AndroidWebViewTest',
61 'java_in_dir': '../android_webview/shell_apk', 72 'java_in_dir': '../android_webview/javatests',
62 'native_libs_paths': ['<(SHARED_LIB_DIR)/libwebviewchromium.so'], 73 'is_test_apk': 1,
63 'resource_dir': 'res',
64 'asset_location': '<(ant_build_out)/android_webview_apk/assets',
65 'additional_input_paths': [
66 '<(PRODUCT_DIR)/android_webview_apk/assets/webviewchromium.pak',
67 ],
68 }, 74 },
69 'includes': [ '../build/java_apk.gypi' ], 75 'includes': [ '../build/java_apk.gypi' ],
70 }, 76 },
71 { 77 {
72 'target_name': 'android_webview_unittests', 78 'target_name': 'android_webview_unittests',
73 'type': '<(gtest_target_type)', 79 'type': '<(gtest_target_type)',
74 'dependencies': [ 80 'dependencies': [
75 '../base/base.gyp:test_support_base', 81 '../base/base.gyp:test_support_base',
76 '../net/net.gyp:net_test_support', 82 '../net/net.gyp:net_test_support',
77 '../testing/android/native_test.gyp:native_test_native_code', 83 '../testing/android/native_test.gyp:native_test_native_code',
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
125 'android_webview_unittests_jni', 131 'android_webview_unittests_jni',
126 ], 132 ],
127 'variables': { 133 'variables': {
128 'test_suite_name': 'android_webview_unittests', 134 'test_suite_name': 'android_webview_unittests',
129 'input_shlib_path': '<(SHARED_LIB_DIR)/<(SHARED_LIB_PREFIX)android_webvi ew_unittests<(SHARED_LIB_SUFFIX)', 135 'input_shlib_path': '<(SHARED_LIB_DIR)/<(SHARED_LIB_PREFIX)android_webvi ew_unittests<(SHARED_LIB_SUFFIX)',
130 }, 136 },
131 'includes': [ '../build/apk_test.gypi' ], 137 'includes': [ '../build/apk_test.gypi' ],
132 }, 138 },
133 ], 139 ],
134 } 140 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698