#include "media/mojo/services/cdm_service.h"
#include <memory>
#include <tuple>
#include "base/files/file_path.h"
#include "base/functional/bind.h"
#include "base/memory/raw_ptr.h"
#include "base/run_loop.h"
#include "base/test/task_environment.h"
#include "base/unguessable_token.h"
#include "build/build_config.h"
#include "media/base/mock_filters.h"
#include "media/cdm/clear_key_cdm_common.h"
#include "media/cdm/default_cdm_factory.h"
#include "media/media_buildflags.h"
#include "mojo/public/cpp/bindings/pending_remote.h"
#include "mojo/public/cpp/bindings/remote.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "url/gurl.h"
namespace media {
namespace {
_;
Invoke;
InvokeWithoutArgs;
NiceMock;
Return;
MATCHER_P(MatchesResult, success, "") { … }
const char kInvalidKeySystem[] = …;
class CdmFactoryWrapper : public CdmFactory { … };
class MockCdmServiceClient : public CdmService::Client { … };
class CdmServiceTest : public testing::Test { … };
}
TEST_F(CdmServiceTest, InitializeCdm_Success) { … }
TEST_F(CdmServiceTest, InitializeCdm_InvalidKeySystem) { … }
TEST_F(CdmServiceTest, DestroyAndRecreateCdm) { … }
TEST_F(CdmServiceTest, DestroyCdmFactory) { … }
TEST_F(CdmServiceTest, DestroyCdmService_AfterCdmCreation) { … }
TEST_F(CdmServiceTest, DestroyCdmService_DuringCdmCreation) { … }
}