blob: 5fe478ff3773670e54d0ae325518fb2749f77a86 [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",
40 "service-connectivity",
41 "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 ],
55}
56
57// Utilities for testing framework code both in integration and unit tests.
58java_library {
59 name: "frameworks-net-integration-testutils",
60 srcs: ["util/**/*.java", "util/**/*.kt"],
61 static_libs: [
62 "androidx.annotation_annotation",
63 "androidx.test.rules",
64 "junit",
65 "net-tests-utils",
66 ],
67 libs: [
68 "service-connectivity",
69 "services.core",
70 "services.net",
71 ],
72}