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