Rename CancelKeyRequest
(This is a merge of http://go/wvgerrit/10674 from the Widevine CDM repository.) Now that the CE CDM has CloseSession to handle closing sessions, we can rename CancelKeyRequest on the CDM Engine & CDM Session to better resemble its purpose and the name it is known by on Android. Change-Id: I68d55b3be733579e5875ab33d8e94a62fe1f651d
This commit is contained in:
@@ -45,7 +45,7 @@ class MockCDM : public WvContentDecryptionModule {
|
||||
const CdmKeyResponse&,
|
||||
CdmKeySetId*));
|
||||
|
||||
MOCK_METHOD1(CancelKeyRequest, CdmResponseType(const CdmSessionId&));
|
||||
MOCK_METHOD1(RemoveKeys, CdmResponseType(const CdmSessionId&));
|
||||
|
||||
MOCK_METHOD2(RestoreKey, CdmResponseType(const CdmSessionId&,
|
||||
const CdmKeySetId&));
|
||||
@@ -439,12 +439,12 @@ TEST_F(WVDrmPluginTest, HandlesPrivacyCertCaseOfAddKey) {
|
||||
ASSERT_EQ(OK, res);
|
||||
}
|
||||
|
||||
TEST_F(WVDrmPluginTest, CancelsKeyRequests) {
|
||||
TEST_F(WVDrmPluginTest, RemovesKeys) {
|
||||
StrictMock<MockCDM> cdm;
|
||||
StrictMock<MockCrypto> crypto;
|
||||
WVDrmPlugin plugin(&cdm, &crypto);
|
||||
|
||||
EXPECT_CALL(cdm, CancelKeyRequest(cdmSessionId))
|
||||
EXPECT_CALL(cdm, RemoveKeys(cdmSessionId))
|
||||
.Times(1);
|
||||
|
||||
status_t res = plugin.removeKeys(sessionId);
|
||||
|
||||
Reference in New Issue
Block a user