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