OLD | NEW |
1 # Copyright 2015 The Chromium Authors. All rights reserved. | 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 | 2 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 | 4 |
5 import("//build/config/android/rules.gni") | 5 import("//build/config/android/rules.gni") |
6 import("//testing/test.gni") | 6 import("//testing/test.gni") |
7 | 7 |
8 # Mark all targets as test only. | 8 # Mark all targets as test only. |
9 testonly = true | 9 testonly = true |
10 | 10 |
11 group("system_webview_shell") { | 11 group("system_webview_shell") { |
12 deps = [ | 12 deps = [ |
13 ":system_webview_shell_apk", | 13 ":system_webview_shell_apk", |
14 ":system_webview_shell_layout_test_apk", | 14 ":system_webview_shell_layout_test_apk", |
15 ":system_webview_shell_page_cycler_apk", | 15 ":system_webview_shell_page_cycler_apk", |
16 ] | 16 ] |
17 } | 17 } |
18 | 18 |
19 # GYP: //android_webview/android_webview_shell.gypi:system_webview_shell_apk | |
20 android_apk("system_webview_shell_apk") { | 19 android_apk("system_webview_shell_apk") { |
21 apk_name = "SystemWebViewShell" | 20 apk_name = "SystemWebViewShell" |
22 java_files = [ | 21 java_files = [ |
23 "apk/src/org/chromium/webview_shell/JankActivity.java", | 22 "apk/src/org/chromium/webview_shell/JankActivity.java", |
24 "apk/src/org/chromium/webview_shell/PageCyclerTestActivity.java", | 23 "apk/src/org/chromium/webview_shell/PageCyclerTestActivity.java", |
25 "apk/src/org/chromium/webview_shell/StartupTimeActivity.java", | 24 "apk/src/org/chromium/webview_shell/StartupTimeActivity.java", |
26 "apk/src/org/chromium/webview_shell/TelemetryActivity.java", | 25 "apk/src/org/chromium/webview_shell/TelemetryActivity.java", |
27 "apk/src/org/chromium/webview_shell/TelemetryMemoryPressureActivity.java", | 26 "apk/src/org/chromium/webview_shell/TelemetryMemoryPressureActivity.java", |
28 "apk/src/org/chromium/webview_shell/WebViewCreateDestroyActivity.java", | 27 "apk/src/org/chromium/webview_shell/WebViewCreateDestroyActivity.java", |
29 "apk/src/org/chromium/webview_shell/WebViewBrowserActivity.java", | 28 "apk/src/org/chromium/webview_shell/WebViewBrowserActivity.java", |
30 "apk/src/org/chromium/webview_shell/WebViewLayoutTestActivity.java", | 29 "apk/src/org/chromium/webview_shell/WebViewLayoutTestActivity.java", |
31 "apk/src/org/chromium/webview_shell/WebViewThreadTestActivity.java", | 30 "apk/src/org/chromium/webview_shell/WebViewThreadTestActivity.java", |
32 ] | 31 ] |
33 android_manifest = "apk/AndroidManifest.xml" | 32 android_manifest = "apk/AndroidManifest.xml" |
34 deps = [ | 33 deps = [ |
35 ":system_webview_shell_apk_resources", | 34 ":system_webview_shell_apk_resources", |
36 "//base:base_java", | 35 "//base:base_java", |
37 ] | 36 ] |
38 } | 37 } |
39 | 38 |
40 android_resources("system_webview_shell_apk_resources") { | 39 android_resources("system_webview_shell_apk_resources") { |
41 resource_dirs = [ "apk/res" ] | 40 resource_dirs = [ "apk/res" ] |
42 custom_package = "org.chromium.webview_shell" | 41 custom_package = "org.chromium.webview_shell" |
43 } | 42 } |
44 | 43 |
45 # GYP: //android_webview/android_webview_shell.gypi:system_webview_shell_page_cy
cler_apk | |
46 instrumentation_test_apk("system_webview_shell_page_cycler_apk") { | 44 instrumentation_test_apk("system_webview_shell_page_cycler_apk") { |
47 apk_name = "SystemWebViewShellPageCycler" | 45 apk_name = "SystemWebViewShellPageCycler" |
48 apk_under_test = ":system_webview_shell_apk" | 46 apk_under_test = ":system_webview_shell_apk" |
49 android_manifest = "page_cycler/AndroidManifest.xml" | 47 android_manifest = "page_cycler/AndroidManifest.xml" |
50 java_files = [ | 48 java_files = [ |
51 "page_cycler/src/org/chromium/webview_shell/page_cycler/PageCyclerTest.java"
, | 49 "page_cycler/src/org/chromium/webview_shell/page_cycler/PageCyclerTest.java"
, |
52 "page_cycler/src/org/chromium/webview_shell/page_cycler/WebViewPageCyclerTes
tRunner.java", | 50 "page_cycler/src/org/chromium/webview_shell/page_cycler/WebViewPageCyclerTes
tRunner.java", |
53 ] | 51 ] |
54 deps = [ | 52 deps = [ |
55 "//base:base_java", | 53 "//base:base_java", |
56 "//base:base_java_test_support", | 54 "//base:base_java_test_support", |
57 "//content/public/android:content_java", | 55 "//content/public/android:content_java", |
58 "//content/public/test/android:content_java_test_support", | 56 "//content/public/test/android:content_java_test_support", |
59 "//testing/android/reporter:reporter_java", | 57 "//testing/android/reporter:reporter_java", |
60 ] | 58 ] |
61 } | 59 } |
62 | 60 |
63 # GYP: //android_webview/android_webview_shell.gypi:system_webview_shell_layout_
test_apk | |
64 instrumentation_test_apk("system_webview_shell_layout_test_apk") { | 61 instrumentation_test_apk("system_webview_shell_layout_test_apk") { |
65 apk_name = "SystemWebViewShellLayoutTest" | 62 apk_name = "SystemWebViewShellLayoutTest" |
66 apk_under_test = ":system_webview_shell_apk" | 63 apk_under_test = ":system_webview_shell_apk" |
67 android_manifest = "layout_tests/AndroidManifest.xml" | 64 android_manifest = "layout_tests/AndroidManifest.xml" |
68 java_files = [ | 65 java_files = [ |
69 "layout_tests/src/org/chromium/webview_shell/test/WebViewLayoutTest.java", | 66 "layout_tests/src/org/chromium/webview_shell/test/WebViewLayoutTest.java", |
70 "layout_tests/src/org/chromium/webview_shell/test/WebViewLayoutTestRunner.ja
va", | 67 "layout_tests/src/org/chromium/webview_shell/test/WebViewLayoutTestRunner.ja
va", |
71 "layout_tests/src/org/chromium/webview_shell/test/WebViewThreadTest.java", | 68 "layout_tests/src/org/chromium/webview_shell/test/WebViewThreadTest.java", |
72 ] | 69 ] |
73 deps = [ | 70 deps = [ |
74 "//base:base_java", | 71 "//base:base_java", |
75 "//base:base_java_test_support", | 72 "//base:base_java_test_support", |
76 "//testing/android/reporter:reporter_java", | 73 "//testing/android/reporter:reporter_java", |
77 ] | 74 ] |
78 data = [ | 75 data = [ |
79 "test/data/", | 76 "test/data/", |
80 "//third_party/WebKit/LayoutTests/virtual/stable/webexposed/global-interface
-listing-expected.txt", | 77 "//third_party/WebKit/LayoutTests/virtual/stable/webexposed/global-interface
-listing-expected.txt", |
81 "//third_party/WebKit/LayoutTests/webexposed/global-interface-listing.html", | 78 "//third_party/WebKit/LayoutTests/webexposed/global-interface-listing.html", |
82 "//third_party/WebKit/LayoutTests/webexposed/global-interface-listing-expect
ed.txt", | 79 "//third_party/WebKit/LayoutTests/webexposed/global-interface-listing-expect
ed.txt", |
83 "//third_party/WebKit/LayoutTests/webexposed/resources/global-interface-list
ing.js", | 80 "//third_party/WebKit/LayoutTests/webexposed/resources/global-interface-list
ing.js", |
84 ] | 81 ] |
85 } | 82 } |
OLD | NEW |