cygprofile: increase timeouts to allow showing web contents
[chromium-blink-merge.git] / android_webview / android_webview_tests.gypi
blobcd6d7385d914d7530bc4b258d40924f1ffee4bb9
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         'native_lib_version_name': '<(version_full)',
20         'resource_dir': 'test/shell/res',
21         'extensions_to_not_compress': '.lpak,.pak,.dat,.bin',
22         'asset_location': '<(PRODUCT_DIR)/android_webview_apk/assets',
23         'extra_native_libs': ['<(SHARED_LIB_DIR)/libdrawgl.>(android_product_extension)'],
24         'snapshot_copy_files': '<(snapshot_copy_files)',
25         'additional_input_paths': [
26           '<(asset_location)/webviewchromium.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           '<(asset_location)/visual_state_during_fullscreen_test.html',
36           '<(asset_location)/visual_state_waits_for_js_test.html',
37           '<(asset_location)/visual_state_on_page_commit_visible_test.html',
38           '<@(snapshot_additional_input_paths)',
39         ],
40         'conditions': [
41           ['icu_use_data_file_flag==1', {
42             'additional_input_paths': [
43               '<(asset_location)/icudtl.dat',
44             ],
45           }],
46         ],
47         'includes': [ 'snapshot_copying.gypi' ],
48       },
49       'copies': [
50         {
51           'destination': '<(asset_location)',
52           'files': [
53             '<(PRODUCT_DIR)/android_webview_assets/webviewchromium.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             '<(java_in_dir)/assets/visual_state_during_fullscreen_test.html',
63             '<(java_in_dir)/assets/visual_state_waits_for_js_test.html',
64             '<(java_in_dir)/assets/visual_state_on_page_commit_visible_test.html',
65             '<@(snapshot_copy_files)',
66           ],
67           'conditions': [
68             ['icu_use_data_file_flag==1', {
69               'files': [
70                 '<(PRODUCT_DIR)/icudtl.dat',
71               ],
72             }],
73           ],
74         },
75       ],
76       'includes': [
77         '../build/java_apk.gypi',
78         '../build/util/version.gypi',
79       ],
80     },
81     {
82       # android_webview_apk creates a .jar as a side effect. Any java
83       # targets that need that .jar in their classpath should depend on this
84       # target. For more details see the content_shell_apk_java target.
85       'target_name': 'android_webview_apk_java',
86       'type': 'none',
87       'dependencies': [
88         'android_webview_apk',
89       ],
90       'includes': [ '../build/apk_fake_jar.gypi' ],
91     },
92     {
93       'target_name': 'android_webview_test_apk',
94       'type': 'none',
95       'dependencies': [
96         '../base/base.gyp:base_java_test_support',
97         '../content/content_shell_and_tests.gyp:content_java_test_support',
98         '../net/net.gyp:net_java_test_support',
99         '../testing/android/on_device_instrumentation.gyp:broker_java',
100         '../testing/android/on_device_instrumentation.gyp:require_driver_apk',
101         'android_webview_apk_java',
102       ],
103       'variables': {
104         'apk_name': 'AndroidWebViewTest',
105         'java_in_dir': '../android_webview/javatests',
106         'is_test_apk': 1,
107         'test_type': 'instrumentation',
108         'isolate_file': 'android_webview_test_apk.isolate',
109       },
110       'includes': [
111         '../build/java_apk.gypi',
112         '../build/android/test_runner.gypi',
113       ],
114     },
115     {
116       'target_name': 'android_webview_unittests',
117       'type': '<(gtest_target_type)',
118       'dependencies': [
119         '../base/base.gyp:test_support_base',
120         '../content/content_shell_and_tests.gyp:test_support_content',
121         '../net/net.gyp:net_test_support',
122         '../testing/android/native_test.gyp:native_test_native_code',
123         '../testing/gmock.gyp:gmock',
124         '../testing/gtest.gyp:gtest',
125         '../ui/base/ui_base.gyp:ui_base_jni_headers',
126         '../ui/gl/gl.gyp:gl',
127         '../ui/gl/gl.gyp:gl_test_support',
128         'android_webview_common',
129         'android_webview_unittests_jni',
130       ],
131       'include_dirs': [
132         '..',
133         '../skia/config',
134         '<(SHARED_INTERMEDIATE_DIR)/android_webview_unittests',
135       ],
136       'sources': [
137         'browser/aw_static_cookie_policy_unittest.cc',
138         'browser/aw_form_database_service_unittest.cc',
139         'browser/browser_view_renderer_unittest.cc',
140         'browser/net/android_stream_reader_url_request_job_unittest.cc',
141         'browser/net/input_stream_reader_unittest.cc',
142         'browser/test/fake_window.cc',
143         'browser/test/fake_window.h',
144         'browser/test/rendering_test.cc',
145         'browser/test/rendering_test.h',
146         'lib/main/webview_tests.cc',
147         'native/aw_contents_client_bridge_unittest.cc',
148         'native/aw_media_url_interceptor_unittest.cc',
149         'native/input_stream_unittest.cc',
150         'native/permission/media_access_permission_request_unittest.cc',
151         'native/permission/permission_request_handler_unittest.cc',
152         'native/state_serializer_unittest.cc',
153       ],
154     },
155     {
156       'target_name': 'android_webview_unittest_java',
157       'type': 'none',
158       'dependencies': [
159         '../base/base.gyp:base_java_test_support',
160         '../content/content_shell_and_tests.gyp:content_java_test_support',
161         'android_webview_java',
162       ],
163       'variables': {
164         'java_in_dir': '../android_webview/unittestjava',
165       },
166       'includes': [ '../build/java.gypi' ],
167     },
168     {
169       'target_name': 'android_webview_unittests_jni',
170       'type': 'none',
171       'sources': [
172           '../android_webview/unittestjava/src/org/chromium/android_webview/unittest/InputStreamUnittest.java',
173           '../android_webview/unittestjava/src/org/chromium/android_webview/unittest/MockAwContentsClientBridge.java',
174       ],
175       'variables': {
176         'jni_gen_package': 'android_webview_unittests',
177       },
178       'includes': [ '../build/jni_generator.gypi' ],
179     },
180     {
181       'target_name': 'android_webview_unittests_apk',
182       'type': 'none',
183       'dependencies': [
184         'android_webview_unittest_java',
185         'android_webview_unittests',
186       ],
187       'variables': {
188         'test_suite_name': 'android_webview_unittests',
189         'additional_input_paths': [
190           '<(PRODUCT_DIR)/android_webview_unittests_apk/assets/asset_file.ogg',
191         ],
192       },
193       'copies': [
194         {
195           'destination': '<(PRODUCT_DIR)/android_webview_unittests_apk/assets',
196           'files': [
197             'test/unittest/assets/asset_file.ogg',
198           ],
199         },
200       ],
201       'includes': [ '../build/apk_test.gypi' ],
202     },
203     {
204       'target_name': 'libdrawgl',
205       'type': 'shared_library',
206       # Do not depend on any other component here, since this target
207       # builds a separate shared library!
208       'include_dirs': [
209         '..',
210       ],
211       'variables': {
212         # This library uses native JNI exports; tell gyp so that the required
213         # symbols will be kept.
214         'use_native_jni_exports': 1,
215       },
216       'sources': [
217           '../android_webview/test/shell/src/draw_gl/draw_gl.cc',
218       ],
219     },
220     {
221       'target_name': 'libstandalonelibwebviewchromium',
222       'includes': [
223         'libwebviewchromium.gypi',
224       ],
225     },
226   ],