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

Unified Diff: chrome/browser/predictors/resource_prefetch_predictor_unittest.cc

Issue 2895173002: Network traffic annotation added to browser unittests. (Closed)
Patch Set: One more file added. 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: chrome/browser/predictors/resource_prefetch_predictor_unittest.cc
diff --git a/chrome/browser/predictors/resource_prefetch_predictor_unittest.cc b/chrome/browser/predictors/resource_prefetch_predictor_unittest.cc
index c3694699a9c997b73dde2a984c98d250af844fe3..c3f862c9a41fcbaffdff847335c56a8dde263347 100644
--- a/chrome/browser/predictors/resource_prefetch_predictor_unittest.cc
+++ b/chrome/browser/predictors/resource_prefetch_predictor_unittest.cc
@@ -23,6 +23,7 @@
#include "content/public/browser/resource_request_info.h"
#include "content/public/test/test_browser_thread_bundle.h"
#include "net/http/http_response_headers.h"
+#include "net/traffic_annotation/network_traffic_annotation_test_helper.h"
#include "net/url_request/url_request_context.h"
#include "net/url_request/url_request_job.h"
#include "net/url_request/url_request_test_util.h"
@@ -213,7 +214,8 @@ class ResourcePrefetchPredictorTest : public testing::Test {
bool is_main_frame) {
std::unique_ptr<net::URLRequest> request =
url_request_context_.CreateRequest(url, priority,
- &url_request_delegate_);
+ &url_request_delegate_,
+ TRAFFIC_ANNOTATION_FOR_TESTS);
request->set_first_party_for_cookies(url);
content::ResourceRequestInfo::AllocateForTesting(
request.get(), resource_type, nullptr, -1, -1, -1, is_main_frame, false,
« no previous file with comments | « chrome/browser/net/proxy_browsertest.cc ('k') | chrome/browser/prerender/prerender_resource_throttle_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698