Handa Wang | 806f5a1 | 2023-12-04 12:53:39 +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 { |
| 18 | default_applicable_licenses: ["Android-Apache-2.0"], |
| 19 | } |
| 20 | |
| 21 | java_defaults { |
| 22 | name: "ThreadNetworkIntegrationTestsDefaults", |
| 23 | min_sdk_version: "30", |
| 24 | static_libs: [ |
| 25 | "androidx.test.rules", |
Kangping Dong | 3deddc7 | 2024-01-31 22:27:02 +0800 | [diff] [blame^] | 26 | "compatibility-device-util-axt", |
Handa Wang | 806f5a1 | 2023-12-04 12:53:39 +0800 | [diff] [blame] | 27 | "guava", |
| 28 | "mockito-target-minus-junit4", |
| 29 | "net-tests-utils", |
| 30 | "net-utils-device-common", |
| 31 | "net-utils-device-common-bpf", |
| 32 | "testables", |
Kangping Dong | 3deddc7 | 2024-01-31 22:27:02 +0800 | [diff] [blame^] | 33 | "truth", |
Handa Wang | 806f5a1 | 2023-12-04 12:53:39 +0800 | [diff] [blame] | 34 | ], |
| 35 | libs: [ |
| 36 | "android.test.runner", |
| 37 | "android.test.base", |
| 38 | "android.test.mock", |
| 39 | ], |
| 40 | } |
| 41 | |
| 42 | android_test { |
| 43 | name: "ThreadNetworkIntegrationTests", |
| 44 | platform_apis: true, |
| 45 | manifest: "AndroidManifest.xml", |
Kangping Dong | 25bcfee | 2024-01-27 22:32:30 +0800 | [diff] [blame] | 46 | test_config: "AndroidTest.xml", |
Handa Wang | 806f5a1 | 2023-12-04 12:53:39 +0800 | [diff] [blame] | 47 | defaults: [ |
| 48 | "framework-connectivity-test-defaults", |
Kangping Dong | 25bcfee | 2024-01-27 22:32:30 +0800 | [diff] [blame] | 49 | "ThreadNetworkIntegrationTestsDefaults", |
Handa Wang | 806f5a1 | 2023-12-04 12:53:39 +0800 | [diff] [blame] | 50 | ], |
| 51 | test_suites: [ |
Kangping Dong | 25bcfee | 2024-01-27 22:32:30 +0800 | [diff] [blame] | 52 | "mts-tethering", |
Handa Wang | 806f5a1 | 2023-12-04 12:53:39 +0800 | [diff] [blame] | 53 | "general-tests", |
| 54 | ], |
| 55 | srcs: [ |
| 56 | "src/**/*.java", |
| 57 | ], |
| 58 | compile_multilib: "both", |
| 59 | } |