# Copyright 2016 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. import("//build/config/android/rules.gni") import("//testing/test.gni") group("webview_ui_test_app") { testonly = true deps = [ ":webview_ui_test_app_apk", ":webview_ui_test_app_test_apk", ] } android_apk("webview_ui_test_app_apk") { apk_name = "WebViewUiTestApp" android_manifest = "java/AndroidManifest.xml" deps = [ ":webview_ui_test_app_apk_resources", ":webview_ui_test_app_java", ] } android_library("webview_ui_test_app_java") { java_files = [ "java/src/org/chromium/webview_ui_test/WebViewUiTestActivity.java" ] deps = [ ":webview_ui_test_app_apk_resources", "//base:base_java", ] android_manifest_for_lint = "java/AndroidManifest.xml" } android_resources("webview_ui_test_app_apk_resources") { resource_dirs = [ "java/res" ] custom_package = "org.chromium.webview_ui_test" } instrumentation_test_apk("webview_ui_test_app_test_apk") { apk_name = "WebViewUiTestAppTest" apk_under_test = ":webview_ui_test_app_apk" android_manifest = "javatests/AndroidManifest.xml" java_files = [ "javatests/src/org/chromium/webview_ui_test/test/ActionModeTest.java", "javatests/src/org/chromium/webview_ui_test/test/DropDownListTest.java", "javatests/src/org/chromium/webview_ui_test/test/WebViewJSTest.java", "javatests/src/org/chromium/webview_ui_test/test/util/Actions.java", "javatests/src/org/chromium/webview_ui_test/test/util/Atoms.java", "javatests/src/org/chromium/webview_ui_test/test/util/UseLayout.java", "javatests/src/org/chromium/webview_ui_test/test/util/WebViewUiTestRule.java", "javatests/src/org/chromium/webview_ui_test/test/util/WebViewSyncWrapper.java", ] deps = [ ":webview_ui_test_app_apk_resources", ":webview_ui_test_app_java", "//base:base_java", "//base:base_java_test_support", "//third_party/android_support_test_runner:rules_java", "//third_party/android_support_test_runner:runner_java", "//third_party/android_tools:android_support_annotations_java", "//third_party/android_tools:android_test_base_java", "//third_party/espresso:espresso_all_java", "//third_party/hamcrest:hamcrest_java", "//third_party/junit", "//third_party/ub-uiautomator:ub_uiautomator_java", ] data = [ "test/data/", ] }