chromium/components/feed/core/v2/image_fetcher_unittest.cc

// Copyright 2020 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/feed/core/v2/image_fetcher.h"

#include <memory>
#include <utility>

#include "base/functional/bind.h"
#include "base/strings/string_number_conversions.h"
#include "base/strings/string_split.h"
#include "base/test/bind.h"
#include "base/test/metrics/histogram_tester.h"
#include "base/test/task_environment.h"
#include "components/feed/core/v2/public/types.h"
#include "components/feed/core/v2/test/callback_receiver.h"
#include "net/http/http_response_headers.h"
#include "net/http/http_status_code.h"
#include "net/http/http_util.h"
#include "net/traffic_annotation/network_traffic_annotation_test_helper.h"
#include "services/network/public/cpp/url_loader_completion_status.h"
#include "services/network/public/cpp/weak_wrapper_shared_url_loader_factory.h"
#include "services/network/public/mojom/url_response_head.mojom.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 "third_party/protobuf/src/google/protobuf/io/coded_stream.h"
#include "third_party/protobuf/src/google/protobuf/io/zero_copy_stream_impl_lite.h"
#include "url/gurl.h"

HasSubstr;

namespace feed {
namespace {

class ImageFetcherTest : public testing::Test {};

TEST_F(ImageFetcherTest, SendRequestSendsValidRequest) {}

TEST_F(ImageFetcherTest, SendRequestReceivesNetError) {}

TEST_F(ImageFetcherTest, SendRequestValidResponse) {}

TEST_F(ImageFetcherTest, SendSequentialRequestsValidResponses) {}

TEST_F(ImageFetcherTest, SendParallelRequestsValidResponses) {}

TEST_F(ImageFetcherTest, CancelRunsCallback) {}

TEST_F(ImageFetcherTest, CancelThenRespond) {}

TEST_F(ImageFetcherTest, CallbackCallsCancel) {}

}  // namespace
}  // namespace feed