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

Commit c35d2f85 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Automerger Merge Worker
Browse files

Merge "Fix StrongBoxOnly test" into rvc-dev am: ba1a4c7f

Change-Id: Ib0a0ebe7f6bcfad87687dab367615373b740f236
parents 26865f38 ba1a4c7f
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -155,8 +155,8 @@ void check_attestation_record(AttestationRecord attestation, const HidlBuf& chal
using std::string;
using DeviceUniqueAttestationTest = Keymaster4_1HidlTest;

TEST_P(DeviceUniqueAttestationTest, StrongBoxOnly) {
    if (SecLevel() != SecurityLevel::STRONGBOX) return;
TEST_P(DeviceUniqueAttestationTest, NonStrongBoxOnly) {
    if (SecLevel() == SecurityLevel::STRONGBOX) return;

    ASSERT_EQ(ErrorCode::OK, convert(GenerateKey(AuthorizationSetBuilder()
                                                         .Authorization(TAG_NO_AUTH_REQUIRED)