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

Unified Diff: components/data_usage/core/data_use_aggregator_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
« no previous file with comments | « no previous file | components/data_use_measurement/core/data_use_measurement_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/data_usage/core/data_use_aggregator_unittest.cc
diff --git a/components/data_usage/core/data_use_aggregator_unittest.cc b/components/data_usage/core/data_use_aggregator_unittest.cc
index a388729e3766ec1a64db43e849e179342f7ec7fb..8088c5318a141b2b55c15e80b6f3b5ef3dc7c932 100644
--- a/components/data_usage/core/data_use_aggregator_unittest.cc
+++ b/components/data_usage/core/data_use_aggregator_unittest.cc
@@ -25,6 +25,7 @@
#include "net/base/network_change_notifier.h"
#include "net/base/network_delegate_impl.h"
#include "net/socket/socket_test_util.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"
@@ -278,8 +279,8 @@ class DataUseAggregatorTest : public testing::Test {
mock_socket_factory_->AddSocketDataProvider(&socket);
net::TestDelegate delegate;
- std::unique_ptr<net::URLRequest> request =
- context_->CreateRequest(url, net::IDLE, &delegate);
+ std::unique_ptr<net::URLRequest> request = context_->CreateRequest(
+ url, net::IDLE, &delegate, TRAFFIC_ANNOTATION_FOR_TESTS);
request->set_first_party_for_cookies(first_party_for_cookies);
ReportingNetworkDelegate::DataUseContextMap data_use_context_map;
« no previous file with comments | « no previous file | components/data_use_measurement/core/data_use_measurement_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698