Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(157)

Side by Side Diff: android_webview/test/BUILD.gn

Issue 1547683003: Port android_webview_tests.gypi to GN. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@webview-tests-2
Patch Set: Created 5 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « android_webview/BUILD.gn ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 # Copyright 2015 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.
4
5 import("//build/config/android/rules.gni")
6 import("//testing/test.gni")
7
8 # Mark all targets as test only.
9 testonly = true
10
11 group("test") {
12 deps = [
13 ":android_webview_test_apk",
14 ":android_webview_unittests",
15 ]
16 }
17
18 android_apk("android_webview_apk") {
Dirk Pranke 2015/12/23 03:48:03 it seems confusing to a non-android person that we
agrieve 2015/12/23 15:20:56 I'm likewise fairly confused by the naming, but wa
19 deps = [
20 ":android_webview_apk_assets",
21 ":android_webview_apk_resources",
22 ":libdrawgl",
23 ":libstandalonelibwebviewchromium",
24 "//android_webview:android_webview_java",
25 "//base:base_java",
26 "//base:base_java_test_support",
27 "//components/policy/android:policy_java_test_support",
28 "//content/public/android:content_java",
29 "//ui/android:ui_java",
30 ]
31
32 apk_name = "AndroidWebView"
33 android_manifest = "shell/AndroidManifest.xml"
34 DEPRECATED_java_in_dir = "shell/src"
35 native_libs = [
36 "libdrawgl.so",
37 "libstandalonelibwebviewchromium.so",
38 ]
39
40 native_lib_version_rule = "//build/util:chrome_version_json"
41 _native_lib_file =
42 rebase_path("$root_gen_dir/CHROME_VERSION.json", root_build_dir)
43 native_lib_version_arg = "@FileArg($_native_lib_file:full-quoted)"
44
45 extensions_to_not_compress = ".dat,.bin,.pak,.lpak"
46 }
47
48 android_resources("android_webview_apk_resources") {
49 resource_dirs = [ "shell/res" ]
50 custom_package = "org.chromium.android_webview.shell"
51 }
52
53 android_assets("android_webview_apk_assets") {
54 deps = [
55 "//android_webview:pak_file_assets",
56 "//third_party/icu:icu_assets",
57 "//v8:v8_external_startup_data_assets",
58 ]
59 sources = [
60 "shell/assets/asset_file.html",
61 "shell/assets/asset_icon.png",
62 "shell/assets/cookie_test.html",
63 "shell/assets/full_screen_video.js",
64 "shell/assets/full_screen_video_inside_div_test.html",
65 "shell/assets/full_screen_video_test.html",
66 "shell/assets/multiple_videos_test.html",
67 "shell/assets/video.mp4",
68 "shell/assets/visual_state_during_fullscreen_test.html",
69 "shell/assets/visual_state_on_page_commit_visible_test.html",
70 "shell/assets/visual_state_waits_for_js_detached_test.html",
71 "shell/assets/visual_state_waits_for_js_test.html",
72 ]
73 }
74
75 shared_library("libstandalonelibwebviewchromium") {
76 sources = [
77 "../lib/main/webview_entry_point.cc",
78 ]
79 ldflags = [ "-Wl,-shared,-Bsymbolic" ]
80 deps = [
81 "//android_webview:common",
82 ]
83 configs -= [ "//build/config/android:hide_native_jni_exports" ]
84 }
85
86 instrumentation_test_apk("android_webview_test_apk") {
87 apk_name = "AndroidWebViewTest"
88 apk_under_test = ":android_webview_apk"
89 android_manifest = "../javatests/AndroidManifest.xml"
90 deps = [
91 "//android_webview:android_webview_java",
92 "//base:base_java",
93 "//base:base_java_test_support",
94 "//components/external_video_surface:java",
95 "//components/policy/android:policy_java",
96 "//components/policy/android:policy_java_test_support",
97 "//components/web_contents_delegate_android:web_contents_delegate_android_ja va",
98 "//content/public/android:content_java",
99 "//content/public/test/android:content_java_test_support",
100 "//net/android:net_java",
101 "//net/android:net_java_test_support",
102 "//third_party/android_tools:legacy_http_javalib",
103 "//ui/android:ui_java",
104 ]
105 DEPRECATED_java_in_dir = "../javatests/src"
106 isolate_file = "../android_webview_test_apk.isolate"
107 }
108
109 test("android_webview_unittests") {
110 deps = [
111 ":android_webview_unittests_assets",
112 ":android_webview_unittests_java",
113 ":android_webview_unittests_jni",
114 "//android_webview:common",
115 "//base/test:test_support",
116 "//content/test:test_support",
117 "//net:test_support",
118 "//ui/base:ui_base_jni_headers",
119 "//ui/gl",
120 "//ui/gl:test_support",
121 ]
122
123 include_dirs = [
124 # "..",
125 # "../skia/config",
126 # "<(SHARED_INTERMEDIATE_DIR)/android_webview_unittests",
Dirk Pranke 2015/12/23 03:48:03 why are these commented out?
agrieve 2015/12/23 15:20:56 That's a whoops. :P. Gone.
127 ]
128
129 sources = [
130 "../browser/aw_form_database_service_unittest.cc",
131 "../browser/aw_static_cookie_policy_unittest.cc",
132 "../browser/browser_view_renderer_unittest.cc",
133 "../browser/net/android_stream_reader_url_request_job_unittest.cc",
134 "../browser/net/input_stream_reader_unittest.cc",
135 "../browser/test/fake_window.cc",
136 "../browser/test/fake_window.h",
137 "../browser/test/rendering_test.cc",
138 "../browser/test/rendering_test.h",
139 "../lib/main/webview_tests.cc",
140 "../native/aw_contents_client_bridge_unittest.cc",
141 "../native/aw_media_url_interceptor_unittest.cc",
142 "../native/input_stream_unittest.cc",
143 "../native/permission/media_access_permission_request_unittest.cc",
144 "../native/permission/permission_request_handler_unittest.cc",
145 "../native/state_serializer_unittest.cc",
146 ]
147 }
148
149 android_assets("android_webview_unittests_assets") {
150 sources = [
151 "unittest/assets/asset_file.ogg",
152 ]
153 }
154
155 android_library("android_webview_unittests_java") {
156 deps = [
157 "//base:base_java_test_support",
158 "//content/public/test/android:content_java_test_support",
159 ]
160 DEPRECATED_java_in_dir = "../unittestjava/src"
161 }
162
163 generate_jni("android_webview_unittests_jni") {
164 jni_package = "android_webview_unittests"
165 sources = [
166 "../unittestjava/src/org/chromium/android_webview/unittest/InputStreamUnitte st.java",
167 "../unittestjava/src/org/chromium/android_webview/unittest/MockAwContentsCli entBridge.java",
168 ]
169 }
170
171 shared_library("libdrawgl") {
172 sources = [
173 "shell/src/draw_gl/draw_gl.cc",
174 ]
175 configs -= [ "//build/config/android:hide_native_jni_exports" ]
176 }
OLDNEW
« no previous file with comments | « android_webview/BUILD.gn ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698