summaryrefslogtreecommitdiff
path: root/test-base/Android.bp
diff options
context:
space:
mode:
Diffstat (limited to 'test-base/Android.bp')
-rw-r--r--test-base/Android.bp35
1 files changed, 28 insertions, 7 deletions
diff --git a/test-base/Android.bp b/test-base/Android.bp
index 1173bc6e656b..30c9af1de1b0 100644
--- a/test-base/Android.bp
+++ b/test-base/Android.bp
@@ -14,30 +14,51 @@
// limitations under the License.
//
-// Build the legacy-test library
-// =============================
+// Build the android.test.base library
+// ===================================
// This contains the junit.framework and android.test classes that were in
// Android API level 25 excluding those from android.test.runner.
// Also contains the com.android.internal.util.Predicate[s] classes.
java_library {
- name: "legacy-test",
+ name: "android.test.base",
srcs: ["src/**/*.java"],
no_framework_libs: true,
+ hostdex: true,
libs: [
"framework",
],
}
-// Build the repackaged-legacy-test library
-// ========================================
+// Build the legacy-test library
+// =============================
+// This contains the junit.framework and android.test classes that were in
+// Android API level 25 excluding those from android.test.runner.
+// Also contains the com.android.internal.util.Predicate[s] classes.
+java_library {
+ name: "legacy-test",
+ static_libs: ["android.test.base"],
+
+ no_framework_libs: true,
+ libs: [
+ "framework",
+ ],
+}
+
+// Build the repackaged.android.test.base library
+// ==============================================
// This contains repackaged versions of the classes from legacy-test.
java_library_static {
- name: "repackaged-legacy-test",
+ name: "repackaged.android.test.base",
- static_libs: ["legacy-test"],
+ static_libs: ["android.test.base"],
+
+ no_framework_libs: true,
+ libs: [
+ "framework",
+ ],
jarjar_rules: "jarjar-rules.txt",
}