Loading bluetooth/finder/aidl/vts/VtsHalBluetoothFinderTargetTest.cpp +7 −0 Original line number Original line Diff line number Diff line Loading @@ -18,6 +18,7 @@ #include <aidl/Vintf.h> #include <aidl/Vintf.h> #include <aidl/android/hardware/bluetooth/finder/IBluetoothFinder.h> #include <aidl/android/hardware/bluetooth/finder/IBluetoothFinder.h> #include <android-base/logging.h> #include <android-base/logging.h> #include <android-base/properties.h> #include <android/binder_manager.h> #include <android/binder_manager.h> #include <android/binder_process.h> #include <android/binder_process.h> #include <binder/IServiceManager.h> #include <binder/IServiceManager.h> Loading Loading @@ -71,6 +72,12 @@ ScopedAStatus BluetoothFinderTest::getPoweredOffFinderMode(bool* status) { return bluetooth_finder->getPoweredOffFinderMode(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) { TEST_P(BluetoothFinderTest, SendEidsSingle) { ScopedAStatus status = sendEids(1); ScopedAStatus status = sendEids(1); ASSERT_TRUE(status.isOk()); ASSERT_TRUE(status.isOk()); Loading Loading
bluetooth/finder/aidl/vts/VtsHalBluetoothFinderTargetTest.cpp +7 −0 Original line number Original line Diff line number Diff line Loading @@ -18,6 +18,7 @@ #include <aidl/Vintf.h> #include <aidl/Vintf.h> #include <aidl/android/hardware/bluetooth/finder/IBluetoothFinder.h> #include <aidl/android/hardware/bluetooth/finder/IBluetoothFinder.h> #include <android-base/logging.h> #include <android-base/logging.h> #include <android-base/properties.h> #include <android/binder_manager.h> #include <android/binder_manager.h> #include <android/binder_process.h> #include <android/binder_process.h> #include <binder/IServiceManager.h> #include <binder/IServiceManager.h> Loading Loading @@ -71,6 +72,12 @@ ScopedAStatus BluetoothFinderTest::getPoweredOffFinderMode(bool* status) { return bluetooth_finder->getPoweredOffFinderMode(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) { TEST_P(BluetoothFinderTest, SendEidsSingle) { ScopedAStatus status = sendEids(1); ScopedAStatus status = sendEids(1); ASSERT_TRUE(status.isOk()); ASSERT_TRUE(status.isOk()); Loading