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

Unified Diff: components/net_log/net_log_file_writer_unittest.cc

Issue 2805843003: Network traffic annotation added to components/ unittests. (Closed)
Patch Set: 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: components/net_log/net_log_file_writer_unittest.cc
diff --git a/components/net_log/net_log_file_writer_unittest.cc b/components/net_log/net_log_file_writer_unittest.cc
index af2b4e0ae7d4ffc9e7fe1ca10ee3b1dbdfb44b52..bfae99d6b39e6fd462b8300ef90372d1c90af039 100644
--- a/components/net_log/net_log_file_writer_unittest.cc
+++ b/components/net_log/net_log_file_writer_unittest.cc
@@ -27,6 +27,7 @@
#include "net/http/http_network_session.h"
#include "net/log/net_log_capture_mode.h"
#include "net/log/net_log_event_type.h"
+#include "net/traffic_annotation/network_traffic_annotation_test_helper.h"
#include "net/url_request/url_request_context_getter.h"
#include "net/url_request/url_request_test_util.h"
#include "testing/gtest/include/gtest/gtest.h"
@@ -191,7 +192,8 @@ void SetUpTestContextGetterWithRequest(
context->set_net_log(net_log);
context->Init();
- *request = context->CreateRequest(url, net::IDLE, delegate);
+ *request = context->CreateRequest(url, net::IDLE, delegate,
+ TRAFFIC_ANNOTATION_FOR_TESTS);
(*request)->Start();
*context_getter = new net::TestURLRequestContextGetter(

Powered by Google App Engine
This is Rietveld 408576698