#ifdef UNSAFE_BUFFERS_BUILD
#pragma allow_unsafe_buffers
#endif
#include "gpu/ipc/client/image_decode_accelerator_proxy.h"
#include <memory>
#include <utility>
#include <vector>
#include "base/memory/raw_ref.h"
#include "base/test/task_environment.h"
#include "cc/paint/paint_image.h"
#include "gpu/ipc/client/gpu_channel_host.h"
#include "gpu/ipc/common/command_buffer_id.h"
#include "gpu/ipc/common/mock_gpu_channel.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "ui/gfx/color_space.h"
DeleteArg;
DoAll;
Eq;
Return;
namespace gpu {
namespace {
constexpr int kChannelId = …;
constexpr int32_t kRasterCmdBufferRouteId = …;
constexpr gfx::Size kOutputSize(2, 2);
MATCHER_P(ImageDecodeParamsEqualTo, expected_params, "") { … }
class TestGpuChannelHost : public GpuChannelHost { … };
class ImageDecodeAcceleratorProxyTest : public ::testing::Test { … };
TEST_F(ImageDecodeAcceleratorProxyTest, ScheduleImageDecodeSendsMessage) { … }
class ImageDecodeAcceleratorProxySubsamplingTest
: public testing::TestWithParam<cc::YUVSubsampling> { … };
TEST_P(ImageDecodeAcceleratorProxySubsamplingTest, JPEGSubsamplingIsSupported) { … }
TEST_P(ImageDecodeAcceleratorProxySubsamplingTest,
JPEGSubsamplingIsNotSupported) { … }
INSTANTIATE_TEST_SUITE_P(…);
}
}