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

Commit 6e8bfe7b authored by Matt Buckley's avatar Matt Buckley
Browse files

Update VtsHalPowerTargetTest to not break

Change-Id: Ib4573e2845b5d09c7d39f3210559bd66c4270bba
Test: atest VtsHalPowerTargetTest
Flag: EXEMPT test
Bug: 381293544
parent 1eb8290c
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -141,13 +141,13 @@ class PowerAidl : public testing::TestWithParam<std::string> {
        power = IPower::fromBinder(ndk::SpAIBinder(binder));
        auto status = power->getInterfaceVersion(&mServiceVersion);
        ASSERT_TRUE(status.isOk());
        if (mServiceVersion >= 2) {
            status = power->createHintSession(getpid(), getuid(), kSelfTids, 16666666L, &mSession);
            mSessionSupport = status.isOk();
        }
        if (mServiceVersion >= 6) {
            mSupportInfo = std::make_optional<SupportInfo>();
            ASSERT_TRUE(power->getSupportInfo(&(*mSupportInfo)).isOk());
            mSessionSupport = mSupportInfo->usesSessions;
        } else if (mServiceVersion >= 2) {
            status = power->createHintSession(getpid(), getuid(), kSelfTids, 16666666L, &mSession);
            mSessionSupport = status.isOk();
        }
    }