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

Commit 69814777 authored by Robert Shih's avatar Robert Shih
Browse files

DrmHalTest: null check for skipped test

Bug: 253168737
Change-Id: I0dea0d2482d607eecff433ffb901eba02a39770f
Test: VtsAidlHalDrmTargetTest
parent 6331fd4d
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -263,6 +263,9 @@ std::vector<uint8_t> DrmHalTest::getVendorUUID() {
}

bool DrmHalTest::isCryptoSchemeSupported(Uuid uuid, SecurityLevel level, std::string mime) {
    if (drmFactory == nullptr) {
        return false;
    }
    CryptoSchemes schemes{};
    auto ret = drmFactory->getSupportedCryptoSchemes(&schemes);
    EXPECT_OK(ret);