From 41a33e5b1c868373b3536ff69251d518ad58327e Mon Sep 17 00:00:00 2001 From: Yahav Nussbaum Date: Wed, 31 Jan 2024 21:55:00 +0000 Subject: [PATCH] Test that the Bluetooth Finder property is set. Bug: 307897345 Test: atest VtsHalBluetoothFinderTargetTest Change-Id: I1821d1cc255a5e156497b993d694fdd9d38c4a96 --- .../finder/aidl/vts/VtsHalBluetoothFinderTargetTest.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/bluetooth/finder/aidl/vts/VtsHalBluetoothFinderTargetTest.cpp b/bluetooth/finder/aidl/vts/VtsHalBluetoothFinderTargetTest.cpp index be07a7db24..fee9e24200 100644 --- a/bluetooth/finder/aidl/vts/VtsHalBluetoothFinderTargetTest.cpp +++ b/bluetooth/finder/aidl/vts/VtsHalBluetoothFinderTargetTest.cpp @@ -18,6 +18,7 @@ #include #include #include +#include #include #include #include @@ -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());