Fix WeakPtrFactory members in Android media classes
[chromium-blink-merge.git] / android_webview / android_webview_tests.gypi
blob10ee545af3bfe6cb5e26bb25ddb002098d14bd5f
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/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         '../ui/gl/gl.gyp:gl',
117         'android_webview_common',
118         'android_webview_unittests_jni',
119       ],
120       'include_dirs': [
121         '..',
122         '../skia/config',
123         '<(SHARED_INTERMEDIATE_DIR)/android_webview_unittests',
124       ],
125       'sources': [
126         'browser/aw_static_cookie_policy_unittest.cc',
127         'browser/aw_form_database_service_unittest.cc',
128         'browser/browser_view_renderer_unittest.cc',
129         'browser/net/android_stream_reader_url_request_job_unittest.cc',
130         'browser/net/input_stream_reader_unittest.cc',
131         'browser/test/fake_window.cc',
132         'browser/test/fake_window.h',
133         'browser/test/rendering_test.cc',
134         'browser/test/rendering_test.h',
135         'lib/main/webview_tests.cc',
136         'native/aw_contents_client_bridge_unittest.cc',
137         'native/aw_media_url_interceptor_unittest.cc',
138         'native/input_stream_unittest.cc',
139         'native/permission/media_access_permission_request_unittest.cc',
140         'native/permission/permission_request_handler_unittest.cc',
141         'native/state_serializer_unittest.cc',
142       ],
143     },
144     {
145       'target_name': 'android_webview_unittest_java',
146       'type': 'none',
147       'dependencies': [
148         '../base/base.gyp:base_java_test_support',
149         '../content/content_shell_and_tests.gyp:content_java_test_support',
150         'android_webview_java',
151       ],
152       'variables': {
153         'java_in_dir': '../android_webview/unittestjava',
154       },
155       'includes': [ '../build/java.gypi' ],
156     },
157     {
158       'target_name': 'android_webview_unittests_jni',
159       'type': 'none',
160       'sources': [
161           '../android_webview/unittestjava/src/org/chromium/android_webview/unittest/InputStreamUnittest.java',
162           '../android_webview/unittestjava/src/org/chromium/android_webview/unittest/MockAwContentsClientBridge.java',
163       ],
164       'variables': {
165         'jni_gen_package': 'android_webview_unittests',
166       },
167       'includes': [ '../build/jni_generator.gypi' ],
168     },
169     {
170       'target_name': 'android_webview_unittests_apk',
171       'type': 'none',
172       'dependencies': [
173         'android_webview_unittest_java',
174         'android_webview_unittests',
175       ],
176       'variables': {
177         'test_suite_name': 'android_webview_unittests',
178         'additional_input_paths': [
179           '<(PRODUCT_DIR)/android_webview_unittests_apk/assets/asset_file.ogg',
180         ],
181       },
182       'copies': [
183         {
184           'destination': '<(PRODUCT_DIR)/android_webview_unittests_apk/assets',
185           'files': [
186             'test/unittest/assets/asset_file.ogg',
187           ],
188         },
189       ],
190       'includes': [ '../build/apk_test.gypi' ],
191     },
192     {
193       'target_name': 'libdrawgl',
194       'type': 'shared_library',
195       # Do not depend on any other component here, since this target
196       # builds a separate shared library!
197       'include_dirs': [
198         '..',
199       ],
200       'sources': [
201           '../android_webview/test/shell/src/draw_gl/draw_gl.cc',
202       ],
203     },
204     {
205       'target_name': 'libstandalonelibwebviewchromium',
206       'includes': [
207         'libwebviewchromium.gypi',
208       ],
209     },
210   ],