Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(891)

Unified Diff: media/cdm/aes_decryptor_unittest.cc

Issue 2108033002: EME: Clear Key CDM now generates keystatuseschange event on close() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: update unittest Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: media/cdm/aes_decryptor_unittest.cc
diff --git a/media/cdm/aes_decryptor_unittest.cc b/media/cdm/aes_decryptor_unittest.cc
index aa59540fbdfca00eba9041d53cf5f726f7b50547..246092ae1107b36f2b82d4ebe6a59946d682d568 100644
--- a/media/cdm/aes_decryptor_unittest.cc
+++ b/media/cdm/aes_decryptor_unittest.cc
@@ -337,6 +337,7 @@ class AesDecryptorTest : public testing::TestWithParam<std::string> {
// Closes the session specified by |session_id|.
void CloseSession(const std::string& session_id) {
EXPECT_CALL(*this, OnSessionClosed(session_id));
+ EXPECT_CALL(*this, OnSessionKeysChangeCalled(session_id, false));
cdm_->CloseSession(session_id, CreatePromise(RESOLVED));
}
@@ -347,6 +348,7 @@ class AesDecryptorTest : public testing::TestWithParam<std::string> {
void RemoveSession(const std::string& session_id) {
if (GetParam() == "AesDecryptor") {
EXPECT_CALL(*this, OnSessionClosed(session_id));
+ EXPECT_CALL(*this, OnSessionKeysChangeCalled(session_id, false));
cdm_->RemoveSession(session_id, CreatePromise(RESOLVED));
} else {
// CdmAdapter fails as only persistent sessions can be removed.
« no previous file with comments | « media/cdm/aes_decryptor.cc ('k') | third_party/WebKit/LayoutTests/media/encrypted-media/encrypted-media-keystatuses.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698