mirror of
https://github.com/Evolution-X/hardware_interfaces
synced 2026-02-01 11:36:00 +00:00
Merge "uwb(vts): Close HAL at end of each test" into tm-dev am: 987a7e3f30
Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/interfaces/+/18840238 Change-Id: I9f02ab84aba0deb8b9186a23d1853da4873fec2a Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
@@ -68,6 +68,11 @@ class UwbAidl : public testing::TestWithParam<std::string> {
|
||||
iuwb_ = IUwb::fromBinder(SpAIBinder(AServiceManager_waitForService(GetParam().c_str())));
|
||||
ASSERT_NE(iuwb_, nullptr);
|
||||
}
|
||||
virtual void TearDown() override {
|
||||
// Trigger HAL close at end of each test.
|
||||
const auto iuwb_chip = getAnyChip();
|
||||
iuwb_chip->close();
|
||||
}
|
||||
std::shared_ptr<IUwb> iuwb_;
|
||||
|
||||
// TODO (b/197638976): We pick the first chip here. Need to fix this
|
||||
|
||||
Reference in New Issue
Block a user