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