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

Commit 50480606 authored by Daniel Zheng's avatar Daniel Zheng Committed by Android (Google) Code Review
Browse files

Merge "health v4 vts test add guard" into main

parents 1601f913 59e74cad
Loading
Loading
Loading
Loading
+7 −1
Original line number Diff line number Diff line
@@ -363,8 +363,14 @@ TEST_P(HealthAidl, getStorageInfo) {
 * Tests the values returned by getHingeInfo() from interface IHealth.
 */
TEST_P(HealthAidl, getHingeInfo) {
    int32_t version{};
    auto status = health->getInterfaceVersion(&version);
    ASSERT_TRUE(status.isOk()) << status;
    if (version < 4) {
        GTEST_SKIP() << "Support for hinge health hal is added in v4";
    }
    std::vector<HingeInfo> value;
    auto status = health->getHingeInfo(&value);
    status = health->getHingeInfo(&value);
    ASSERT_THAT(status, AnyOf(IsOk(), ExceptionIs(EX_UNSUPPORTED_OPERATION)));
    if (!status.isOk()) return;
    for (auto& hinge : value) {