#include "media/cdm/library_cdm/mock_library_cdm.h"
#include <string>
#include "base/check.h"
#include "base/logging.h"
#include "media/cdm/library_cdm/cdm_host_proxy.h"
#include "media/cdm/library_cdm/cdm_host_proxy_impl.h"
namespace media {
namespace {
static MockLibraryCdm* g_mock_library_cdm = …;
}
MockLibraryCdm* MockLibraryCdm::GetInstance() { … }
template <typename HostInterface>
MockLibraryCdm::MockLibraryCdm(HostInterface* host,
const std::string& key_system)
: cdm_host_proxy_(std::make_unique<CdmHostProxyImpl<HostInterface>>(host)) { … }
MockLibraryCdm::~MockLibraryCdm() { … }
CdmHostProxy* MockLibraryCdm::GetCdmHostProxy() { … }
void MockLibraryCdm::Initialize(bool allow_distinctive_identifier,
bool allow_persistent_state,
bool use_hw_secure_codecs) { … }
void* CreateMockLibraryCdm(int cdm_interface_version,
const char* key_system,
uint32_t key_system_size,
GetCdmHostFunc get_cdm_host_func,
void* user_data) { … }
}