Currently duration is simply returned or changed without checking whether the stream...
[chromium-blink-merge.git] / android_webview / android_webview_tests.gypi
blob5ad85fe6c1c2c7fa5c91fe14af35ed1fe3ac9022
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       },
26       'copies': [
27         {
28           'destination': '<(PRODUCT_DIR)/android_webview_apk/assets',
29           'files': [
30             '<(java_in_dir)/assets/asset_file.html',
31             '<(java_in_dir)/assets/asset_icon.png',
32             '<(java_in_dir)/assets/full_screen_video_test.html',
33           ],
34         },
35       ],
36       'includes': [ '../build/java_apk.gypi' ],
37     },
38     {
39       # android_webview_apk creates a .jar as a side effect. Any java
40       # targets that need that .jar in their classpath should depend on this
41       # target. For more details see the chromium_testshell_java target.
42       'target_name': 'android_webview_apk_java',
43       'type': 'none',
44       'dependencies': [
45         'android_webview_apk',
46       ],
47       'includes': [ '../build/apk_fake_jar.gypi' ],
48     },
49     {
50       'target_name': 'android_webview_test_apk',
51       'type': 'none',
52       'dependencies': [
53         '../base/base.gyp:base_java_test_support',
54         '../content/content_shell_and_tests.gyp:content_java_test_support',
55         '../net/net.gyp:net_java_test_support',
56         'android_webview_apk_java',
57       ],
58       'variables': {
59         'apk_name': 'AndroidWebViewTest',
60         'java_in_dir': '../android_webview/javatests',
61         'is_test_apk': 1,
62       },
63       'includes': [ '../build/java_apk.gypi' ],
64     },
65     {
66       'target_name': 'android_webview_unittests',
67       'type': '<(gtest_target_type)',
68       'dependencies': [
69         '../base/base.gyp:test_support_base',
70         '../content/content_shell_and_tests.gyp:test_support_content',
71         '../net/net.gyp:net_test_support',
72         '../testing/android/native_test.gyp:native_test_native_code',
73         '../testing/gmock.gyp:gmock',
74         '../testing/gtest.gyp:gtest',
75         '../ui/ui.gyp:ui_base_jni_headers',
76         'android_webview_common',
77         'android_webview_unittests_jni',
78       ],
79       'include_dirs': [
80         '..',
81         '../skia/config',
82         '<(SHARED_INTERMEDIATE_DIR)/android_webview_unittests',
83       ],
84       'sources': [
85         'browser/aw_form_database_service_unittest.cc',
86         'browser/net/android_stream_reader_url_request_job_unittest.cc',
87         'browser/net/input_stream_reader_unittest.cc',
88         'lib/main/webview_tests.cc',
89         'native/input_stream_unittest.cc',
90         'native/state_serializer_unittest.cc',
91       ],
92     },
93     {
94       'target_name': 'android_webview_unittest_java',
95       'type': 'none',
96       'dependencies': [
97         '../base/base.gyp:base_java_test_support',
98         '../content/content_shell_and_tests.gyp:content_java_test_support',
99         'android_webview_java',
100       ],
101       'variables': {
102         'java_in_dir': '../android_webview/unittestjava',
103       },
104       'includes': [ '../build/java.gypi' ],
105     },
106     {
107       'target_name': 'android_webview_unittests_jni',
108       'type': 'none',
109       'sources': [
110           '../android_webview/unittestjava/src/org/chromium/android_webview/unittest/InputStreamUnittest.java',
111       ],
112       'variables': {
113         'jni_gen_package': 'android_webview_unittests',
114         'jni_generator_ptr_type': 'long',
115       },
116       'includes': [ '../build/jni_generator.gypi' ],
117     },
118     {
119       'target_name': 'android_webview_unittests_apk',
120       'type': 'none',
121       'dependencies': [
122         'android_webview_unittest_java',
123         'android_webview_unittests',
124       ],
125       'variables': {
126         'test_suite_name': 'android_webview_unittests',
127         'input_shlib_path': '<(SHARED_LIB_DIR)/<(SHARED_LIB_PREFIX)android_webview_unittests<(SHARED_LIB_SUFFIX)',
128       },
129       'includes': [ '../build/apk_test.gypi' ],
130     },
131   ],