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