Kangping Dong | 7fea5fa | 2023-08-30 17:25:34 +0800 | [diff] [blame] | 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 | |
| 17 | package { |
Aditya Choudhary | 01b5ede | 2024-01-31 11:08:57 +0000 | [diff] [blame] | 18 | default_team: "trendy_team_fwk_thread_network", |
Kangping Dong | 7fea5fa | 2023-08-30 17:25:34 +0800 | [diff] [blame] | 19 | default_applicable_licenses: ["Android-Apache-2.0"], |
| 20 | } |
| 21 | |
| 22 | android_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 Dong | 974d3ed | 2024-01-25 18:05:10 +0800 | [diff] [blame] | 33 | "mts-tethering", |
Kangping Dong | 7fea5fa | 2023-08-30 17:25:34 +0800 | [diff] [blame] | 34 | ], |
| 35 | static_libs: [ |
Kangping Dong | 4d0afab | 2024-05-22 21:55:19 +0800 | [diff] [blame] | 36 | "androidx.test.rules", |
Zhanglong Xia | d385e7e | 2023-11-17 12:03:28 +0800 | [diff] [blame] | 37 | "frameworks-base-testutils", |
Kangping Dong | 7fea5fa | 2023-08-30 17:25:34 +0800 | [diff] [blame] | 38 | "framework-connectivity-pre-jarjar", |
| 39 | "framework-connectivity-t-pre-jarjar", |
Zhanglong Xia | d385e7e | 2023-11-17 12:03:28 +0800 | [diff] [blame] | 40 | "framework-location.stubs.module_lib", |
Kangping Dong | 26639b1 | 2023-11-09 07:53:33 +0000 | [diff] [blame] | 41 | "guava", |
Kangping Dong | 7fea5fa | 2023-08-30 17:25:34 +0800 | [diff] [blame] | 42 | "guava-android-testlib", |
Zhanglong Xia | d385e7e | 2023-11-17 12:03:28 +0800 | [diff] [blame] | 43 | "mockito-target-extended-minus-junit4", |
Kangping Dong | 7fea5fa | 2023-08-30 17:25:34 +0800 | [diff] [blame] | 44 | "net-tests-utils", |
Kangping Dong | 2763840 | 2023-11-15 10:26:14 +0800 | [diff] [blame] | 45 | "ot-daemon-aidl-java", |
| 46 | "ot-daemon-testing", |
Zhanglong Xia | 125a43c | 2023-11-27 11:30:26 +0800 | [diff] [blame] | 47 | "service-connectivity-pre-jarjar", |
Zhanglong Xia | d385e7e | 2023-11-17 12:03:28 +0800 | [diff] [blame] | 48 | "service-thread-pre-jarjar", |
Krzysztof KosiĆski | 4656f54 | 2023-10-26 07:13:22 +0000 | [diff] [blame] | 49 | "truth", |
Yang Sun | 95f40d0 | 2024-01-03 11:40:35 +0800 | [diff] [blame] | 50 | "service-thread-pre-jarjar", |
Kangping Dong | 7fea5fa | 2023-08-30 17:25:34 +0800 | [diff] [blame] | 51 | ], |
| 52 | libs: [ |
Jihoon Kang | 8401b6a | 2024-08-30 00:29:58 +0000 | [diff] [blame] | 53 | "android.test.base.stubs.system", |
| 54 | "android.test.runner.stubs.system", |
Zhanglong Xia | 125a43c | 2023-11-27 11:30:26 +0800 | [diff] [blame] | 55 | "ServiceConnectivityResources", |
Jihoon Kang | 8401b6a | 2024-08-30 00:29:58 +0000 | [diff] [blame] | 56 | "framework-wifi.stubs.module_lib", |
Kangping Dong | 7fea5fa | 2023-08-30 17:25:34 +0800 | [diff] [blame] | 57 | ], |
Zhanglong Xia | d385e7e | 2023-11-17 12:03:28 +0800 | [diff] [blame] | 58 | jni_libs: [ |
Kangping Dong | 2763840 | 2023-11-15 10:26:14 +0800 | [diff] [blame] | 59 | "libservice-thread-jni", |
| 60 | |
Zhanglong Xia | d385e7e | 2023-11-17 12:03:28 +0800 | [diff] [blame] | 61 | // these are needed for Extended Mockito |
| 62 | "libdexmakerjvmtiagent", |
| 63 | "libstaticjvmtiagent", |
| 64 | ], |
Kangping Dong | 2763840 | 2023-11-15 10:26:14 +0800 | [diff] [blame] | 65 | jni_uses_platform_apis: true, |
| 66 | jarjar_rules: ":connectivity-jarjar-rules", |
Kangping Dong | 7fea5fa | 2023-08-30 17:25:34 +0800 | [diff] [blame] | 67 | // Test coverage system runs on different devices. Need to |
| 68 | // compile for all architectures. |
| 69 | compile_multilib: "both", |
| 70 | } |