#include <stddef.h>
#include <memory>
#include "base/memory/ptr_util.h"
#include "base/memory/read_only_shared_memory_region.h"
#include "base/memory/unsafe_shared_memory_region.h"
#include "base/run_loop.h"
#include "base/test/task_environment.h"
#include "gpu/config/gpu_info.h"
#include "media/base/bitstream_buffer.h"
#include "media/base/media_util.h"
#include "media/mojo/clients/mojo_video_encode_accelerator.h"
#include "media/mojo/mojom/video_encode_accelerator.mojom.h"
#include "media/video/video_encode_accelerator.h"
#include "mojo/public/cpp/bindings/associated_remote.h"
#include "mojo/public/cpp/bindings/pending_associated_remote.h"
#include "mojo/public/cpp/bindings/pending_remote.h"
#include "mojo/public/cpp/bindings/remote.h"
#include "mojo/public/cpp/bindings/self_owned_receiver.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
_;
InSequence;
Invoke;
namespace media {
MATCHER_P(ExpectEncoderStatusCode, expected_code, "encoder status code") { … }
static const gfx::Size kInputVisibleSize(64, 48);
class MockMojoVideoEncodeAccelerator : public mojom::VideoEncodeAccelerator { … };
class MockVideoEncodeAcceleratorClient : public VideoEncodeAccelerator::Client { … };
class MojoVideoEncodeAcceleratorTest : public ::testing::Test { … };
TEST_F(MojoVideoEncodeAcceleratorTest, CreateAndDestroy) { … }
TEST_F(MojoVideoEncodeAcceleratorTest, InitializeAndRequireBistreamBuffers) { … }
TEST_F(MojoVideoEncodeAcceleratorTest, EncodeOneFrame) { … }
TEST_F(MojoVideoEncodeAcceleratorTest, EncodingParametersChange) { … }
TEST_F(MojoVideoEncodeAcceleratorTest,
EncodingParametersWithBitrateAllocation) { … }
TEST_F(MojoVideoEncodeAcceleratorTest, EncodingParametersChangeWithFrameSize) { … }
TEST_F(MojoVideoEncodeAcceleratorTest,
EncodingParametersChangeWithBitrateAllocationAndFrameSize) { … }
TEST_F(MojoVideoEncodeAcceleratorTest, InitializeFailure) { … }
TEST_F(MojoVideoEncodeAcceleratorTest, MojoDisconnectBeforeInitialize) { … }
TEST_F(MojoVideoEncodeAcceleratorTest, MojoDisconnectAfterInitialize) { … }
TEST_F(MojoVideoEncodeAcceleratorTest, IsFlushSupportedAndFlush) { … }
}