blob: 2bc985a1446c59c292ca80fa5a082763b85bcc18 [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",
Remi NGUYEN VAN6c7570a2021-08-04 19:19:49 +090032 "ServiceConnectivityResources",
Remi NGUYEN VAN31022d62021-05-11 13:37:06 +000033 ],
34 static_libs: [
35 "NetworkStackApiStableLib",
36 "androidx.test.ext.junit",
37 "frameworks-net-integration-testutils",
38 "kotlin-reflect",
39 "mockito-target-extended-minus-junit4",
40 "net-tests-utils",
Remi NGUYEN VAN07551832021-07-08 17:30:46 +090041 "service-connectivity-pre-jarjar",
Remi NGUYEN VAN31022d62021-05-11 13:37:06 +000042 "services.core",
43 "services.net",
44 "testables",
45 ],
46 test_suites: ["device-tests"],
47 use_embedded_native_libs: true,
48 jni_libs: [
49 // For mockito extended
50 "libdexmakerjvmtiagent",
51 "libstaticjvmtiagent",
52 // android_library does not include JNI libs: include NetworkStack dependencies here
53 "libnativehelper_compat_libc++",
54 "libnetworkstackutilsjni",
55 ],
Remi NGUYEN VAN07551832021-07-08 17:30:46 +090056 jarjar_rules: ":connectivity-jarjar-rules",
Remi NGUYEN VAN31022d62021-05-11 13:37:06 +000057}
58
59// Utilities for testing framework code both in integration and unit tests.
60java_library {
61 name: "frameworks-net-integration-testutils",
62 srcs: ["util/**/*.java", "util/**/*.kt"],
63 static_libs: [
64 "androidx.annotation_annotation",
65 "androidx.test.rules",
66 "junit",
67 "net-tests-utils",
68 ],
69 libs: [
70 "service-connectivity",
71 "services.core",
72 "services.net",
73 ],
74}