ProfilePolicyConnectorFactory: Refactoring from Profile to BrowserContext.
[chromium-blink-merge.git] / android_webview / android_webview_tests.gypi
blob4d57f7c7da8e8a0977efd69017234fee3380a6cc
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           '<(asset_location)/visual_state_waits_for_js_test.html',
36           '<@(snapshot_additional_input_paths)',
37         ],
38         'conditions': [
39           ['icu_use_data_file_flag==1', {
40             'additional_input_paths': [
41               '<(asset_location)/icudtl.dat',
42             ],
43           }],
44         ],
45         'includes': [ 'snapshot_copying.gypi' ],
46       },
47       'copies': [
48         {
49           'destination': '<(asset_location)',
50           'files': [
51             '<(PRODUCT_DIR)/android_webview_assets/webviewchromium.pak',
52             '<(PRODUCT_DIR)/android_webview_assets/locales/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/multiple_videos_test.html',
60             '<(java_in_dir)/assets/video.mp4',
61             '<(java_in_dir)/assets/visual_state_waits_for_js_test.html',
62             '<@(snapshot_copy_files)',
63           ],
64           'conditions': [
65             ['icu_use_data_file_flag==1', {
66               'files': [
67                 '<(PRODUCT_DIR)/icudtl.dat',
68               ],
69             }],
70           ],
71         },
72       ],
73       'includes': [ '../build/java_apk.gypi' ],
74     },
75     {
76       # android_webview_apk creates a .jar as a side effect. Any java
77       # targets that need that .jar in their classpath should depend on this
78       # target. For more details see the chrome_shell_apk_java target.
79       'target_name': 'android_webview_apk_java',
80       'type': 'none',
81       'dependencies': [
82         'android_webview_apk',
83       ],
84       'includes': [ '../build/apk_fake_jar.gypi' ],
85     },
86     {
87       'target_name': 'android_webview_test_apk',
88       'type': 'none',
89       'dependencies': [
90         '../base/base.gyp:base_java_test_support',
91         '../content/content_shell_and_tests.gyp:content_java_test_support',
92         '../net/net.gyp:net_java_test_support',
93         'android_webview_apk_java',
94       ],
95       'variables': {
96         'apk_name': 'AndroidWebViewTest',
97         'java_in_dir': '../android_webview/javatests',
98         'is_test_apk': 1,
99       },
100       'includes': [ '../build/java_apk.gypi' ],
101     },
102     {
103       'target_name': 'android_webview_unittests',
104       'type': '<(gtest_target_type)',
105       'dependencies': [
106         '../base/base.gyp:test_support_base',
107         '../content/content_shell_and_tests.gyp:test_support_content',
108         '../net/net.gyp:net_test_support',
109         '../testing/android/native_test.gyp:native_test_native_code',
110         '../testing/gmock.gyp:gmock',
111         '../testing/gtest.gyp:gtest',
112         '../ui/base/ui_base.gyp:ui_base_jni_headers',
113         '../ui/gl/gl.gyp:gl',
114         'android_webview_common',
115         'android_webview_unittests_jni',
116       ],
117       'include_dirs': [
118         '..',
119         '../skia/config',
120         '<(SHARED_INTERMEDIATE_DIR)/android_webview_unittests',
121       ],
122       'sources': [
123         'browser/aw_static_cookie_policy_unittest.cc',
124         'browser/aw_form_database_service_unittest.cc',
125         'browser/browser_view_renderer_unittest.cc',
126         'browser/net/android_stream_reader_url_request_job_unittest.cc',
127         'browser/net/input_stream_reader_unittest.cc',
128         'browser/test/fake_window.cc',
129         'browser/test/fake_window.h',
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   ],