blob: 363be18a73bcdf0b43a2c1a6e3971f156b1b628c [file] [log] [blame]
markchien43e97e02019-09-03 15:58:06 +08001//
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: "TetheringTests",
19 certificate: "platform",
markchiendd6177b2019-09-23 20:29:54 +080020 srcs: [
21 ":servicescore-tethering-src",
22 "src/**/*.java",
23 ],
markchien43e97e02019-09-03 15:58:06 +080024 test_suites: ["device-tests"],
25 static_libs: [
26 "androidx.test.rules",
27 "frameworks-base-testutils",
markchien6aa38892019-09-25 14:33:39 +080028 "net-tests-utils",
markchien43e97e02019-09-03 15:58:06 +080029 "mockito-target-extended-minus-junit4",
30 "TetheringApiCurrentLib",
31 "testables",
32 ],
33 libs: [
34 "android.test.runner",
35 "android.test.base",
36 "android.test.mock",
37 ],
38 jni_libs: [
39 // For mockito extended
40 "libdexmakerjvmtiagent",
41 "libstaticjvmtiagent",
42 ],
43}
44
45// This group would be removed when tethering migration is done.
46filegroup {
47 name: "tethering-tests-src",
48 srcs: [
markchiendd6177b2019-09-23 20:29:54 +080049 "src/com/android/server/connectivity/tethering/EntitlementManagerTest.java",
markchien6aa38892019-09-25 14:33:39 +080050 "src/com/android/server/connectivity/tethering/OffloadControllerTest.java",
markchien43e97e02019-09-03 15:58:06 +080051 "src/com/android/server/connectivity/tethering/TetheringConfigurationTest.java",
markchienf11a5da2019-09-23 21:39:39 +080052 "src/com/android/server/connectivity/tethering/UpstreamNetworkMonitorTest.java",
markchien74a4fa92019-09-09 20:50:49 +080053 "src/android/net/dhcp/DhcpServingParamsParcelExtTest.java",
54 "src/android/net/ip/IpServerTest.java",
55 "src/android/net/util/InterfaceSetTest.java",
markchien43e97e02019-09-03 15:58:06 +080056 ],
57}