blob: a42dc5a10ec9ceda1b17ccb7d484db4134b73909 [file] [log] [blame]
Colin Crossfc7ba9e2017-12-07 13:11:06 -08001//
2// Copyright (C) 2016 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
Paul Duffine95a8952017-11-16 15:53:09 +000017// Build the android.test.base library
18// ===================================
19// This contains the junit.framework and android.test classes that were in
20// Android API level 25 excluding those from android.test.runner.
21// Also contains the com.android.internal.util.Predicate[s] classes.
22java_library {
23 name: "android.test.base",
24
25 srcs: ["src/**/*.java"],
26
27 no_framework_libs: true,
28 hostdex: true,
29 libs: [
30 "framework",
31 ],
32
33}
34
Colin Crossfc7ba9e2017-12-07 13:11:06 -080035// Build the legacy-test library
36// =============================
37// This contains the junit.framework and android.test classes that were in
38// Android API level 25 excluding those from android.test.runner.
39// Also contains the com.android.internal.util.Predicate[s] classes.
40java_library {
41 name: "legacy-test",
Paul Duffine95a8952017-11-16 15:53:09 +000042 static_libs: ["android.test.base"],
Colin Crossfc7ba9e2017-12-07 13:11:06 -080043
44 no_framework_libs: true,
45 libs: [
46 "framework",
47 ],
Colin Crossfc7ba9e2017-12-07 13:11:06 -080048}
49
Paul Duffine95a8952017-11-16 15:53:09 +000050// Build the repackaged.android.test.base library
51// ==============================================
Paul Duffinb36eb542018-01-15 15:47:47 +000052// This contains repackaged versions of the classes from
53// android.test.base.
Colin Crossfc7ba9e2017-12-07 13:11:06 -080054java_library_static {
Paul Duffine95a8952017-11-16 15:53:09 +000055 name: "repackaged.android.test.base",
Colin Crossfc7ba9e2017-12-07 13:11:06 -080056
Paul Duffine95a8952017-11-16 15:53:09 +000057 static_libs: ["android.test.base"],
58
59 no_framework_libs: true,
60 libs: [
61 "framework",
62 ],
Colin Crossfc7ba9e2017-12-07 13:11:06 -080063
64 jarjar_rules: "jarjar-rules.txt",
65}
66
67// Build the legacy-android-test library
68// =====================================
69// This contains the android.test classes that were in Android API level 25,
70// including those from android.test.runner.
71// Also contains the com.android.internal.util.Predicate[s] classes.
72java_library_static {
73 name: "legacy-android-test",
74
75 srcs: [
76 "src/android/**/*.java",
77 "src/com/**/*.java",
78 ],
79
80 static_libs: [
Paul Duffina88eb292018-01-12 16:08:35 +000081 "android.test.runner-minus-junit",
Colin Crossfc7ba9e2017-12-07 13:11:06 -080082 "android.test.mock",
83 ],
84
85 no_framework_libs: true,
86 libs: [
87 "framework",
88 "junit",
89 ],
90}