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

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

Issue 2146713003: Refactor and add special test runner to support Espresso tests (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Change after john and mike's comments 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", 12 ":webview_ui_test_app_test_apk",
13 ] 13 ]
14 } 14 }
15 15
16 android_apk("webview_ui_test_app_apk") { 16 android_apk("webview_ui_test_app_apk") {
17 apk_name = "WebViewUiTestApp" 17 apk_name = "WebViewUiTestApp"
18 android_manifest = "java/AndroidManifest.xml" 18 android_manifest = "apk/java/AndroidManifest.xml"
19 deps = [ 19 deps = [
20 ":webview_ui_test_app_apk_resources", 20 ":webview_ui_test_app_apk_resources",
21 ":webview_ui_test_app_java", 21 ":webview_ui_test_app_java",
22 ] 22 ]
23 } 23 }
24 24
25 android_library("webview_ui_test_app_java") { 25 android_library("webview_ui_test_app_java") {
26 java_files = 26 java_files =
27 [ "java/src/org/chromium/webview_ui_test/WebViewUiTestActivity.java" ] 27 [ "apk/java/src/org/chromium/webview_ui_test/WebViewUiTestActivity.java" ]
28 deps = [ 28 deps = [
29 ":webview_ui_test_app_apk_resources", 29 ":webview_ui_test_app_apk_resources",
30 "//base:base_java", 30 "//base:base_java",
31 ] 31 ]
32 } 32 }
33 33
34 android_resources("webview_ui_test_app_apk_resources") { 34 android_resources("webview_ui_test_app_apk_resources") {
35 resource_dirs = [ "java/res" ] 35 resource_dirs = [ "apk/java/res" ]
36 custom_package = "org.chromium.webview_ui_test" 36 custom_package = "org.chromium.webview_ui_test"
37 } 37 }
38 38
39 instrumentation_test_apk("webview_ui_test_app_test_apk") { 39 instrumentation_test_apk("webview_ui_test_app_test_apk") {
40 apk_name = "WebViewUiTestAppTest" 40 apk_name = "WebViewUiTestAppTest"
41 android_manifest = "javatests/AndroidManifest.xml" 41 android_manifest = "apk/javatests/AndroidManifest.xml"
42 isolate_file = "../../automated_ui_tests.isolate"
42 java_files = [ 43 java_files = [
43 "javatests/src/org/chromium/webview_ui_test/test/LoadDataTest.java", 44 "apk/javatests/src/org/chromium/webview_ui_test/test/LoadDataTest.java",
44 "javatests/src/org/chromium/webview_ui_test/test/WebViewTestBase.java", 45 "apk/javatests/src/org/chromium/webview_ui_test/test/WebViewTestBase.java",
46 "apk/javatests/src/org/chromium/webview_ui_test/test/WebViewUiInstrumentatio nTestRunner.java",
47 ]
48 data = [
49 "test/data",
45 ] 50 ]
46 deps = [ 51 deps = [
47 ":webview_ui_test_app_apk_resources", 52 ":webview_ui_test_app_apk_resources",
48 ":webview_ui_test_app_java", 53 ":webview_ui_test_app_java",
54 "//base:base_java",
55 "//base:base_java_test_support",
56 "//third_party/android_support_test_runner:runner_java",
57 "//third_party/espresso:espresso_core_java",
58 "//third_party/espresso:espresso_web_java",
59 "//third_party/hamcrest:hamcrest_core_java",
60 "//third_party/hamcrest:hamcrest_library_java",
49 "//third_party/ub-uiautomator:ub_uiautomator_java", 61 "//third_party/ub-uiautomator:ub_uiautomator_java",
50 ] 62 ]
51 data_deps = [ 63 data_deps = [
52 ":webview_ui_test_app_apk", 64 ":webview_ui_test_app_apk",
53 ] 65 ]
54 apk_under_test = ":webview_ui_test_app_apk" 66 apk_under_test = ":webview_ui_test_app_apk"
55 } 67 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698