1
    2
    3
    4
    5
    6
    7
    8
    9
   10
   11
   12
   13
   14
   15
   16
   17
   18
   19
   20
   21
   22
   23
   24
   25
   26
   27
   28
   29
   30
   31
   32
   33
   34
   35
   36
   37
   38
   39
   40
   41
   42
   43
   44
   45
   46
   47
   48
   49
   50
   51
   52
   53

android_webview / tools / automated_ui_tests / BUILD.gn [blame]

# Copyright 2016 The Chromium Authors
# 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")

testonly = true

android_resources("webview_ui_test_app_apk_resources") {
  sources = [
    "java/res/layout/edittext_webview.xml",
    "java/res/layout/fullscreen_webview.xml",
    "java/res/values/strings.xml",
  ]
}

instrumentation_test_apk("webview_ui_test_app_test_apk") {
  apk_name = "WebViewUiTestAppTest"
  android_manifest = "javatests/AndroidManifest.xml"
  sources = [
    "java/src/org/chromium/webview_ui_test/WebViewUiTestActivity.java",
    "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/WebViewSyncWrapper.java",
    "javatests/src/org/chromium/webview_ui_test/test/util/WebViewUiTestRule.java",
  ]
  deps = [
    ":webview_ui_test_app_apk_resources",
    "//base:base_java",
    "//base:base_java_test_support",
    "//third_party/android_deps:espresso_java",
    "//third_party/androidx:androidx_test_monitor_java",
    "//third_party/androidx:androidx_test_runner_java",
    "//third_party/androidx:androidx_test_uiautomator_uiautomator_java",
    "//third_party/hamcrest:hamcrest_java",
    "//third_party/junit",
    "//ui/android:ui_java_test_support",
  ]
  data = [
    "//third_party/chromium-variations",
    "test/data/",
  ]

  # Tell GN to ignore 'incremental_install' even if the user has it in their GN
  # args because it's incompatible with 'use_webview_provider'.
  never_incremental = true
  use_webview_provider = system_webview_apk_target
}