1// Copyright (C) 2019 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
15package {
16    default_team: "trendy_team_fwk_wifi_hal",
17    default_applicable_licenses: ["Android-Apache-2.0"],
18}
19
20java_defaults {
21    name: "WifiTrackerLibTestDefaults",
22    srcs: ["src/**/*.java"],
23
24    static_libs: [
25        "androidx.test.rules",
26        "frameworks-base-testutils",
27        "flag-junit",
28        "mockito-target-extended-minus-junit4",
29        "truth",
30        "wifi_aconfig_flags_lib",
31        "Robolectric_all-target_upstream",
32    ],
33
34    libs: [
35        "android.test.mock.stubs.system",
36    ],
37
38    jni_libs: [
39        "libdexmakerjvmtiagent",
40        "libstaticjvmtiagent",
41    ],
42
43    platform_apis: true,
44
45    test_suites: ["general-tests"],
46}
47
48android_test {
49    name: "WifiTrackerLibTests",
50    defaults: ["WifiTrackerLibTestDefaults"],
51
52    static_libs: [
53        "WifiTrackerLib",
54    ],
55}
56
57android_test {
58    name: "SdkWifiTrackerLibTests",
59    defaults: ["WifiTrackerLibTestDefaults"],
60    exclude_srcs: ["src/**/NonSdkApiWrapperTest.java"],
61
62    static_libs: [
63        "SdkWifiTrackerLib",
64    ],
65}
66