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