Add deviceshadower and robotest for BluetoothClassicPairer.
Test: robo test.
Bug: 200231384
Change-Id: If53bf854be6172fe7eb01785c3f18551a063a92c
diff --git a/nearby/tests/robotests/Android.bp b/nearby/tests/robotests/Android.bp
new file mode 100644
index 0000000..14b0815
--- /dev/null
+++ b/nearby/tests/robotests/Android.bp
@@ -0,0 +1,52 @@
+//############################################
+// Nearby Robolectric test target. #
+//############################################
+
+package {
+ default_applicable_licenses: ["Android-Apache-2.0"],
+}
+
+android_app {
+ name: "FastPairTest",
+
+ srcs: ["src/**/*.java"],
+ java_resource_dirs: ["config"],
+
+ platform_apis: true,
+ optimize: {
+ enabled: false,
+ },
+
+ libs: [
+ "android-support-annotations",
+ "services.core",
+ ],
+
+ static_libs: [
+ "androidx.test.core",
+ "androidx.core_core",
+ "androidx.annotation_annotation",
+ "androidx.legacy_legacy-support-v4",
+ "androidx.recyclerview_recyclerview",
+ "androidx.preference_preference",
+ "androidx.appcompat_appcompat",
+ "androidx.lifecycle_lifecycle-runtime",
+ "androidx.mediarouter_mediarouter-nodeps",
+ "error_prone_annotations",
+ "mockito-robolectric-prebuilt",
+ "service-nearby",
+ "truth-prebuilt",
+ "robolectric_android-all-stub",
+ "Robolectric_all-target",
+ ],
+}
+
+android_robolectric_test {
+ name: "FastPairRoboTests",
+ srcs: ["src/**/*.java"],
+ instrumentation_for: "FastPairTest",
+ test_options: {
+ // timeout in seconds.
+ timeout: 36000,
+ },
+}