Commit 592ee0b9 authored by Minggang Wang's avatar Minggang Wang Committed by Commit Bot

Remove the unused throttling_url_loader_test_util.h/cc

As the ad delay throttle has been removed, this util used for its unit
test should be removed accordingly.

Bug: 829042
Change-Id: Iddfaf10da02082eb0d2dad6ccf64577c2e0ce377
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1867891Reviewed-by: default avatarAvi Drissman <avi@chromium.org>
Commit-Queue: Minggang Wang <minggang.wang@intel.com>
Cr-Commit-Position: refs/heads/master@{#707707}
parent 801ad4d9
// Copyright 2018 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "content/public/test/throttling_url_loader_test_util.h"
#include <utility>
#include "content/common/throttling_url_loader.h"
namespace content {
std::unique_ptr<network::mojom::URLLoaderClient> CreateThrottlingLoaderAndStart(
scoped_refptr<network::SharedURLLoaderFactory> factory,
std::vector<std::unique_ptr<blink::URLLoaderThrottle>> throttles,
int32_t routing_id,
int32_t request_id,
uint32_t options,
network::ResourceRequest* url_request,
network::mojom::URLLoaderClient* client,
const net::NetworkTrafficAnnotationTag& traffic_annotation,
scoped_refptr<base::SingleThreadTaskRunner> task_runner) {
return ThrottlingURLLoader::CreateLoaderAndStart(
std::move(factory), std::move(throttles), routing_id, request_id, options,
url_request, client, traffic_annotation, std::move(task_runner));
}
} // namespace content
// Copyright 2018 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CONTENT_PUBLIC_TEST_THROTTLING_URL_LOADER_TEST_UTIL_H_
#define CONTENT_PUBLIC_TEST_THROTTLING_URL_LOADER_TEST_UTIL_H_
#include <memory>
#include <vector>
#include "base/memory/scoped_refptr.h"
#include "base/single_thread_task_runner.h"
#include "services/network/public/cpp/shared_url_loader_factory.h"
#include "third_party/blink/public/common/loader/url_loader_throttle.h"
namespace content {
// Allows tests outside of content to interface with a ThrottlingURLLoader.
std::unique_ptr<network::mojom::URLLoaderClient> CreateThrottlingLoaderAndStart(
scoped_refptr<network::SharedURLLoaderFactory> factory,
std::vector<std::unique_ptr<blink::URLLoaderThrottle>> throttles,
int32_t routing_id,
int32_t request_id,
uint32_t options,
network::ResourceRequest* url_request,
network::mojom::URLLoaderClient* client,
const net::NetworkTrafficAnnotationTag& traffic_annotation,
scoped_refptr<base::SingleThreadTaskRunner> task_runner);
} // namespace content
#endif // CONTENT_PUBLIC_TEST_THROTTLING_URL_LOADER_TEST_UTIL_H_
......@@ -228,8 +228,6 @@ jumbo_static_library("test_support") {
"../public/test/text_input_test_utils.cc",
"../public/test/text_input_test_utils.h",
"../public/test/text_input_test_utils_mac.mm",
"../public/test/throttling_url_loader_test_util.cc",
"../public/test/throttling_url_loader_test_util.h",
"../public/test/unittest_test_suite.cc",
"../public/test/unittest_test_suite.h",
"../public/test/url_loader_interceptor.cc",
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment