chromium/media/mojo/services/mojo_cdm_file_io_unittest.cc

// Copyright 2017 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#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 {};

}  // namespace

// Note that the current browser_test ECKEncryptedMediaTest.FileIOTest
// does test reading and writing files with real data.

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) {}

}  // namespace media