Chromium Code Reviews| 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", | |
| 15 ":system_webview_shell_page_cycler_apk", | |
| 16 ] | 14 ] |
| 15 if (!enable_all_proguard_optimizations) { | |
| 16 deps += [ | |
| 17 ":system_webview_shell_layout_test_apk", | |
| 18 ":system_webview_shell_page_cycler_apk", | |
| 19 ] | |
| 20 } | |
| 17 } | 21 } |
| 18 | 22 |
| 19 # GYP: //android_webview/android_webview_shell.gypi:system_webview_shell_apk | 23 # GYP: //android_webview/android_webview_shell.gypi:system_webview_shell_apk |
| 20 android_apk("system_webview_shell_apk") { | 24 android_apk("system_webview_shell_apk") { |
| 21 apk_name = "SystemWebViewShell" | 25 apk_name = "SystemWebViewShell" |
| 22 java_files = [ | 26 java_files = [ |
| 23 "apk/src/org/chromium/webview_shell/JankActivity.java", | 27 "apk/src/org/chromium/webview_shell/JankActivity.java", |
| 24 "apk/src/org/chromium/webview_shell/PageCyclerTestActivity.java", | 28 "apk/src/org/chromium/webview_shell/PageCyclerTestActivity.java", |
| 25 "apk/src/org/chromium/webview_shell/StartupTimeActivity.java", | 29 "apk/src/org/chromium/webview_shell/StartupTimeActivity.java", |
| 26 "apk/src/org/chromium/webview_shell/TelemetryActivity.java", | 30 "apk/src/org/chromium/webview_shell/TelemetryActivity.java", |
| 27 "apk/src/org/chromium/webview_shell/TelemetryMemoryPressureActivity.java", | 31 "apk/src/org/chromium/webview_shell/TelemetryMemoryPressureActivity.java", |
| 28 "apk/src/org/chromium/webview_shell/WebViewBrowserActivity.java", | 32 "apk/src/org/chromium/webview_shell/WebViewBrowserActivity.java", |
| 29 "apk/src/org/chromium/webview_shell/WebViewLayoutTestActivity.java", | 33 "apk/src/org/chromium/webview_shell/WebViewLayoutTestActivity.java", |
| 30 "apk/src/org/chromium/webview_shell/WebViewThreadTestActivity.java", | 34 "apk/src/org/chromium/webview_shell/WebViewThreadTestActivity.java", |
| 31 ] | 35 ] |
| 32 android_manifest = "apk/AndroidManifest.xml" | 36 android_manifest = "apk/AndroidManifest.xml" |
| 33 deps = [ | 37 deps = [ |
| 34 ":system_webview_shell_apk_resources", | 38 ":system_webview_shell_apk_resources", |
| 35 "//base:base_java", | 39 "//base:base_java", |
| 36 ] | 40 ] |
| 37 } | 41 } |
| 38 | 42 |
| 39 android_resources("system_webview_shell_apk_resources") { | 43 android_resources("system_webview_shell_apk_resources") { |
| 40 resource_dirs = [ "apk/res" ] | 44 resource_dirs = [ "apk/res" ] |
| 41 custom_package = "org.chromium.webview_shell" | 45 custom_package = "org.chromium.webview_shell" |
| 42 } | 46 } |
| 43 | 47 |
| 44 # GYP: //android_webview/android_webview_shell.gypi:system_webview_shell_page_cy cler_apk | 48 if (!enable_all_proguard_optimizations) { |
| 45 instrumentation_test_apk("system_webview_shell_page_cycler_apk") { | 49 # GYP: //android_webview/android_webview_shell.gypi:system_webview_shell_page_ cycler_apk |
| 46 apk_name = "SystemWebViewShellPageCycler" | 50 instrumentation_test_apk("system_webview_shell_page_cycler_apk") { |
| 47 apk_under_test = ":system_webview_shell_apk" | 51 apk_name = "SystemWebViewShellPageCycler" |
| 48 android_manifest = "page_cycler/AndroidManifest.xml" | 52 apk_under_test = ":system_webview_shell_apk" |
| 49 java_files = [ | 53 android_manifest = "page_cycler/AndroidManifest.xml" |
| 50 "page_cycler/src/org/chromium/webview_shell/page_cycler/PageCyclerTest.java" , | 54 java_files = [ |
| 51 "page_cycler/src/org/chromium/webview_shell/page_cycler/WebViewPageCyclerTes tRunner.java", | 55 "page_cycler/src/org/chromium/webview_shell/page_cycler/PageCyclerTest.jav a", |
| 52 ] | 56 "page_cycler/src/org/chromium/webview_shell/page_cycler/WebViewPageCyclerT estRunner.java", |
| 53 deps = [ | 57 ] |
| 54 "//base:base_java", | 58 deps = [ |
| 55 "//base:base_java_test_support", | 59 "//base:base_java", |
| 56 "//content/public/android:content_java", | 60 "//base:base_java_test_support", |
| 57 "//content/public/test/android:content_java_test_support", | 61 "//content/public/android:content_java", |
| 58 "//testing/android/reporter:reporter_java", | 62 "//content/public/test/android:content_java_test_support", |
| 59 ] | 63 "//testing/android/reporter:reporter_java", |
| 64 ] | |
| 65 } | |
| 60 } | 66 } |
| 61 | 67 |
| 62 # GYP: //android_webview/android_webview_shell.gypi:system_webview_shell_layout_ test_apk | 68 if (!enable_all_proguard_optimizations) { |
|
agrieve
2016/07/08 14:26:20
nit: combine with previous if.
smaier
2016/07/08 14:50:07
Done.
| |
| 63 instrumentation_test_apk("system_webview_shell_layout_test_apk") { | 69 # GYP: //android_webview/android_webview_shell.gypi:system_webview_shell_layou t_test_apk |
| 64 apk_name = "SystemWebViewShellLayoutTest" | 70 instrumentation_test_apk("system_webview_shell_layout_test_apk") { |
| 65 apk_under_test = ":system_webview_shell_apk" | 71 apk_name = "SystemWebViewShellLayoutTest" |
| 66 android_manifest = "layout_tests/AndroidManifest.xml" | 72 apk_under_test = ":system_webview_shell_apk" |
| 67 java_files = [ | 73 android_manifest = "layout_tests/AndroidManifest.xml" |
| 68 "layout_tests/src/org/chromium/webview_shell/test/WebViewLayoutTest.java", | 74 java_files = [ |
| 69 "layout_tests/src/org/chromium/webview_shell/test/WebViewLayoutTestRunner.ja va", | 75 "layout_tests/src/org/chromium/webview_shell/test/WebViewLayoutTest.java", |
| 70 "layout_tests/src/org/chromium/webview_shell/test/WebViewThreadTest.java", | 76 "layout_tests/src/org/chromium/webview_shell/test/WebViewLayoutTestRunner. java", |
| 71 ] | 77 "layout_tests/src/org/chromium/webview_shell/test/WebViewThreadTest.java", |
| 72 isolate_file = "../../system_webview_shell_test_apk.isolate" | 78 ] |
| 73 deps = [ | 79 isolate_file = "../../system_webview_shell_test_apk.isolate" |
| 74 "//base:base_java", | 80 deps = [ |
| 75 "//base:base_java_test_support", | 81 "//base:base_java", |
| 76 "//testing/android/reporter:reporter_java", | 82 "//base:base_java_test_support", |
| 77 ] | 83 "//testing/android/reporter:reporter_java", |
| 84 ] | |
| 85 } | |
| 78 } | 86 } |
| OLD | NEW |