don't pretend to support dbus on windows in dbus_export.h
[chromium-blink-merge.git] / android_webview / android_webview_tests.gypi
blob0419d60e724b70e5e20527c0136d6516e8ce9bee
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         'libwebviewchromium',
11         'android_webview_java',
12         'android_webview_pak',
13       ],
14       'variables': {
15         'apk_name': 'AndroidWebView',
16         'java_in_dir': 'test/shell',
17         'native_lib_target': 'libstandalonelibwebviewchromium',
18         'resource_dir': 'test/shell/res',
19         'extensions_to_not_compress': 'pak',
20         'additional_input_paths': [
21           '<(PRODUCT_DIR)/android_webview_apk/assets/webviewchromium.pak',
22           '<(PRODUCT_DIR)/android_webview_apk/assets/en-US.pak',
23           '<(PRODUCT_DIR)/android_webview_apk/assets/asset_file.html',
24           '<(PRODUCT_DIR)/android_webview_apk/assets/cookie_test.html',
25           '<(PRODUCT_DIR)/android_webview_apk/assets/asset_icon.png',
26           '<(PRODUCT_DIR)/android_webview_apk/assets/full_screen_video_test.html',
27         ],
28         'conditions': [
29           ['icu_use_data_file_flag==1', {
30             'additional_input_paths': [
31               '<(PRODUCT_DIR)/icudtl.dat',
32             ],
33           }],
34         ],
35       },
36       'copies': [
37         {
38           'destination': '<(PRODUCT_DIR)/android_webview_apk/assets',
39           'files': [
40             '<(java_in_dir)/assets/asset_file.html',
41             '<(java_in_dir)/assets/asset_icon.png',
42             '<(java_in_dir)/assets/cookie_test.html',
43             '<(java_in_dir)/assets/full_screen_video_test.html',
44           ],
45           'conditions': [
46             ['icu_use_data_file_flag==1', {
47               'files': [
48                 '<(PRODUCT_DIR)/icudtl.dat',
49               ],
50             }],
51           ],
52         },
53       ],
54       'includes': [ '../build/java_apk.gypi' ],
55     },
56     {
57       # android_webview_apk creates a .jar as a side effect. Any java
58       # targets that need that .jar in their classpath should depend on this
59       # target. For more details see the chrome_shell_apk_java target.
60       'target_name': 'android_webview_apk_java',
61       'type': 'none',
62       'dependencies': [
63         'android_webview_apk',
64       ],
65       'includes': [ '../build/apk_fake_jar.gypi' ],
66     },
67     {
68       'target_name': 'android_webview_test_apk',
69       'type': 'none',
70       'dependencies': [
71         '../base/base.gyp:base_java_test_support',
72         '../content/content_shell_and_tests.gyp:content_java_test_support',
73         '../net/net.gyp:net_java_test_support',
74         'android_webview_apk_java',
75       ],
76       'variables': {
77         'apk_name': 'AndroidWebViewTest',
78         'java_in_dir': '../android_webview/javatests',
79         'is_test_apk': 1,
80       },
81       'includes': [ '../build/java_apk.gypi' ],
82     },
83     {
84       'target_name': 'android_webview_unittests',
85       'type': '<(gtest_target_type)',
86       'dependencies': [
87         '../base/base.gyp:test_support_base',
88         '../content/content_shell_and_tests.gyp:test_support_content',
89         '../net/net.gyp:net_test_support',
90         '../testing/android/native_test.gyp:native_test_native_code',
91         '../testing/gmock.gyp:gmock',
92         '../testing/gtest.gyp:gtest',
93         '../ui/base/ui_base.gyp:ui_base_jni_headers',
94         'android_webview_common',
95         'android_webview_unittests_jni',
96       ],
97       'include_dirs': [
98         '..',
99         '../skia/config',
100         '<(SHARED_INTERMEDIATE_DIR)/android_webview_unittests',
101       ],
102       'sources': [
103         'browser/aw_static_cookie_policy_unittest.cc',
104         'browser/aw_form_database_service_unittest.cc',
105         'browser/global_tile_manager_unittest.cc',
106         'browser/net/android_stream_reader_url_request_job_unittest.cc',
107         'browser/net/input_stream_reader_unittest.cc',
108         'lib/main/webview_tests.cc',
109         'native/aw_contents_client_bridge_unittest.cc',
110         'native/aw_media_url_interceptor_unittest.cc',
111         'native/input_stream_unittest.cc',
112         'native/permission/media_access_permission_request_unittest.cc',
113         'native/permission/permission_request_handler_unittest.cc',
114         'native/state_serializer_unittest.cc',
115       ],
116     },
117     {
118       'target_name': 'android_webview_unittest_java',
119       'type': 'none',
120       'dependencies': [
121         '../base/base.gyp:base_java_test_support',
122         '../content/content_shell_and_tests.gyp:content_java_test_support',
123         'android_webview_java',
124       ],
125       'variables': {
126         'java_in_dir': '../android_webview/unittestjava',
127       },
128       'includes': [ '../build/java.gypi' ],
129     },
130     {
131       'target_name': 'android_webview_unittests_jni',
132       'type': 'none',
133       'sources': [
134           '../android_webview/unittestjava/src/org/chromium/android_webview/unittest/InputStreamUnittest.java',
135           '../android_webview/unittestjava/src/org/chromium/android_webview/unittest/MockAwContentsClientBridge.java',
136       ],
137       'variables': {
138         'jni_gen_package': 'android_webview_unittests',
139       },
140       'includes': [ '../build/jni_generator.gypi' ],
141     },
142     {
143       'target_name': 'android_webview_unittests_apk',
144       'type': 'none',
145       'dependencies': [
146         'android_webview_unittest_java',
147         'android_webview_unittests',
148       ],
149       'variables': {
150         'test_suite_name': 'android_webview_unittests',
151         'additional_input_paths': [
152           '<(PRODUCT_DIR)/android_webview_unittests_apk/assets/asset_file.ogg',
153         ],
154       },
155       'copies': [
156         {
157           'destination': '<(PRODUCT_DIR)/android_webview_unittests_apk/assets',
158           'files': [
159             'test/unittest/assets/asset_file.ogg',
160           ],
161         },
162       ],
163       'includes': [ '../build/apk_test.gypi' ],
164     },
165   ],