Remove WAPI-related code, except the type definition of ResourceEntry.
[chromium-blink-merge.git] / android_webview / android_webview_tests.gypi
blob7c9043d090a401e5eb0f3934cf9661e03f416f36
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.
5   'targets': [
6     {
7       'target_name': 'android_webview_apk',
8       'type': 'none',
9       'dependencies': [
10         'libstandalonelibwebviewchromium',
11         'android_webview_java',
12         'android_webview_pak',
13         'libdrawgl',
14       ],
15       'variables': {
16         'apk_name': 'AndroidWebView',
17         'java_in_dir': 'test/shell',
18         'native_lib_target': 'libstandalonelibwebviewchromium',
19         'resource_dir': 'test/shell/res',
20         'extensions_to_not_compress': 'pak,dat,bin',
21         'extra_native_libs': ['<(SHARED_LIB_DIR)/libdrawgl.>(android_product_extension)'],
22         'additional_input_paths': [
23           '<(PRODUCT_DIR)/android_webview_apk/assets/webviewchromium.pak',
24           '<(PRODUCT_DIR)/android_webview_apk/assets/en-US.pak',
25           '<(PRODUCT_DIR)/android_webview_apk/assets/asset_file.html',
26           '<(PRODUCT_DIR)/android_webview_apk/assets/cookie_test.html',
27           '<(PRODUCT_DIR)/android_webview_apk/assets/asset_icon.png',
28           '<(PRODUCT_DIR)/android_webview_apk/assets/full_screen_video.js',
29           '<(PRODUCT_DIR)/android_webview_apk/assets/full_screen_video_test.html',
30           '<(PRODUCT_DIR)/android_webview_apk/assets/full_screen_video_inside_div_test.html',
31           '<(PRODUCT_DIR)/android_webview_apk/assets/multiple_videos_test.html',
32           '<(PRODUCT_DIR)/android_webview_apk/assets/video.mp4',
33         ],
34         'conditions': [
35           ['icu_use_data_file_flag==1', {
36             'additional_input_paths': [
37               '<(PRODUCT_DIR)/icudtl.dat',
38             ],
39           }],
40           ['v8_use_external_startup_data==1', {
41             'additional_input_paths': [
42               '<(PRODUCT_DIR)/natives_blob.bin',
43               '<(PRODUCT_DIR)/snapshot_blob.bin',
44             ],
45           }],
46         ],
47       },
48       'copies': [
49         {
50           'destination': '<(PRODUCT_DIR)/android_webview_apk/assets',
51           'files': [
52             '<(PRODUCT_DIR)/android_webview_assets/webviewchromium.pak',
53             '<(PRODUCT_DIR)/android_webview_assets/en-US.pak',
54             '<(java_in_dir)/assets/asset_file.html',
55             '<(java_in_dir)/assets/asset_icon.png',
56             '<(java_in_dir)/assets/cookie_test.html',
57             '<(java_in_dir)/assets/full_screen_video.js',
58             '<(java_in_dir)/assets/full_screen_video_test.html',
59             '<(java_in_dir)/assets/full_screen_video_inside_div_test.html',
60             '<(java_in_dir)/assets/multiple_videos_test.html',
61             '<(java_in_dir)/assets/video.mp4',
62           ],
63           'conditions': [
64             ['icu_use_data_file_flag==1', {
65               'files': [
66                 '<(PRODUCT_DIR)/icudtl.dat',
67               ],
68             }],
69             ['v8_use_external_startup_data==1', {
70               'files': [
71                 '<(PRODUCT_DIR)/natives_blob.bin',
72                 '<(PRODUCT_DIR)/snapshot_blob.bin',
73               ],
74             }],
75           ],
76         },
77       ],
78       'includes': [ '../build/java_apk.gypi' ],
79     },
80     {
81       # android_webview_apk creates a .jar as a side effect. Any java
82       # targets that need that .jar in their classpath should depend on this
83       # target. For more details see the chrome_shell_apk_java target.
84       'target_name': 'android_webview_apk_java',
85       'type': 'none',
86       'dependencies': [
87         'android_webview_apk',
88       ],
89       'includes': [ '../build/apk_fake_jar.gypi' ],
90     },
91     {
92       'target_name': 'android_webview_test_apk',
93       'type': 'none',
94       'dependencies': [
95         '../base/base.gyp:base_java_test_support',
96         '../content/content_shell_and_tests.gyp:content_java_test_support',
97         '../net/net.gyp:net_java_test_support',
98         'android_webview_apk_java',
99       ],
100       'variables': {
101         'apk_name': 'AndroidWebViewTest',
102         'java_in_dir': '../android_webview/javatests',
103         'is_test_apk': 1,
104       },
105       'includes': [ '../build/java_apk.gypi' ],
106     },
107     {
108       'target_name': 'android_webview_unittests',
109       'type': '<(gtest_target_type)',
110       'dependencies': [
111         '../base/base.gyp:test_support_base',
112         '../content/content_shell_and_tests.gyp:test_support_content',
113         '../net/net.gyp:net_test_support',
114         '../testing/android/native_test.gyp:native_test_native_code',
115         '../testing/gmock.gyp:gmock',
116         '../testing/gtest.gyp:gtest',
117         '../ui/base/ui_base.gyp:ui_base_jni_headers',
118         '../ui/gl/gl.gyp:gl',
119         'android_webview_common',
120         'android_webview_unittests_jni',
121       ],
122       'include_dirs': [
123         '..',
124         '../skia/config',
125         '<(SHARED_INTERMEDIATE_DIR)/android_webview_unittests',
126       ],
127       'sources': [
128         'browser/aw_static_cookie_policy_unittest.cc',
129         'browser/aw_form_database_service_unittest.cc',
130         'browser/browser_view_renderer_unittest.cc',
131         'browser/net/android_stream_reader_url_request_job_unittest.cc',
132         'browser/net/input_stream_reader_unittest.cc',
133         'browser/test/fake_window.cc',
134         'browser/test/fake_window.h',
135         'browser/test/rendering_test.cc',
136         'browser/test/rendering_test.h',
137         'lib/main/webview_tests.cc',
138         'native/aw_contents_client_bridge_unittest.cc',
139         'native/aw_media_url_interceptor_unittest.cc',
140         'native/input_stream_unittest.cc',
141         'native/permission/media_access_permission_request_unittest.cc',
142         'native/permission/permission_request_handler_unittest.cc',
143         'native/state_serializer_unittest.cc',
144       ],
145     },
146     {
147       'target_name': 'android_webview_unittest_java',
148       'type': 'none',
149       'dependencies': [
150         '../base/base.gyp:base_java_test_support',
151         '../content/content_shell_and_tests.gyp:content_java_test_support',
152         'android_webview_java',
153       ],
154       'variables': {
155         'java_in_dir': '../android_webview/unittestjava',
156       },
157       'includes': [ '../build/java.gypi' ],
158     },
159     {
160       'target_name': 'android_webview_unittests_jni',
161       'type': 'none',
162       'sources': [
163           '../android_webview/unittestjava/src/org/chromium/android_webview/unittest/InputStreamUnittest.java',
164           '../android_webview/unittestjava/src/org/chromium/android_webview/unittest/MockAwContentsClientBridge.java',
165       ],
166       'variables': {
167         'jni_gen_package': 'android_webview_unittests',
168       },
169       'includes': [ '../build/jni_generator.gypi' ],
170     },
171     {
172       'target_name': 'android_webview_unittests_apk',
173       'type': 'none',
174       'dependencies': [
175         'android_webview_unittest_java',
176         'android_webview_unittests',
177       ],
178       'variables': {
179         'test_suite_name': 'android_webview_unittests',
180         'additional_input_paths': [
181           '<(PRODUCT_DIR)/android_webview_unittests_apk/assets/asset_file.ogg',
182         ],
183       },
184       'copies': [
185         {
186           'destination': '<(PRODUCT_DIR)/android_webview_unittests_apk/assets',
187           'files': [
188             'test/unittest/assets/asset_file.ogg',
189           ],
190         },
191       ],
192       'includes': [ '../build/apk_test.gypi' ],
193     },
194     {
195       'target_name': 'libdrawgl',
196       'type': 'shared_library',
197       # Do not depend on any other component here, since this target
198       # builds a separate shared library!
199       'include_dirs': [
200         '..',
201       ],
202       'sources': [
203           '../android_webview/test/shell/src/draw_gl/draw_gl.cc',
204       ],
205     },
206     {
207       'target_name': 'libstandalonelibwebviewchromium',
208       'includes': [
209         'libwebviewchromium.gypi',
210       ],
211     },
212   ],