#include "media/mojo/services/mojo_cdm_file_io.h"
#include "base/run_loop.h"
#include "base/test/task_environment.h"
#include "media/cdm/api/content_decryption_module.h"
#include "mojo/public/cpp/bindings/associated_receiver.h"
#include "mojo/public/cpp/bindings/associated_remote.h"
#include "mojo/public/cpp/bindings/pending_receiver.h"
#include "mojo/public/cpp/bindings/receiver.h"
#include "mojo/public/cpp/bindings/remote.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
_;
Unused;
Status;
namespace media {
namespace {
class MockFileIOClient : public cdm::FileIOClient { … };
class MockCdmFile : public mojom::CdmFile { … };
class MockCdmStorage : public mojom::CdmStorage { … };
}
class MojoCdmFileIOTest : public testing::Test, public MojoCdmFileIO::Delegate { … };
TEST_F(MojoCdmFileIOTest, OpenFile) { … }
TEST_F(MojoCdmFileIOTest, OpenFileTwice) { … }
TEST_F(MojoCdmFileIOTest, OpenFileAfterOpen) { … }
TEST_F(MojoCdmFileIOTest, OpenDifferentFiles) { … }
TEST_F(MojoCdmFileIOTest, Read) { … }
TEST_F(MojoCdmFileIOTest, ReadBeforeOpen) { … }
TEST_F(MojoCdmFileIOTest, TwoReads) { … }
TEST_F(MojoCdmFileIOTest, Write) { … }
TEST_F(MojoCdmFileIOTest, WriteBeforeOpen) { … }
TEST_F(MojoCdmFileIOTest, TwoWrites) { … }
}