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

Unified Diff: chrome/browser/safe_browsing/incident_reporting/resource_request_detector_unittest.cc

Issue 2804023003: Network traffic annotation added to chrome/browser/ unittests. (Closed)
Patch Set: Another missing header added. 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
Index: chrome/browser/safe_browsing/incident_reporting/resource_request_detector_unittest.cc
diff --git a/chrome/browser/safe_browsing/incident_reporting/resource_request_detector_unittest.cc b/chrome/browser/safe_browsing/incident_reporting/resource_request_detector_unittest.cc
index 908020446058a391b4f22906cf2af58835019d81..0232f0342a73b1b02690131add5be82b10fa97e1 100644
--- a/chrome/browser/safe_browsing/incident_reporting/resource_request_detector_unittest.cc
+++ b/chrome/browser/safe_browsing/incident_reporting/resource_request_detector_unittest.cc
@@ -21,6 +21,7 @@
#include "crypto/sha2.h"
#include "ipc/ipc_message.h"
#include "net/base/request_priority.h"
+#include "net/traffic_annotation/network_traffic_annotation_test_helper.h"
#include "net/url_request/url_request.h"
#include "net/url_request/url_request_test_util.h"
#include "testing/gmock/include/gmock/gmock.h"
@@ -86,8 +87,8 @@ class ResourceRequestDetectorTest : public testing::Test {
std::unique_ptr<net::URLRequest> GetTestURLRequest(
const std::string& url,
content::ResourceType resource_type) const {
- std::unique_ptr<net::URLRequest> url_request(
- context_.CreateRequest(GURL(url), net::DEFAULT_PRIORITY, NULL));
+ std::unique_ptr<net::URLRequest> url_request(context_.CreateRequest(
+ GURL(url), net::DEFAULT_PRIORITY, NULL, TRAFFIC_ANNOTATION_FOR_TESTS));
content::ResourceRequestInfo::AllocateForTesting(
url_request.get(), resource_type,
« no previous file with comments | « chrome/browser/prerender/prerender_resource_throttle_unittest.cc ('k') | chrome/browser/search/iframe_source_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698