Lorenzo Colitti | 4896e32 | 2020-03-17 01:07:47 +0900 | [diff] [blame] | 1 | // |
| 2 | // Copyright (C) 2020 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 | // |
Bob Badour | 97e6be2 | 2021-02-12 14:45:04 -0800 | [diff] [blame] | 16 | package { |
| 17 | default_applicable_licenses: ["Android-Apache-2.0"], |
| 18 | } |
| 19 | |
paulhu | 6463265 | 2020-04-06 14:58:12 +0800 | [diff] [blame] | 20 | java_defaults { |
| 21 | name: "TetheringIntegrationTestsDefaults", |
Lorenzo Colitti | 4896e32 | 2020-03-17 01:07:47 +0900 | [diff] [blame] | 22 | srcs: [ |
| 23 | "src/**/*.java", |
| 24 | "src/**/*.kt", |
| 25 | ], |
Lorenzo Colitti | 4896e32 | 2020-03-17 01:07:47 +0900 | [diff] [blame] | 26 | static_libs: [ |
| 27 | "NetworkStackApiStableLib", |
| 28 | "androidx.test.rules", |
Lorenzo Colitti | 4896e32 | 2020-03-17 01:07:47 +0900 | [diff] [blame] | 29 | "mockito-target-extended-minus-junit4", |
| 30 | "net-tests-utils", |
| 31 | "testables", |
| 32 | ], |
| 33 | libs: [ |
| 34 | "android.test.runner", |
| 35 | "android.test.base", |
| 36 | "android.test.mock", |
| 37 | ], |
paulhu | d584d2f | 2020-04-08 09:57:57 +0800 | [diff] [blame] | 38 | jni_libs: [ |
| 39 | // For mockito extended |
| 40 | "libdexmakerjvmtiagent", |
| 41 | "libstaticjvmtiagent", |
| 42 | ], |
paulhu | 6463265 | 2020-04-06 14:58:12 +0800 | [diff] [blame] | 43 | jarjar_rules: ":NetworkStackJarJarRules", |
Lorenzo Colitti | 4896e32 | 2020-03-17 01:07:47 +0900 | [diff] [blame] | 44 | } |
paulhu | 6463265 | 2020-04-06 14:58:12 +0800 | [diff] [blame] | 45 | |
| 46 | android_library { |
| 47 | name: "TetheringIntegrationTestsLib", |
| 48 | platform_apis: true, |
| 49 | defaults: ["TetheringIntegrationTestsDefaults"], |
Baligh Uddin | 661ae39 | 2020-11-04 05:34:06 +0000 | [diff] [blame] | 50 | visibility: [ |
| 51 | "//cts/tests/tests/tethering", |
| 52 | "//packages/modules/Connectivity/tests/cts/tethering", |
| 53 | ] |
paulhu | 6463265 | 2020-04-06 14:58:12 +0800 | [diff] [blame] | 54 | } |
| 55 | |
| 56 | android_test { |
| 57 | name: "TetheringIntegrationTests", |
| 58 | platform_apis: true, |
| 59 | defaults: ["TetheringIntegrationTestsDefaults"], |
| 60 | test_suites: [ |
| 61 | "device-tests", |
| 62 | "mts", |
| 63 | ], |
| 64 | compile_multilib: "both", |
| 65 | } |
| 66 | |
| 67 | // Special version of the tethering tests that includes all tests necessary for code coverage |
| 68 | // purposes. This is currently the union of TetheringTests, TetheringIntegrationTests and |
| 69 | // NetworkStackTests. |
| 70 | android_test { |
| 71 | name: "TetheringCoverageTests", |
paulhu | 6463265 | 2020-04-06 14:58:12 +0800 | [diff] [blame] | 72 | platform_apis: true, |
| 73 | test_suites: ["device-tests", "mts"], |
| 74 | test_config: "AndroidTest_Coverage.xml", |
| 75 | defaults: ["libnetworkstackutilsjni_deps"], |
| 76 | static_libs: [ |
lucaslin | 5dc7de2 | 2021-01-16 17:46:21 +0800 | [diff] [blame] | 77 | "NetdStaticLibTestsLib", |
markchien | 90b4535 | 2020-04-21 17:42:47 +0800 | [diff] [blame] | 78 | "NetworkStaticLibTestsLib", |
paulhu | 6463265 | 2020-04-06 14:58:12 +0800 | [diff] [blame] | 79 | "NetworkStackTestsLib", |
| 80 | "TetheringTestsLib", |
| 81 | "TetheringIntegrationTestsLib", |
| 82 | ], |
| 83 | jni_libs: [ |
| 84 | // For mockito extended |
| 85 | "libdexmakerjvmtiagent", |
| 86 | "libstaticjvmtiagent", |
| 87 | // For NetworkStackUtils included in NetworkStackBase |
| 88 | "libnetworkstackutilsjni", |
Maciej Żenczykowski | c92e8ce | 2021-02-11 15:54:05 -0800 | [diff] [blame] | 89 | "libtetherutilsjni", |
paulhu | 6463265 | 2020-04-06 14:58:12 +0800 | [diff] [blame] | 90 | ], |
markchien | e312648 | 2020-10-26 13:53:05 +0800 | [diff] [blame] | 91 | jarjar_rules: ":TetheringTestsJarJarRules", |
paulhu | 6463265 | 2020-04-06 14:58:12 +0800 | [diff] [blame] | 92 | compile_multilib: "both", |
| 93 | manifest: "AndroidManifest_coverage.xml", |
markchien | e312648 | 2020-10-26 13:53:05 +0800 | [diff] [blame] | 94 | } |