| # Copyright 2022 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") |
| |
| group("webview_js_sandbox_test_app") { |
| testonly = true |
| deps = [ ":webview_js_sandbox_test_app_test_apk" ] |
| } |
| |
| instrumentation_test_apk("webview_js_sandbox_test_app_test_apk") { |
| apk_name = "WebViewJsSandboxTestAppTest" |
| android_manifest = "AndroidManifest.xml" |
| sources = |
| [ "src/androidx/javascriptengine/WebViewJavaScriptSandboxTest.java" ] |
| deps = [ |
| "//android_webview/js_sandbox:js_sandbox_java", |
| "//third_party/android_deps:com_google_guava_listenablefuture_java", |
| "//third_party/android_deps:guava_android_java", |
| "//third_party/androidx:androidx_test_core_java", |
| "//third_party/androidx:androidx_test_ext_junit_java", |
| "//third_party/androidx:androidx_test_runner_java", |
| "//third_party/junit:junit", |
| ] |
| |
| # 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 |
| } |