blob: 7c42811c14cf3c846aa7bf137bac912e4f97eead [file] [log] [blame]
Remi NGUYEN VAN31022d62021-05-11 13:37:06 +00001//
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
Baligh Uddin36847132021-05-23 16:38:40 +000019 default_applicable_licenses: ["Android-Apache-2.0"],
Remi NGUYEN VAN31022d62021-05-11 13:37:06 +000020}
21
22android_test {
23 name: "FrameworksNetIntegrationTests",
24 platform_apis: true,
25 certificate: "platform",
26 srcs: [
27 "src/**/*.kt",
28 "src/**/*.aidl",
29 ],
30 libs: [
31 "android.test.mock",
32 ],
33 static_libs: [
34 "NetworkStackApiStableLib",
35 "androidx.test.ext.junit",
36 "frameworks-net-integration-testutils",
37 "kotlin-reflect",
38 "mockito-target-extended-minus-junit4",
39 "net-tests-utils",
Remi NGUYEN VAN07551832021-07-08 17:30:46 +090040 "service-connectivity-pre-jarjar",
Remi NGUYEN VAN31022d62021-05-11 13:37:06 +000041 "services.core",
42 "services.net",
43 "testables",
44 ],
45 test_suites: ["device-tests"],
46 use_embedded_native_libs: true,
47 jni_libs: [
48 // For mockito extended
49 "libdexmakerjvmtiagent",
50 "libstaticjvmtiagent",
51 // android_library does not include JNI libs: include NetworkStack dependencies here
52 "libnativehelper_compat_libc++",
53 "libnetworkstackutilsjni",
54 ],
Remi NGUYEN VAN07551832021-07-08 17:30:46 +090055 jarjar_rules: ":connectivity-jarjar-rules",
Remi NGUYEN VAN31022d62021-05-11 13:37:06 +000056}
57
58// Utilities for testing framework code both in integration and unit tests.
59java_library {
60 name: "frameworks-net-integration-testutils",
61 srcs: ["util/**/*.java", "util/**/*.kt"],
62 static_libs: [
63 "androidx.annotation_annotation",
64 "androidx.test.rules",
65 "junit",
66 "net-tests-utils",
67 ],
68 libs: [
69 "service-connectivity",
70 "services.core",
71 "services.net",
72 ],
73}