#include "media/mojo/common/mojo_decoder_buffer_converter.h"
#include <stdint.h>
#include <memory>
#include "base/run_loop.h"
#include "base/test/mock_callback.h"
#include "base/test/task_environment.h"
#include "media/base/decoder_buffer.h"
#include "media/base/decrypt_config.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace media {
namespace {
uint32_t kDefaultDataPipeCapacityBytes = …;
MATCHER_P(MatchesDecoderBuffer, buffer, "") { … }
class MojoDecoderBufferConverter { … };
}
TEST(MojoDecoderBufferConverterTest, ConvertDecoderBuffer_Normal) { … }
TEST(MojoDecoderBufferConverterTest, ConvertDecoderBuffer_EOS) { … }
TEST(MojoDecoderBufferConverterTest, ConvertDecoderBuffer_ZeroByteBuffer) { … }
TEST(MojoDecoderBufferConverterTest, ConvertDecoderBuffer_KeyFrame) { … }
TEST(MojoDecoderBufferConverterTest, ConvertDecoderBuffer_EncryptedBuffer) { … }
TEST(MojoDecoderBufferConverterTest, Chunked) { … }
TEST(MojoDecoderBufferConverterTest, WriterSidePipeError) { … }
TEST(MojoDecoderBufferConverterTest, ConcurrentDecoderBuffers) { … }
TEST(MojoDecoderBufferConverterTest, FlushWithoutRead) { … }
TEST(MojoDecoderBufferConverterTest, FlushAfterRead) { … }
TEST(MojoDecoderBufferConverterTest, FlushBeforeRead) { … }
TEST(MojoDecoderBufferConverterTest, FlushBeforeChunkedRead) { … }
TEST(MojoDecoderBufferConverterTest, FlushDuringChunkedRead) { … }
TEST(MojoDecoderBufferConverterTest, FlushDuringConcurrentReads) { … }
TEST(MojoDecoderBufferConverterTest, WriterWithInvalidHandle) { … }
TEST(MojoDecoderBufferConverterTest, ReaderWithInvalidHandle) { … }
}