diff --git a/libwvdrmengine/oemcrypto/test/oemcrypto_test.cpp b/libwvdrmengine/oemcrypto/test/oemcrypto_test.cpp index 96bef331..7ecd1712 100644 --- a/libwvdrmengine/oemcrypto/test/oemcrypto_test.cpp +++ b/libwvdrmengine/oemcrypto/test/oemcrypto_test.cpp @@ -10030,7 +10030,7 @@ TEST_P(OEMCryptoUsageTableTest, PSTLargeBuffer) { } // Verify that a usage entry with an invalid session cannot be used. -TEST_P(OEMCryptoUsageTableTest, UsageEntryWithInvalidSessionAPI17) { +TEST_P(OEMCryptoUsageTableTest, UsageEntryWithInvalidSession) { std::string pst("pst"); LicenseWithUsageEntry entry; entry.license_messages().set_pst(pst); @@ -10048,6 +10048,13 @@ TEST_P(OEMCryptoUsageTableTest, UsageEntryWithInvalidSessionAPI17) { entry.session().close(); ASSERT_EQ(OEMCrypto_ERROR_INVALID_SESSION, OEMCrypto_MoveEntry(entry.session().session_id(), 0)); +} + +// Verify that a usage entry with an invalid session cannot be used. +TEST_P(OEMCryptoUsageTableTest, ReuseUsageEntryWithInvalidSessionAPI17) { + std::string pst("pst"); + LicenseWithUsageEntry entry; + entry.license_messages().set_pst(pst); entry.session().open(); ASSERT_NO_FATAL_FAILURE(entry.session().CreateNewUsageEntry());