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

Commit 14932000 authored by Lais Andrade's avatar Lais Andrade
Browse files

Fix vibrator VTS failure on older HAL versions

Fixing tests missed by ag/14937086.

Fix: 186481596
Test: VtsHalVibratorTargetTest
Change-Id: Ib4b4885a99effb6c010573146f5b016872f7a202
parent e1aa9206
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -309,8 +309,8 @@ TEST_P(VibratorAidl, InvalidEffectsUnsupported) {
        for (EffectStrength strength : kEffectStrengths) {
            int32_t lengthMs;
            Status status = vibrator->perform(effect, strength, nullptr /*callback*/, &lengthMs);
            EXPECT_EQ(status.exceptionCode(), Status::EX_UNSUPPORTED_OPERATION)
                << toString(effect) << " " << toString(strength);
            EXPECT_TRUE(isUnknownOrUnsupported(status))
                    << status << toString(effect) << " " << toString(strength);
        }
    }
    for (Effect effect : kEffects) {
@@ -686,7 +686,7 @@ TEST_P(VibratorAidl, GetPwlePrimitiveDurationMax) {
        ASSERT_NE(durationMs, 0);
        EXPECT_EQ(status.exceptionCode(), Status::EX_NONE);
    } else {
        EXPECT_EQ(status.exceptionCode(), Status::EX_UNSUPPORTED_OPERATION);
        EXPECT_TRUE(isUnknownOrUnsupported(status)) << status;
    }
}