blob: 730ef3b98fa78a898ff06294407f2bc869cd13d1 [file] [log] [blame]
Remi NGUYEN VAN95dc87e2019-06-13 16:12:02 +09001//
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
Bob Badour051ef782021-02-12 17:07:05 -080017package {
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
Remi NGUYEN VANbb592532019-06-20 18:29:36 +090026android_test {
27 name: "FrameworksNetIntegrationTests",
Chiachang Wanga12c1f12021-04-13 20:16:00 +080028 defaults: ["framework-connectivity-test-defaults"],
Remi NGUYEN VANbb592532019-06-20 18:29:36 +090029 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: [
Lorenzo Colitti55d9c5a2021-03-01 14:49:34 +090039 "NetworkStackApiStableLib",
Remi NGUYEN VANbb592532019-06-20 18:29:36 +090040 "androidx.test.ext.junit",
41 "frameworks-net-integration-testutils",
42 "kotlin-reflect",
43 "mockito-target-extended-minus-junit4",
44 "net-tests-utils",
Aaron Huang944025a2020-06-27 07:18:23 +080045 "service-connectivity",
Remi NGUYEN VANbb592532019-06-20 18:29:36 +090046 "services.core",
47 "services.net",
48 "testables",
49 ],
Remi NGUYEN VAN4be48b12020-01-06 19:49:15 +090050 test_suites: ["device-tests"],
Remi NGUYEN VANbb592532019-06-20 18:29:36 +090051 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
Remi NGUYEN VAN95dc87e2019-06-13 16:12:02 +090062// Utilities for testing framework code both in integration and unit tests.
63java_library {
64 name: "frameworks-net-integration-testutils",
65 srcs: ["util/**/*.java", "util/**/*.kt"],
66 static_libs: [
67 "androidx.annotation_annotation",
68 "androidx.test.rules",
69 "junit",
70 "net-tests-utils",
71 ],
72 libs: [
Aaron Huang944025a2020-06-27 07:18:23 +080073 "service-connectivity",
Remi NGUYEN VAN95dc87e2019-06-13 16:12:02 +090074 "services.core",
75 "services.net",
76 ],
77}