blob: 3365cd0ee0619b3c6e0da14f5b12a9a5248f68ff [file] [log] [blame]
Kangping Dong7fea5fa2023-08-30 17:25:34 +08001//
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 {
Aditya Choudhary01b5ede2024-01-31 11:08:57 +000018 default_team: "trendy_team_fwk_thread_network",
Kangping Dong7fea5fa2023-08-30 17:25:34 +080019 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",
Kangping Dong974d3ed2024-01-25 18:05:10 +080033 "mts-tethering",
Kangping Dong7fea5fa2023-08-30 17:25:34 +080034 ],
35 static_libs: [
Zhanglong Xiad385e7e2023-11-17 12:03:28 +080036 "frameworks-base-testutils",
Kangping Dong7fea5fa2023-08-30 17:25:34 +080037 "framework-connectivity-pre-jarjar",
38 "framework-connectivity-t-pre-jarjar",
Zhanglong Xiad385e7e2023-11-17 12:03:28 +080039 "framework-location.stubs.module_lib",
Kangping Dong26639b12023-11-09 07:53:33 +000040 "guava",
Kangping Dong7fea5fa2023-08-30 17:25:34 +080041 "guava-android-testlib",
Zhanglong Xiad385e7e2023-11-17 12:03:28 +080042 "mockito-target-extended-minus-junit4",
Kangping Dong7fea5fa2023-08-30 17:25:34 +080043 "net-tests-utils",
Kangping Dong27638402023-11-15 10:26:14 +080044 "ot-daemon-aidl-java",
45 "ot-daemon-testing",
Zhanglong Xia125a43c2023-11-27 11:30:26 +080046 "service-connectivity-pre-jarjar",
Zhanglong Xiad385e7e2023-11-17 12:03:28 +080047 "service-thread-pre-jarjar",
Krzysztof KosiƄski4656f542023-10-26 07:13:22 +000048 "truth",
Yang Sun95f40d02024-01-03 11:40:35 +080049 "service-thread-pre-jarjar",
Kangping Dong7fea5fa2023-08-30 17:25:34 +080050 ],
51 libs: [
52 "android.test.base",
53 "android.test.runner",
Zhanglong Xia125a43c2023-11-27 11:30:26 +080054 "ServiceConnectivityResources",
Zhanglong Xia69c370a2023-12-20 21:12:26 +080055 "framework-wifi",
Kangping Dong7fea5fa2023-08-30 17:25:34 +080056 ],
Zhanglong Xiad385e7e2023-11-17 12:03:28 +080057 jni_libs: [
Kangping Dong27638402023-11-15 10:26:14 +080058 "libservice-thread-jni",
59
Zhanglong Xiad385e7e2023-11-17 12:03:28 +080060 // these are needed for Extended Mockito
61 "libdexmakerjvmtiagent",
62 "libstaticjvmtiagent",
63 ],
Kangping Dong27638402023-11-15 10:26:14 +080064 jni_uses_platform_apis: true,
65 jarjar_rules: ":connectivity-jarjar-rules",
Kangping Dong7fea5fa2023-08-30 17:25:34 +080066 // Test coverage system runs on different devices. Need to
67 // compile for all architectures.
68 compile_multilib: "both",
69}