blob: 69742b9bf7b21de57069bf1bb7ed80bc567ebaee [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
Remi NGUYEN VANbb592532019-06-20 18:29:36 +090017android_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",
Aaron Huange6f27dd2020-06-27 07:18:23 +080035 "service-connectivity",
Remi NGUYEN VANbb592532019-06-20 18:29:36 +090036 "services.core",
37 "services.net",
38 "testables",
39 ],
Remi NGUYEN VAN4be48b12020-01-06 19:49:15 +090040 test_suites: ["device-tests"],
Remi NGUYEN VANbb592532019-06-20 18:29:36 +090041 use_embedded_native_libs: true,
42 jni_libs: [
43 // For mockito extended
44 "libdexmakerjvmtiagent",
45 "libstaticjvmtiagent",
46 // android_library does not include JNI libs: include NetworkStack dependencies here
47 "libnativehelper_compat_libc++",
48 "libnetworkstackutilsjni",
49 ],
50}
51
Remi NGUYEN VAN95dc87e2019-06-13 16:12:02 +090052// Utilities for testing framework code both in integration and unit tests.
53java_library {
54 name: "frameworks-net-integration-testutils",
55 srcs: ["util/**/*.java", "util/**/*.kt"],
56 static_libs: [
57 "androidx.annotation_annotation",
58 "androidx.test.rules",
59 "junit",
60 "net-tests-utils",
61 ],
62 libs: [
Aaron Huange6f27dd2020-06-27 07:18:23 +080063 "service-connectivity",
Remi NGUYEN VAN95dc87e2019-06-13 16:12:02 +090064 "services.core",
65 "services.net",
66 ],
67}