1//
2// Copyright (C) 2023 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_team: "trendy_team_fwk_thread_network",
19    default_applicable_licenses: ["Android-Apache-2.0"],
20}
21
22android_test {
23    name: "ThreadNetworkUnitTests",
24    min_sdk_version: "33",
25    sdk_version: "module_current",
26    manifest: "AndroidManifest.xml",
27    test_config: "AndroidTest.xml",
28    srcs: [
29        "src/**/*.java",
30    ],
31    test_suites: [
32        "general-tests",
33        "mts-tethering",
34    ],
35    static_libs: [
36        "androidx.test.rules",
37        "frameworks-base-testutils",
38        "framework-configinfrastructure.stubs.module_lib",
39        "framework-connectivity-pre-jarjar",
40        "framework-connectivity-t-pre-jarjar",
41        "framework-location.stubs.module_lib",
42        "guava",
43        "guava-android-testlib",
44        "mockito-target-extended-minus-junit4",
45        "net-tests-utils",
46        "ot-daemon-aidl-java",
47        "ot-daemon-testing",
48        "service-connectivity-pre-jarjar",
49        "service-thread-pre-jarjar",
50        "truth",
51        "service-thread-pre-jarjar",
52    ],
53    libs: [
54        "android.test.base.stubs.system",
55        "android.test.runner.stubs.system",
56        "ServiceConnectivityResources",
57        "framework-wifi.stubs.module_lib",
58    ],
59    jni_libs: [
60        "libservice-thread-jni",
61
62        // these are needed for Extended Mockito
63        "libdexmakerjvmtiagent",
64        "libstaticjvmtiagent",
65    ],
66    jni_uses_platform_apis: true,
67    jarjar_rules: ":connectivity-jarjar-rules",
68    // Test coverage system runs on different devices. Need to
69    // compile for all architectures.
70    compile_multilib: "both",
71}
72