#include "media/test/fake_encrypted_media.h"
#include "base/functional/bind.h"
#include "media/base/cdm_key_information.h"
#include "media/cdm/aes_decryptor.h"
namespace media {
FakeEncryptedMedia::TestCdmContext::TestCdmContext(Decryptor* decryptor)
: … { … }
Decryptor* FakeEncryptedMedia::TestCdmContext::GetDecryptor() { … }
FakeEncryptedMedia::FakeEncryptedMedia(AppBase* app)
: … { … }
FakeEncryptedMedia::~FakeEncryptedMedia() = default;
CdmContext* FakeEncryptedMedia::GetCdmContext() { … }
void FakeEncryptedMedia::OnSessionMessage(const std::string& session_id,
CdmMessageType message_type,
const std::vector<uint8_t>& message) { … }
void FakeEncryptedMedia::OnSessionClosed(const std::string& session_id,
CdmSessionClosedReason reason) { … }
void FakeEncryptedMedia::OnSessionKeysChange(const std::string& session_id,
bool has_additional_usable_key,
CdmKeysInfo keys_info) { … }
void FakeEncryptedMedia::OnSessionExpirationUpdate(
const std::string& session_id,
base::Time new_expiry_time) { … }
void FakeEncryptedMedia::OnEncryptedMediaInitData(
EmeInitDataType init_data_type,
const std::vector<uint8_t>& init_data) { … }
}