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

Unified Diff: components/ntp_snippets/request_throttler_unittest.cc

Issue 2227973002: Add request throttler to thumbnail fetching for articles on mobile NTP (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Tim's comments #2 Created 4 years, 4 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 97c2b0200bff81e275704ca3ae531e556b71ac68..9c485ecadd9b10639ee39ed6c233059caae4862a 100644
--- a/components/ntp_snippets/request_throttler_unittest.cc
+++ b/components/ntp_snippets/request_throttler_unittest.cc
@@ -62,7 +62,7 @@ TEST_F(RequestThrottlerTest, QuotaIsPerDay) {
// Now fake the day pref so that the counter believes the count comes from
// yesterday.
int now_day = (base::Time::Now() - base::Time::UnixEpoch()).InDays();
- test_prefs_.SetInteger(ntp_snippets::prefs::kSnippetFetcherQuotaDay,
+ test_prefs_.SetInteger(ntp_snippets::prefs::kSnippetFetcherRequestsDay,
now_day - 1);
// The quota should get reset as the day has changed.

Powered by Google App Engine
This is Rietveld 408576698