Rename ReleaseAllUsageInfo to RemoveAllUsageInfo
[ Merge of http://go/wvgerrit/44920 ] Bug: 69674645 Test: WV unit and integration tests Change-Id: Iee6e60b9dd20a8ed087c5e44924aa1c05f640920
This commit is contained in:
@@ -457,8 +457,8 @@ status_t WVDrmPlugin::getSecureStops(List<Vector<uint8_t> >& secureStops) {
|
||||
}
|
||||
|
||||
status_t WVDrmPlugin::releaseAllSecureStops() {
|
||||
CdmResponseType res = mCDM->ReleaseAllUsageInfo(mPropertySet.app_id(),
|
||||
mCdmIdentifier);
|
||||
CdmResponseType res = mCDM->RemoveAllUsageInfo(mPropertySet.app_id(),
|
||||
mCdmIdentifier);
|
||||
return mapCdmResponseType(res);
|
||||
}
|
||||
|
||||
|
||||
@@ -609,8 +609,8 @@ Return<Status> WVDrmPlugin::releaseAllSecureStops() {
|
||||
return status;
|
||||
}
|
||||
|
||||
CdmResponseType res = mCDM->ReleaseAllUsageInfo(mPropertySet.app_id(),
|
||||
identifier);
|
||||
CdmResponseType res = mCDM->RemoveAllUsageInfo(mPropertySet.app_id(),
|
||||
identifier);
|
||||
return mapCdmResponseType(res);
|
||||
}
|
||||
|
||||
|
||||
@@ -190,8 +190,8 @@ class MockCDM : public WvContentDecryptionModule {
|
||||
const CdmIdentifier&,
|
||||
CdmUsageInfo*));
|
||||
|
||||
MOCK_METHOD2(ReleaseAllUsageInfo, CdmResponseType(const std::string&,
|
||||
const CdmIdentifier&));
|
||||
MOCK_METHOD2(RemoveAllUsageInfo, CdmResponseType(const std::string&,
|
||||
const CdmIdentifier&));
|
||||
|
||||
MOCK_METHOD2(ReleaseUsageInfo,
|
||||
CdmResponseType(const CdmUsageInfoReleaseMessage&, const CdmIdentifier&));
|
||||
@@ -1026,7 +1026,7 @@ TEST_F(WVDrmPluginTest, ReleasesAllSecureStops) {
|
||||
StrictMock<MockCrypto> crypto;
|
||||
std::string appPackageName;
|
||||
|
||||
EXPECT_CALL(*cdm, ReleaseAllUsageInfo(StrEq(""), _))
|
||||
EXPECT_CALL(*cdm, RemoveAllUsageInfo(StrEq(""), _))
|
||||
.Times(1);
|
||||
|
||||
WVDrmPlugin plugin(cdm.get(), appPackageName, &crypto, false);
|
||||
|
||||
@@ -100,8 +100,8 @@ class MockCDM : public WvContentDecryptionModule {
|
||||
const CdmIdentifier&,
|
||||
CdmUsageInfo*));
|
||||
|
||||
MOCK_METHOD2(ReleaseAllUsageInfo, CdmResponseType(const std::string&,
|
||||
const CdmIdentifier&));
|
||||
MOCK_METHOD2(RemoveAllUsageInfo, CdmResponseType(const std::string&,
|
||||
const CdmIdentifier&));
|
||||
|
||||
MOCK_METHOD2(ReleaseUsageInfo,
|
||||
CdmResponseType(const CdmUsageInfoReleaseMessage&, const CdmIdentifier&));
|
||||
@@ -800,7 +800,7 @@ TEST_F(WVDrmPluginTest, ReleasesAllSecureStops) {
|
||||
status_t res = plugin.setPropertyString(String8("appId"), String8(""));
|
||||
ASSERT_EQ(OK, res);
|
||||
|
||||
EXPECT_CALL(*cdm, ReleaseAllUsageInfo(StrEq(""), _))
|
||||
EXPECT_CALL(*cdm, RemoveAllUsageInfo(StrEq(""), _))
|
||||
.Times(1);
|
||||
|
||||
res = plugin.releaseAllSecureStops();
|
||||
|
||||
Reference in New Issue
Block a user