blob: 26f7f4aaee5860f739547ed10ee80a35e8f5a6ff [file] [log] [blame]
Remi NGUYEN VAN678277c2021-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 Uddin2afd0982021-05-24 03:50:01 +000019 default_applicable_licenses: ["Android-Apache-2.0"],
Remi NGUYEN VAN678277c2021-05-11 13:37:06 +000020}
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 ],
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 VANb240e2a2021-07-12 23:40:56 +000041 "service-connectivity-pre-jarjar",
Remi NGUYEN VAN678277c2021-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 VANb240e2a2021-07-12 23:40:56 +000056 jarjar_rules: ":connectivity-jarjar-rules",
Remi NGUYEN VAN678277c2021-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 defaults: ["framework-connectivity-test-defaults"],
63 srcs: ["util/**/*.java", "util/**/*.kt"],
64 static_libs: [
65 "androidx.annotation_annotation",
66 "androidx.test.rules",
67 "junit",
68 "net-tests-utils",
69 ],
70 libs: [
71 "service-connectivity",
72 "services.core",
73 "services.net",
74 ],
75}