mirror of
https://github.com/Evolution-X/hardware_interfaces
synced 2026-02-02 10:05:19 +00:00
Merge "Test that the Bluetooth Finder property is set." into main am: e2f62e73f4
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2940230 Change-Id: I19644fcf6628ee538c8a5a234f03cd2eacb61a58 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
@@ -18,6 +18,7 @@
|
||||
#include <aidl/Vintf.h>
|
||||
#include <aidl/android/hardware/bluetooth/finder/IBluetoothFinder.h>
|
||||
#include <android-base/logging.h>
|
||||
#include <android-base/properties.h>
|
||||
#include <android/binder_manager.h>
|
||||
#include <android/binder_process.h>
|
||||
#include <binder/IServiceManager.h>
|
||||
@@ -71,6 +72,12 @@ ScopedAStatus BluetoothFinderTest::getPoweredOffFinderMode(bool* status) {
|
||||
return bluetooth_finder->getPoweredOffFinderMode(status);
|
||||
}
|
||||
|
||||
TEST_P(BluetoothFinderTest, PropertyIsSet) {
|
||||
ASSERT_EQ(
|
||||
android::base::GetProperty("ro.bluetooth.finder.supported", "false"),
|
||||
"true");
|
||||
}
|
||||
|
||||
TEST_P(BluetoothFinderTest, SendEidsSingle) {
|
||||
ScopedAStatus status = sendEids(1);
|
||||
ASSERT_TRUE(status.isOk());
|
||||
|
||||
Reference in New Issue
Block a user