blob: a3fd3452aaef7e1b0b923046b4f0612e5dcfeb00 [file] [log] [blame]
Colin Cross2b7d71c2017-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
17// 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 libs: [
29 "framework",
30 ],
31
32}
33
34// Build the legacy-test library
35// =============================
36// This contains the junit.framework and android.test classes that were in
37// Android API level 25 excluding those from android.test.runner.
38// Also contains the com.android.internal.util.Predicate[s] classes.
39java_library {
40 name: "legacy-test",
41 static_libs: ["android.test.base"],
42
43 no_framework_libs: true,
44 libs: [
45 "framework",
46 ],
47}
48
49// Build the repackaged.android.test.base library
50// ==============================================
51// This contains repackaged versions of the classes from legacy-test.
52java_library_static {
53 name: "repackaged.android.test.base",
54
55 static_libs: ["android.test.base"],
56
57 no_framework_libs: true,
58 libs: [
59 "framework",
60 ],
61
62 jarjar_rules: "jarjar-rules.txt",
63}
64
65// Build the legacy-android-test library
66// =====================================
67// This contains the android.test classes that were in Android API level 25,
68// including those from android.test.runner.
69// Also contains the com.android.internal.util.Predicate[s] classes.
70java_library_static {
71 name: "legacy-android-test",
72
73 srcs: [
74 "src/android/**/*.java",
75 "src/com/**/*.java",
76 ],
77
78 static_libs: [
79 "android.test.runner",
80 "android.test.mock",
81 ],
82
83 no_framework_libs: true,
84 libs: [
85 "framework",
86 "junit",
87 ],
88}