commit | 298ce70c9f4f1265776993123e7d46d008b37d67 | [log] [tgz] |
---|---|---|
author | Roshan Pius <rpius@google.com> | Mon Jun 13 18:29:45 2022 +0000 |
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | Mon Jun 13 18:29:45 2022 +0000 |
tree | 9462bb59e3c450ff21f50da33b14a9d4f49bcfe5 | |
parent | 2c4b7216e550dabb3853fe46fd7c1a17a0ea54a9 [diff] | |
parent | bf4774aa80a1f7a720633c8b01c02a0d718a2ba6 [diff] |
Merge "uwb(vts): Close HAL at end of each test" into tm-dev am: 987a7e3f30 am: 26e8f8c071 am: bf4774aa80 Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/interfaces/+/18840238 Change-Id: Id01527125be63f6295c528fe841a01dcfe671593 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
diff --git a/uwb/aidl/vts/VtsHalUwbTargetTest.cpp b/uwb/aidl/vts/VtsHalUwbTargetTest.cpp index edd8dd6..81d26ba 100644 --- a/uwb/aidl/vts/VtsHalUwbTargetTest.cpp +++ b/uwb/aidl/vts/VtsHalUwbTargetTest.cpp
@@ -68,6 +68,11 @@ 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