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

Unified Diff: components/ntp_snippets/request_throttler_unittest.cc

Issue 2162533002: Adding a request counter to the snippets fetcher. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@traffic-monitor
Patch Set: Bernhard's comments Created 4 years, 5 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/ntp_snippets/request_throttler_unittest.cc
diff --git a/components/ntp_snippets/request_throttler_unittest.cc b/components/ntp_snippets/request_throttler_unittest.cc
index e75295e996304e3f1414e0fd47bb43eae746264c..97c2b0200bff81e275704ca3ae531e556b71ac68 100644
--- a/components/ntp_snippets/request_throttler_unittest.cc
+++ b/components/ntp_snippets/request_throttler_unittest.cc
@@ -24,8 +24,9 @@ class RequestThrottlerTest : public testing::Test {
RequestThrottler::RegisterProfilePrefs(test_prefs_.registry());
// Use any arbitrary RequestType for this unittest.
throttler_.reset(new RequestThrottler(
- &test_prefs_, RequestThrottler::RequestType::CONTENT_SUGGESTION_FETCHER,
- kCounterQuota));
+ &test_prefs_,
+ RequestThrottler::RequestType::CONTENT_SUGGESTION_FETCHER));
+ throttler_->quota_ = kCounterQuota;
}
protected:

Powered by Google App Engine
This is Rietveld 408576698