diff options
-rw-r--r-- | Android.bp | 26 | ||||
-rw-r--r-- | AndroidManifest.xml | 16 |
2 files changed, 42 insertions, 0 deletions
@@ -3,6 +3,13 @@ filegroup { srcs: ["java/com/google/setfilters/cuckoofilter/*.java"], } +filegroup { + name: "cuckoofilter_test_srcs", + srcs: ["javatests/com/google/setfilters/cuckoofilter/*.java"], + // For now exclude tests with mocks. + exclude_srcs: ["javatests/com/google/setfilters/cuckoofilter/CuckooFilterTableTest.java"], +} + java_library { name: "cuckoofilter", host_supported: true, @@ -14,3 +21,22 @@ java_library { "error_prone_annotations", ], } + +android_test { + name: "cuckoofiltertest", + + srcs: [":cuckoofilter_test_srcs"], + sdk_version: "current", + min_sdk_version: "21", + + static_libs: [ + "androidx.test.runner", + "cuckoofilter", + "junit", + "truth", + "truth-java8-extension", + ], + certificate: "platform", + + test_suites: ["device-tests"], +} diff --git a/AndroidManifest.xml b/AndroidManifest.xml new file mode 100644 index 0000000..83c070d --- /dev/null +++ b/AndroidManifest.xml @@ -0,0 +1,16 @@ +<?xml version="1.0" encoding="utf-8"?> + +<manifest xmlns:android="http://schemas.android.com/apk/res/android" + package="com.google.setfilters.cuckoofilter" > + + <uses-sdk android:minSdkVersion="21" android:targetSdkVersion="21" /> + + <application> + <uses-library android:name="android.test.runner" /> + </application> + + <instrumentation android:name="androidx.test.runner.AndroidJUnitRunner" + android:targetPackage="com.google.setfilters.cuckoofilter" + android:label="Cuckoo Filter Instrumentation Test"/> + +</manifest> |