#include "components/image_fetcher/core/fake_image_decoder.h"
#include "base/task/sequenced_task_runner.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "ui/gfx/image/image.h"
#include "ui/gfx/image/image_unittest_util.h"
namespace image_fetcher {
FakeImageDecoder::FakeImageDecoder() : … { … }
FakeImageDecoder::FakeImageDecoder(const FakeImageDecoder& other) { … }
FakeImageDecoder::~FakeImageDecoder() = default;
void FakeImageDecoder::DecodeImage(
const std::string& image_data,
const gfx::Size& desired_image_frame_size,
data_decoder::DataDecoder* data_decoder,
image_fetcher::ImageDecodedCallback callback) { … }
void FakeImageDecoder::SetEnabled(bool enabled) { … }
void FakeImageDecoder::SetDecodingValid(bool valid) { … }
void FakeImageDecoder::SetBeforeImageDecoded(
const base::RepeatingClosure& callback) { … }
void FakeImageDecoder::SetDecodedImage(const gfx::Image& image) { … }
}