• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1//
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    default_applicable_licenses: ["Android-Apache-2.0"],
20}
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        "ServiceConnectivityResources",
34    ],
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",
42        "service-connectivity-pre-jarjar",
43        "service-connectivity-tiramisu-pre-jarjar",
44        "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",
56        "libandroid_net_connectivity_com_android_net_module_util_jni",
57        "libservice-connectivity",
58    ],
59    jarjar_rules: ":connectivity-jarjar-rules",
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-for-tests",
75        "services.core",
76        "services.net",
77    ],
78}
79