blob: 7d9b7b756ae344fb5b713ca11586191dabe4256a [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",
35 "services.core",
36 "services.net",
37 "testables",
38 ],
39 use_embedded_native_libs: true,
40 jni_libs: [
41 // For mockito extended
42 "libdexmakerjvmtiagent",
43 "libstaticjvmtiagent",
44 // android_library does not include JNI libs: include NetworkStack dependencies here
45 "libnativehelper_compat_libc++",
46 "libnetworkstackutilsjni",
47 ],
48}
49
Remi NGUYEN VAN95dc87e2019-06-13 16:12:02 +090050// Utilities for testing framework code both in integration and unit tests.
51java_library {
52 name: "frameworks-net-integration-testutils",
53 srcs: ["util/**/*.java", "util/**/*.kt"],
54 static_libs: [
55 "androidx.annotation_annotation",
56 "androidx.test.rules",
57 "junit",
58 "net-tests-utils",
59 ],
60 libs: [
61 "services.core",
62 "services.net",
63 ],
64}