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