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

Unified Diff: net/url_request/url_request_throttler_unittest.cc

Issue 2837543002: Test network annotation tags added to unittests in net/url_request. (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: net/url_request/url_request_throttler_unittest.cc
diff --git a/net/url_request/url_request_throttler_unittest.cc b/net/url_request/url_request_throttler_unittest.cc
index bda138ef7f0b9ab73a16813f4dcb9be45866ad5f..702c13484f460ad812e8a03f37ad3f107b5f51f2 100644
--- a/net/url_request/url_request_throttler_unittest.cc
+++ b/net/url_request/url_request_throttler_unittest.cc
@@ -13,6 +13,7 @@
#include "net/base/load_flags.h"
#include "net/base/request_priority.h"
#include "net/base/test_completion_callback.h"
+#include "net/traffic_annotation/network_traffic_annotation_test_helper.h"
#include "net/url_request/url_request.h"
#include "net/url_request/url_request_context.h"
#include "net/url_request/url_request_test_util.h"
@@ -160,7 +161,10 @@ struct GurlAndString {
class URLRequestThrottlerEntryTest : public testing::Test {
protected:
URLRequestThrottlerEntryTest()
- : request_(context_.CreateRequest(GURL(), DEFAULT_PRIORITY, NULL)) {}
+ : request_(context_.CreateRequest(GURL(),
+ DEFAULT_PRIORITY,
+ NULL,
+ TRAFFIC_ANNOTATION_FOR_TESTS)) {}
void SetUp() override;
@@ -308,7 +312,10 @@ TEST_F(URLRequestThrottlerEntryTest, SlidingWindow) {
class URLRequestThrottlerManagerTest : public testing::Test {
protected:
URLRequestThrottlerManagerTest()
- : request_(context_.CreateRequest(GURL(), DEFAULT_PRIORITY, NULL)) {}
+ : request_(context_.CreateRequest(GURL(),
+ DEFAULT_PRIORITY,
+ NULL,
+ TRAFFIC_ANNOTATION_FOR_TESTS)) {}
void SetUp() override { request_->SetLoadFlags(0); }
« no previous file with comments | « net/url_request/url_request_throttler_simulation_unittest.cc ('k') | net/url_request/url_request_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698