• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1// Copyright (C) 2020 The Android Open Source Project
2//
3// Licensed under the Apache License, Version 2.0 (the "License");
4// you may not use this file except in compliance with the License.
5// You may obtain a copy of the License at
6//
7//      http://www.apache.org/licenses/LICENSE-2.0
8//
9// Unless required by applicable law or agreed to in writing, software
10// distributed under the License is distributed on an "AS IS" BASIS,
11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12// See the License for the specific language governing permissions and
13// limitations under the License.
14
15// Make test APK
16// ============================================================
17
18package {
19    default_applicable_licenses: ["Android-Apache-2.0"],
20}
21
22android_test {
23    name: "FrameworksWifiApiTests",
24
25    defaults: ["framework-wifi-test-defaults"],
26
27    min_sdk_version: "30",
28    target_sdk_version: "33",
29    compile_multilib: "both",
30    srcs: ["**/*.java"],
31
32    jacoco: {
33        include_filter: ["android.net.wifi.*"],
34        // TODO(b/147521214) need to exclude test classes
35        exclude_filter: [],
36    },
37
38    static_libs: [
39        "androidx.test.rules",
40        "core-test-rules",
41        "frameworks-base-testutils",
42        "guava",
43        "wifi-modules-utils",
44        "net-tests-utils",
45        "net-utils-framework-common",
46        "truth-prebuilt",
47    ],
48
49    libs: [
50        "android.test.runner",
51        "android.test.base",
52    ],
53
54    // These are required for mockito static/final mocking
55    // mockito-target-extended-minus-junit4 is already included in frameworks-base-testutils
56    jni_libs: [
57        "libdexmakerjvmtiagent",
58        "libstaticjvmtiagent",
59    ],
60
61    test_suites: [
62        "general-tests",
63        "mts-wifi",
64    ],
65
66    // static libs used by both framework-wifi & FrameworksWifiApiTests. Need to rename test usage
67    // to a different package name to prevent conflict with the copy in production code.
68    jarjar_rules: "test-jarjar-rules.txt",
69}
70