blob: 26517ceb72ae88e2f3fc4002e929a863de0fb39f [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
paulhud1ebb1e2020-04-06 14:58:12 +080017java_defaults {
18 name: "TetheringTestsDefaults",
markchiendd6177b2019-09-23 20:29:54 +080019 srcs: [
markchiendd6177b2019-09-23 20:29:54 +080020 "src/**/*.java",
Remi NGUYEN VAN5c146662020-01-24 22:57:09 +090021 "src/**/*.kt",
markchiendd6177b2019-09-23 20:29:54 +080022 ],
markchien43e97e02019-09-03 15:58:06 +080023 static_libs: [
paulhud1ebb1e2020-04-06 14:58:12 +080024 "TetheringApiCurrentLib",
markchien43e97e02019-09-03 15:58:06 +080025 "androidx.test.rules",
26 "frameworks-base-testutils",
27 "mockito-target-extended-minus-junit4",
paulhud1ebb1e2020-04-06 14:58:12 +080028 "net-tests-utils",
markchien43e97e02019-09-03 15:58:06 +080029 "testables",
30 ],
markchien44fc26d2020-02-06 19:23:26 +080031 // TODO(b/147200698) change sdk_version to module-current and
32 // remove framework-minus-apex, ext, and framework-res
33 sdk_version: "core_platform",
markchien43e97e02019-09-03 15:58:06 +080034 libs: [
35 "android.test.runner",
36 "android.test.base",
37 "android.test.mock",
paulhud1ebb1e2020-04-06 14:58:12 +080038 "ext",
39 "framework-minus-apex",
40 "framework-res",
markchien9d353822019-12-16 20:15:20 +080041 "framework-tethering",
paulhud1ebb1e2020-04-06 14:58:12 +080042 "framework-wifi-stubs-module_libs_api",
markchien43e97e02019-09-03 15:58:06 +080043 ],
44 jni_libs: [
45 // For mockito extended
46 "libdexmakerjvmtiagent",
47 "libstaticjvmtiagent",
48 ],
markchien9d353822019-12-16 20:15:20 +080049 jarjar_rules: "jarjar-rules.txt",
markchien43e97e02019-09-03 15:58:06 +080050}
paulhud1ebb1e2020-04-06 14:58:12 +080051
52// Library containing the unit tests. This is used by the coverage test target to pull in the
53// unit test code. It is not currently used by the tests themselves because all the build
54// configuration needed by the tests is in the TetheringTestsDefaults rule.
55android_library {
56 name: "TetheringTestsLib",
57 defaults: ["TetheringTestsDefaults"],
58 visibility: [
59 "//frameworks/base/packages/Tethering/tests/integration",
60 ]
61}
62
63android_test {
64 name: "TetheringTests",
65 certificate: "platform",
66 test_suites: [
67 "device-tests",
68 "mts",
69 ],
70 defaults: ["TetheringTestsDefaults"],
71 compile_multilib: "both",
72}