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

Unified Diff: remoting/test/host_list_fetcher.cc

Issue 2735683002: Network traffic annotation added to remoting/test. (Closed)
Patch Set: Created 3 years, 9 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 | « remoting/test/app_remoting_report_issue_request.cc ('k') | remoting/test/remote_host_info_fetcher.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/test/host_list_fetcher.cc
diff --git a/remoting/test/host_list_fetcher.cc b/remoting/test/host_list_fetcher.cc
index 09fc3d52da87795128936574ac8a9d7d5c3f5b79..a652d14c21d5ded714963097eed0c2eb01a6caa7 100644
--- a/remoting/test/host_list_fetcher.cc
+++ b/remoting/test/host_list_fetcher.cc
@@ -11,6 +11,7 @@
#include "base/threading/thread_task_runner_handle.h"
#include "base/values.h"
#include "net/http/http_status_code.h"
+#include "net/traffic_annotation/network_traffic_annotation_test_helper.h"
#include "net/url_request/url_fetcher.h"
#include "remoting/base/url_request_context_getter.h"
@@ -38,8 +39,8 @@ void HostListFetcher::RetrieveHostlist(const std::string& access_token,
/*network_runner=*/base::ThreadTaskRunnerHandle::Get(),
/*file_runner=*/base::ThreadTaskRunnerHandle::Get());
- request_ =
- net::URLFetcher::Create(GURL(target_url), net::URLFetcher::GET, this);
+ request_ = net::URLFetcher::Create(GURL(target_url), net::URLFetcher::GET,
+ this, TRAFFIC_ANNOTATION_FOR_TESTS);
request_->SetRequestContext(request_context_getter_.get());
request_->AddExtraRequestHeader("Authorization: OAuth " + access_token);
request_->Start();
« no previous file with comments | « remoting/test/app_remoting_report_issue_request.cc ('k') | remoting/test/remote_host_info_fetcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698