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

Unified Diff: net/base/layered_network_delegate_unittest.cc

Issue 2833983002: Test network annotation tags added to unittests in net/. (Closed)
Patch Set: One file moved. 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 | net/filter/sdch_policy_delegate_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/base/layered_network_delegate_unittest.cc
diff --git a/net/base/layered_network_delegate_unittest.cc b/net/base/layered_network_delegate_unittest.cc
index f1d07bc47ac8cc2b5355d2f0165577b93eba85c2..cd9f5d2443c286bf657e7a44c39c506bebeaff8c 100644
--- a/net/base/layered_network_delegate_unittest.cc
+++ b/net/base/layered_network_delegate_unittest.cc
@@ -21,6 +21,7 @@
#include "net/proxy/proxy_config_service.h"
#include "net/proxy/proxy_info.h"
#include "net/proxy/proxy_retry_info.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/gtest/include/gtest/gtest.h"
@@ -175,8 +176,8 @@ class TestLayeredNetworkDelegate : public LayeredNetworkDelegate {
void CallAndVerify() {
scoped_refptr<AuthChallengeInfo> auth_challenge(new AuthChallengeInfo());
- std::unique_ptr<URLRequest> request =
- context_.CreateRequest(GURL(), IDLE, &delegate_);
+ std::unique_ptr<URLRequest> request = context_.CreateRequest(
+ GURL(), IDLE, &delegate_, TRAFFIC_ANNOTATION_FOR_TESTS);
std::unique_ptr<HttpRequestHeaders> request_headers(
new HttpRequestHeaders());
scoped_refptr<HttpResponseHeaders> response_headers(
« no previous file with comments | « no previous file | net/filter/sdch_policy_delegate_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698