Separate invalid session test for ReuseUsageEntry
[ Merge of http://go/wvgerrit/144729 ] Since OEMCrypto_ReuseUsageEntry() was introduced in v17, splitting the test case for an invalid session from the other usage entry methods since they were implemented in v15/16 as well. Bug: 216193739 Test: GtsMediaTestCases on a sunfish Change-Id: I7f4399c07a19227495a15807228b930066f6a794
This commit is contained in:
@@ -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());
|
||||
|
||||
Reference in New Issue
Block a user