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 17package { 18 // See: http://go/android-license-faq 19 default_applicable_licenses: ["Android-Apache-2.0"], 20} 21 22android_test { 23 name: "FrameworksNetIntegrationTests", 24 defaults: ["framework-connectivity-test-defaults"], 25 platform_apis: true, 26 certificate: "platform", 27 srcs: [ 28 "src/**/*.kt", 29 "src/**/*.aidl", 30 ], 31 libs: [ 32 "android.test.mock", 33 "ServiceConnectivityResources", 34 ], 35 static_libs: [ 36 "NetworkStackApiStableLib", 37 "androidx.test.ext.junit", 38 "frameworks-net-integration-testutils", 39 "kotlin-reflect", 40 "mockito-target-extended-minus-junit4", 41 "net-tests-utils", 42 "service-connectivity-pre-jarjar", 43 "services.core", 44 "services.net", 45 "testables", 46 ], 47 test_suites: ["device-tests"], 48 use_embedded_native_libs: true, 49 jni_libs: [ 50 // For mockito extended 51 "libdexmakerjvmtiagent", 52 "libstaticjvmtiagent", 53 // android_library does not include JNI libs: include NetworkStack dependencies here 54 "libnativehelper_compat_libc++", 55 "libnetworkstackutilsjni", 56 ], 57 jarjar_rules: ":connectivity-jarjar-rules", 58} 59 60// Utilities for testing framework code both in integration and unit tests. 61java_library { 62 name: "frameworks-net-integration-testutils", 63 defaults: ["framework-connectivity-test-defaults"], 64 srcs: ["util/**/*.java", "util/**/*.kt"], 65 static_libs: [ 66 "androidx.annotation_annotation", 67 "androidx.test.rules", 68 "junit", 69 "net-tests-utils", 70 ], 71 libs: [ 72 "service-connectivity", 73 "services.core", 74 "services.net", 75 ], 76} 77