• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1//
2// Copyright (C) 2020 The Android Open Source Project
3//
4// Licensed under the Apache License, Version 2.0 (the "License");
5// you may not use this file except in compliance with the License.
6// You may obtain a copy of the License at
7//
8//      http://www.apache.org/licenses/LICENSE-2.0
9//
10// Unless required by applicable law or agreed to in writing, software
11// distributed under the License is distributed on an "AS IS" BASIS,
12// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13// See the License for the specific language governing permissions and
14// limitations under the License.
15//
16
17package {
18    default_applicable_licenses: ["Android-Apache-2.0"],
19}
20
21android_test {
22    name: "CaptivePortalLoginTests",
23    defaults: [
24        "framework-connectivity-test-defaults",
25        "connectivity-mainline-presubmit-java-defaults",
26    ],
27    srcs: ["src/**/*.java", "src/**/*.kt"],
28    platform_apis: true,
29    compile_multilib: "both",
30    min_sdk_version: "29",
31    target_sdk_version: "33", // Keep in sync with CaptivePortalLogin
32    test_suites: ["general-tests", "mts-networking"],
33
34    static_libs: [
35        "androidx.test.rules",
36        "androidx.test.uiautomator",
37        "mockito-target-extended-minus-junit4",
38        "CaptivePortalLoginTestLib",
39        "android.test.runner-minus-junit",
40        "androidx.test.core",
41        "androidx.test.espresso.intents",
42        "androidx.test.espresso.web",
43        "androidx.test.ext.junit",
44        "androidx.test.uiautomator",
45        "kotlin-test",
46        "libnanohttpd",
47        "net-tests-utils",
48    ],
49    libs: [
50        "android.test.runner",
51        "android.test.base",
52        "android.test.mock",
53    ],
54    jni_libs: [
55        // For mockito extended
56        "libdexmakerjvmtiagent",
57        "libstaticjvmtiagent",
58    ],
59    // If CaptivePortalLoginActivityTest wants to run on Q device, it needs to set sdk_version for
60    // using the portable JNI libraries.
61    // jni_uses_sdk_apis is a workaround for CaptivePortalLoginActivityTest to run on Q device.
62    // See b/154665579 to get more detail.
63    jni_uses_sdk_apis: true,
64}
65