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

Side by Side Diff: android_webview/tools/automated_ui_tests/BUILD.gn

Issue 2123753005: Creating new gn arg: enable_all_proguard_optimizations. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Changing from 2 apks to gn arg which controls optimizations Created 4 years, 5 months 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
OLDNEW
1 # Copyright 2016 The Chromium Authors. All rights reserved. 1 # Copyright 2016 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 group("webview_ui_test_app") { 8 group("webview_ui_test_app") {
9 testonly = true 9 testonly = true
10 deps = [ 10 deps = [
11 ":webview_ui_test_app_apk", 11 ":webview_ui_test_app_apk",
12 ":webview_ui_test_app_test_apk",
13 ] 12 ]
13 if (!enable_all_proguard_optimizations) {
14 deps += [ ":webview_ui_test_app_test_apk" ]
15 }
14 } 16 }
15 17
16 android_apk("webview_ui_test_app_apk") { 18 android_apk("webview_ui_test_app_apk") {
17 apk_name = "WebViewUiTestApp" 19 apk_name = "WebViewUiTestApp"
18 android_manifest = "java/AndroidManifest.xml" 20 android_manifest = "java/AndroidManifest.xml"
19 deps = [ 21 deps = [
20 ":webview_ui_test_app_apk_resources", 22 ":webview_ui_test_app_apk_resources",
21 ":webview_ui_test_app_java", 23 ":webview_ui_test_app_java",
22 ] 24 ]
23 } 25 }
24 26
25 android_library("webview_ui_test_app_java") { 27 android_library("webview_ui_test_app_java") {
26 java_files = 28 java_files =
27 [ "java/src/org/chromium/webview_ui_test/WebViewUiTestActivity.java" ] 29 [ "java/src/org/chromium/webview_ui_test/WebViewUiTestActivity.java" ]
28 deps = [ 30 deps = [
29 ":webview_ui_test_app_apk_resources", 31 ":webview_ui_test_app_apk_resources",
30 "//base:base_java", 32 "//base:base_java",
31 ] 33 ]
32 } 34 }
33 35
34 android_resources("webview_ui_test_app_apk_resources") { 36 android_resources("webview_ui_test_app_apk_resources") {
35 resource_dirs = [ "java/res" ] 37 resource_dirs = [ "java/res" ]
36 custom_package = "org.chromium.webview_ui_test" 38 custom_package = "org.chromium.webview_ui_test"
37 } 39 }
38 40
39 instrumentation_test_apk("webview_ui_test_app_test_apk") { 41 if (!enable_all_proguard_optimizations) {
40 apk_name = "WebViewUiTestAppTest" 42 instrumentation_test_apk("webview_ui_test_app_test_apk") {
41 android_manifest = "javatests/AndroidManifest.xml" 43 apk_name = "WebViewUiTestAppTest"
42 java_files = [ 44 android_manifest = "javatests/AndroidManifest.xml"
43 "javatests/src/org/chromium/webview_ui_test/test/LoadDataTest.java", 45 java_files = [
44 "javatests/src/org/chromium/webview_ui_test/test/WebViewTestBase.java", 46 "javatests/src/org/chromium/webview_ui_test/test/LoadDataTest.java",
45 ] 47 "javatests/src/org/chromium/webview_ui_test/test/WebViewTestBase.java",
46 deps = [ 48 ]
47 ":webview_ui_test_app_apk_resources", 49 deps = [
48 ":webview_ui_test_app_java", 50 ":webview_ui_test_app_apk_resources",
49 "//third_party/ub-uiautomator:ub_uiautomator_java", 51 ":webview_ui_test_app_java",
50 ] 52 "//third_party/ub-uiautomator:ub_uiautomator_java",
51 data_deps = [ 53 ]
52 ":webview_ui_test_app_apk", 54 data_deps = [
53 ] 55 ":webview_ui_test_app_apk",
54 apk_under_test = ":webview_ui_test_app_apk" 56 ]
57 apk_under_test = ":webview_ui_test_app_apk"
58 }
55 } 59 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698