blob: 499ac0e18861e758597676dfa0edc571e8e636c1 [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
paulhu64632652020-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 VAN0ef3b752020-01-24 22:57:09 +090021 "src/**/*.kt",
markchiendd6177b2019-09-23 20:29:54 +080022 ],
markchien43e97e02019-09-03 15:58:06 +080023 static_libs: [
paulhu64632652020-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",
paulhu64632652020-04-06 14:58:12 +080028 "net-tests-utils",
markchien43e97e02019-09-03 15:58:06 +080029 "testables",
30 ],
markchienb6ad1962020-02-14 11:55:48 +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",
paulhu64632652020-04-06 14:58:12 +080038 "ext",
39 "framework-minus-apex",
40 "framework-res",
markchien9d353822019-12-16 20:15:20 +080041 "framework-tethering",
markchien43e97e02019-09-03 15:58:06 +080042 ],
43 jni_libs: [
44 // For mockito extended
45 "libdexmakerjvmtiagent",
46 "libstaticjvmtiagent",
47 ],
markchien9d353822019-12-16 20:15:20 +080048 jarjar_rules: "jarjar-rules.txt",
markchien43e97e02019-09-03 15:58:06 +080049}
paulhu64632652020-04-06 14:58:12 +080050
51// Library containing the unit tests. This is used by the coverage test target to pull in the
52// unit test code. It is not currently used by the tests themselves because all the build
53// configuration needed by the tests is in the TetheringTestsDefaults rule.
54android_library {
55 name: "TetheringTestsLib",
56 defaults: ["TetheringTestsDefaults"],
57 visibility: [
58 "//frameworks/base/packages/Tethering/tests/integration",
59 ]
60}
61
62android_test {
63 name: "TetheringTests",
64 certificate: "platform",
65 test_suites: [
66 "device-tests",
67 "mts",
68 ],
69 defaults: ["TetheringTestsDefaults"],
70 compile_multilib: "both",
71}