Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 298ce70c authored by Roshan Pius's avatar Roshan Pius Committed by Automerger Merge Worker
Browse files

Merge "uwb(vts): Close HAL at end of each test" into tm-dev am: 987a7e3f am:...

Merge "uwb(vts): Close HAL at end of each test" into tm-dev am: 987a7e3f am: 26e8f8c0 am: bf4774aa

Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/interfaces/+/18840238



Change-Id: Id01527125be63f6295c528fe841a01dcfe671593
Signed-off-by: default avatarAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
parents 2c4b7216 bf4774aa
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -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