#include "media/remoting/demuxer_stream_adapter.h"
#include <memory>
#include <vector>
#include "base/functional/bind.h"
#include "base/functional/callback_helpers.h"
#include "base/run_loop.h"
#include "base/task/single_thread_task_runner.h"
#include "base/test/task_environment.h"
#include "media/base/decoder_buffer.h"
#include "media/base/demuxer_stream.h"
#include "media/remoting/fake_media_resource.h"
#include "media/remoting/fake_remoter.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
RpcMessenger;
_;
Invoke;
Return;
namespace media {
namespace remoting {
class MockDemuxerStreamAdapter { … };
class DemuxerStreamAdapterTest : public ::testing::Test { … };
TEST_F(DemuxerStreamAdapterTest, SingleReadUntil) { … }
TEST_F(DemuxerStreamAdapterTest, MultiReadUntil) { … }
TEST_F(DemuxerStreamAdapterTest, WriteOneFrameSmallerThanCapacity) { … }
TEST_F(DemuxerStreamAdapterTest, WriteOneFrameLargerThanCapacity) { … }
TEST_F(DemuxerStreamAdapterTest, SendFrameAndSignalFlushMix) { … }
TEST_F(DemuxerStreamAdapterTest, DuplicateInitializeCausesFatalError) { … }
TEST_F(DemuxerStreamAdapterTest, ClosingMessagePipeCausesMojoDisconnected) { … }
TEST_F(DemuxerStreamAdapterTest, ClosingDataPipeCausesWriteError) { … }
}
}