Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(530)

Unified Diff: content/child/throttling_url_loader_unittest.cc

Issue 2893233002: Network traffic annotation added to URLLoaderImpl. (Closed)
Patch Set: Rebased. Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: content/child/throttling_url_loader_unittest.cc
diff --git a/content/child/throttling_url_loader_unittest.cc b/content/child/throttling_url_loader_unittest.cc
index 96b8b9194369ff02ebbc6fcddaa7bbd4eefd7416..a977c217bff208a7ba7199e50b4cc443983ac9c8 100644
--- a/content/child/throttling_url_loader_unittest.cc
+++ b/content/child/throttling_url_loader_unittest.cc
@@ -10,6 +10,7 @@
#include "content/common/url_loader.mojom.h"
#include "content/common/url_loader_factory.mojom.h"
#include "content/public/child/url_loader_throttle.h"
+#include "net/traffic_annotation/network_traffic_annotation_test_helper.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace content {
@@ -50,7 +51,9 @@ class TestURLLoaderFactory : public mojom::URLLoaderFactory {
int32_t request_id,
uint32_t options,
const ResourceRequest& url_request,
- mojom::URLLoaderClientPtr client) override {
+ mojom::URLLoaderClientPtr client,
+ const net::MutableNetworkTrafficAnnotationTag&
+ traffic_annotation) override {
create_loader_and_start_called_++;
client_ptr_ = std::move(client);
@@ -209,7 +212,8 @@ class ThrottlingURLLoaderTest : public testing::Test {
request->url = GURL("http://example.org");
loader_ = ThrottlingURLLoader::CreateLoaderAndStart(
factory_.factory_ptr().get(), std::move(throttles_), 0, 0, 0,
- std::move(request), &client_);
+ std::move(request), &client_,
+ net::MutableNetworkTrafficAnnotationTag(TRAFFIC_ANNOTATION_FOR_TESTS));
factory_.factory_ptr().FlushForTesting();
}

Powered by Google App Engine
This is Rietveld 408576698