2bdea1767f345cbddb19d72004524a3d821ea9b6
Changes the OPK session state machine to allow API_MOVEENTRY in the same circumstances as API_CREATENEWUSAGEENTRY. Adds a test to trigger the same situation as the linked bug. The test cases in the bug fail because OEMCrypto_MoveEntry() is called immediately after OEMCrypto_CreateNewUsageEntry(), but the session state machine has different filters for the two calls. Furthermore, OEMCrypto_CreateNewUsageEntry() doesn't change the state machine, so we should align the two filters to allow OEMCrypto_MoveEntry() to be called immediately after OEMCrypto_CreateNewUsageEntry() in all situations where OEMCrypto_CreateNewUsageEntry() is allowed. The existing OEMCrypto defrag tests did not catch this edge case because the test helper functions always do something to modify the state machine after calling OEMCrypto_CreateNewUsageEntry(). Test: OEMCryptoUsageTableDefragTest.MakeAndMoveEntry Bug: 286938572 Merged from https://widevine-internal-review.googlesource.com/178013 (cherry picked from commit a87d66ccb7b2fc5f549142e64a7e45531dd95db6) Change-Id: I8a8465b2b7479effe4055a014bc94b166178a693
Description
No description provided