• 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
17android_test {
18    name: "FrameworksNetIntegrationTests",
19    platform_apis: true,
20    certificate: "platform",
21    srcs: [
22        "src/**/*.kt",
23        "src/**/*.aidl",
24    ],
25    libs: [
26        "android.test.mock",
27    ],
28    static_libs: [
29        "TestNetworkStackLib",
30        "androidx.test.ext.junit",
31        "frameworks-net-integration-testutils",
32        "kotlin-reflect",
33        "mockito-target-extended-minus-junit4",
34        "net-tests-utils",
35        "services.core",
36        "services.net",
37        "testables",
38    ],
39    test_suites: ["device-tests"],
40    use_embedded_native_libs: true,
41    jni_libs: [
42        // For mockito extended
43        "libdexmakerjvmtiagent",
44        "libstaticjvmtiagent",
45        // android_library does not include JNI libs: include NetworkStack dependencies here
46        "libnativehelper_compat_libc++",
47        "libnetworkstackutilsjni",
48    ],
49}
50
51// Utilities for testing framework code both in integration and unit tests.
52java_library {
53    name: "frameworks-net-integration-testutils",
54    srcs: ["util/**/*.java", "util/**/*.kt"],
55    static_libs: [
56        "androidx.annotation_annotation",
57        "androidx.test.rules",
58        "junit",
59        "net-tests-utils",
60    ],
61    libs: [
62        "services.core",
63        "services.net",
64    ],
65}
66