chromium/components/image_fetcher/core/image_fetcher_impl_unittest.cc

// Copyright 2018 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "components/image_fetcher/core/image_fetcher_impl.h"

#include <memory>

#include "base/files/file_path.h"
#include "base/functional/bind.h"
#include "base/functional/callback.h"
#include "base/memory/raw_ptr.h"
#include "base/test/bind.h"
#include "base/test/mock_callback.h"
#include "base/test/task_environment.h"
#include "components/image_fetcher/core/fake_image_decoder.h"
#include "components/image_fetcher/core/image_fetcher.h"
#include "net/http/http_util.h"
#include "net/traffic_annotation/network_traffic_annotation_test_helper.h"
#include "services/network/public/cpp/weak_wrapper_shared_url_loader_factory.h"
#include "services/network/test/test_url_loader_factory.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "ui/gfx/image/image.h"
#include "ui/gfx/image/image_unittest_util.h"

_;
Eq;
Property;

namespace image_fetcher {

namespace {

constexpr char kImageData[] =;
constexpr char kImageURL[] =;

constexpr char kImageUmaName[] =;

class ImageFetcherImplTest : public testing::Test {};
MATCHER(ValidImage, "") {}
MATCHER(EmptyImage, "") {}

TEST_F(ImageFetcherImplTest, FetchImageAndDataSuccess) {}

TEST_F(ImageFetcherImplTest, FetchImageAndData3xSuccess) {}

TEST_F(ImageFetcherImplTest, FetchImageAndData2xFail) {}

TEST_F(ImageFetcherImplTest, FetchOnlyData) {}

TEST_F(ImageFetcherImplTest, FetchDataThenImage) {}

TEST_F(ImageFetcherImplTest, FetchImageThenData) {}

}  // namespace
}  // namespace image_fetcher