#include "media/base/fake_demuxer_stream.h"
#include <memory>
#include "base/functional/bind.h"
#include "base/run_loop.h"
#include "base/test/task_environment.h"
#include "media/base/decoder_buffer.h"
#include "media/base/demuxer_stream.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace media {
const int kNumBuffersInOneConfig = …;
const int kNumBuffersToReadFirst = …;
const int kNumConfigs = …;
static_assert …;
static_assert …;
class FakeDemuxerStreamTest : public testing::Test { … };
TEST_F(FakeDemuxerStreamTest, Read_OneConfig) { … }
TEST_F(FakeDemuxerStreamTest, Read_MultipleConfigs) { … }
TEST_F(FakeDemuxerStreamTest, Read_OneBufferPerConfig) { … }
TEST_F(FakeDemuxerStreamTest, Read_Encrypted) { … }
TEST_F(FakeDemuxerStreamTest, HoldRead_Normal) { … }
TEST_F(FakeDemuxerStreamTest, HoldRead_BeforeConfigChanged) { … }
TEST_F(FakeDemuxerStreamTest, HoldRead_BeforeEOS) { … }
TEST_F(FakeDemuxerStreamTest, Reset_Normal) { … }
TEST_F(FakeDemuxerStreamTest, Reset_AfterHoldRead) { … }
TEST_F(FakeDemuxerStreamTest, Reset_DuringPendingRead) { … }
TEST_F(FakeDemuxerStreamTest, Reset_BeforeConfigChanged) { … }
TEST_F(FakeDemuxerStreamTest, Reset_BeforeEOS) { … }
TEST_F(FakeDemuxerStreamTest, Error_Normal) { … }
TEST_F(FakeDemuxerStreamTest, Error_AfterHoldRead) { … }
TEST_F(FakeDemuxerStreamTest, Error_BeforeConfigChanged) { … }
TEST_F(FakeDemuxerStreamTest, Error_BeforeEOS) { … }
TEST_F(FakeDemuxerStreamTest, NoConfigChanges) { … }
TEST_F(FakeDemuxerStreamTest, SeekToStart_Normal) { … }
TEST_F(FakeDemuxerStreamTest, SeekToStart_BeforeEOS) { … }
TEST_F(FakeDemuxerStreamTest, SeekToStart_AfterEOS) { … }
TEST_F(FakeDemuxerStreamTest, DemuxerStream_GetTypeName) { … }
TEST_F(FakeDemuxerStreamTest, DemuxerStream_GetStatusName) { … }
TEST_F(FakeDemuxerStreamTest, DemuxerStream_GetLivenessName) { … }
}