Remi NGUYEN VAN | 95dc87e | 2019-06-13 16:12:02 +0900 | [diff] [blame] | 1 | // |
| 2 | // Copyright (C) 2019 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 | |
Remi NGUYEN VAN | bb59253 | 2019-06-20 18:29:36 +0900 | [diff] [blame] | 17 | android_test { |
| 18 | name: "FrameworksNetIntegrationTests", |
| 19 | platform_apis: true, |
| 20 | certificate: "platform", |
| 21 | srcs: [ |
| 22 | "src/**/*.kt", |
| 23 | "src/**/*.aidl", |
| 24 | ], |
| 25 | libs: [ |
| 26 | "android.test.mock", |
| 27 | ], |
| 28 | static_libs: [ |
| 29 | "TestNetworkStackLib", |
| 30 | "androidx.test.ext.junit", |
| 31 | "frameworks-net-integration-testutils", |
| 32 | "kotlin-reflect", |
| 33 | "mockito-target-extended-minus-junit4", |
| 34 | "net-tests-utils", |
| 35 | "services.core", |
| 36 | "services.net", |
| 37 | "testables", |
| 38 | ], |
Remi NGUYEN VAN | 4be48b1 | 2020-01-06 19:49:15 +0900 | [diff] [blame] | 39 | test_suites: ["device-tests"], |
Remi NGUYEN VAN | bb59253 | 2019-06-20 18:29:36 +0900 | [diff] [blame] | 40 | use_embedded_native_libs: true, |
| 41 | jni_libs: [ |
| 42 | // For mockito extended |
| 43 | "libdexmakerjvmtiagent", |
| 44 | "libstaticjvmtiagent", |
| 45 | // android_library does not include JNI libs: include NetworkStack dependencies here |
| 46 | "libnativehelper_compat_libc++", |
| 47 | "libnetworkstackutilsjni", |
| 48 | ], |
| 49 | } |
| 50 | |
Remi NGUYEN VAN | 95dc87e | 2019-06-13 16:12:02 +0900 | [diff] [blame] | 51 | // Utilities for testing framework code both in integration and unit tests. |
| 52 | java_library { |
| 53 | name: "frameworks-net-integration-testutils", |
| 54 | srcs: ["util/**/*.java", "util/**/*.kt"], |
| 55 | static_libs: [ |
| 56 | "androidx.annotation_annotation", |
| 57 | "androidx.test.rules", |
| 58 | "junit", |
| 59 | "net-tests-utils", |
| 60 | ], |
| 61 | libs: [ |
| 62 | "services.core", |
| 63 | "services.net", |
| 64 | ], |
| 65 | } |