blob: b3684ac10d86728ef1bd698b1cc6df787a44b0c9 [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",
Colin Cross8e501712022-05-18 18:23:18 +000024 defaults: ["framework-connectivity-test-defaults"],
Remi NGUYEN VAN678277c2021-05-11 13:37:06 +000025 platform_apis: true,
26 certificate: "platform",
27 srcs: [
28 "src/**/*.kt",
29 "src/**/*.aidl",
30 ],
31 libs: [
32 "android.test.mock",
Remi NGUYEN VAN0a37e722021-08-04 19:19:49 +090033 "ServiceConnectivityResources",
Remi NGUYEN VAN678277c2021-05-11 13:37:06 +000034 ],
35 static_libs: [
36 "NetworkStackApiStableLib",
37 "androidx.test.ext.junit",
38 "frameworks-net-integration-testutils",
39 "kotlin-reflect",
40 "mockito-target-extended-minus-junit4",
41 "net-tests-utils",
Remi NGUYEN VANb240e2a2021-07-12 23:40:56 +000042 "service-connectivity-pre-jarjar",
Lorenzo Colitti4a18ab22022-02-04 01:39:01 +090043 "service-connectivity-tiramisu-pre-jarjar",
Remi NGUYEN VAN678277c2021-05-11 13:37:06 +000044 "services.net",
45 "testables",
46 ],
47 test_suites: ["device-tests"],
48 use_embedded_native_libs: true,
49 jni_libs: [
50 // For mockito extended
51 "libdexmakerjvmtiagent",
52 "libstaticjvmtiagent",
53 // android_library does not include JNI libs: include NetworkStack dependencies here
54 "libnativehelper_compat_libc++",
55 "libnetworkstackutilsjni",
Remi NGUYEN VAN6a20eed2022-01-31 11:21:08 +090056 "libandroid_net_connectivity_com_android_net_module_util_jni",
Patrick Rohrd8174362022-02-01 12:32:43 +010057 "libservice-connectivity",
Remi NGUYEN VAN678277c2021-05-11 13:37:06 +000058 ],
Remi NGUYEN VANb240e2a2021-07-12 23:40:56 +000059 jarjar_rules: ":connectivity-jarjar-rules",
Remi NGUYEN VAN678277c2021-05-11 13:37:06 +000060}
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: [
Paul Duffin4ceb8c12022-05-20 14:15:42 +000074 "service-connectivity-for-tests",
Remi NGUYEN VAN678277c2021-05-11 13:37:06 +000075 "services.core",
76 "services.net",
77 ],
Remi NGUYEN VAN678277c2021-05-11 13:37:06 +000078}