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

Unified Diff: net/url_request/url_request_data_job_fuzzer.cc

Issue 2851483002: Network traffic annotation added to url_request_data_job_fuzzer. (Closed)
Patch Set: Annotation changed to test flag. Created 3 years, 8 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/url_request/url_request_data_job_fuzzer.cc
diff --git a/net/url_request/url_request_data_job_fuzzer.cc b/net/url_request/url_request_data_job_fuzzer.cc
index 82b6047f2bd1ff897efe9b1c0ba4d42b4c21c5ce..d996079dcb4cd5a1322a7450ab5148383ddfbd30 100644
--- a/net/url_request/url_request_data_job_fuzzer.cc
+++ b/net/url_request/url_request_data_job_fuzzer.cc
@@ -13,6 +13,7 @@
#include "base/test/scoped_task_scheduler.h"
#include "base/threading/thread_task_runner_handle.h"
#include "net/http/http_request_headers.h"
+#include "net/traffic_annotation/network_traffic_annotation_test_helper.h"
#include "net/url_request/data_protocol_handler.h"
#include "net/url_request/url_request.h"
#include "net/url_request/url_request_job_factory_impl.h"
@@ -80,8 +81,8 @@ class URLRequestDataJobFuzzerHarness : public net::URLRequest::Delegate {
// Create a URLRequest with the given data URL and start reading
// from it.
- std::unique_ptr<net::URLRequest> request =
- context_.CreateRequest(data_url, net::DEFAULT_PRIORITY, this);
+ std::unique_ptr<net::URLRequest> request = context_.CreateRequest(
+ data_url, net::DEFAULT_PRIORITY, this, TRAFFIC_ANNOTATION_FOR_TESTS);
if (use_range) {
if (!net::HttpUtil::IsValidHeaderValue(range))
range = "bytes=3-";
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698