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

Unified Diff: net/url_request/url_request_throttler_test_support.cc

Issue 1076853003: Refactor net::BackoffEntry to not require subclassing (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address pneubeck's review comments Created 5 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_test_support.cc
diff --git a/net/url_request/url_request_throttler_test_support.cc b/net/url_request/url_request_throttler_test_support.cc
index 9d3f4e253bc3c5c3d8e0bd32c64b940224342043..5b39c047f32b4b6c608bcbd659df2c21750dd431 100644
--- a/net/url_request/url_request_throttler_test_support.cc
+++ b/net/url_request/url_request_throttler_test_support.cc
@@ -8,19 +8,14 @@
namespace net {
-MockBackoffEntry::MockBackoffEntry(const BackoffEntry::Policy* const policy)
- : BackoffEntry(policy) {
-}
+TestTickClock::TestTickClock() {}
-MockBackoffEntry::~MockBackoffEntry() {
-}
+TestTickClock::TestTickClock(base::TimeTicks now) : now_ticks_(now) {}
-base::TimeTicks MockBackoffEntry::ImplGetTimeNow() const {
- return fake_now_;
-}
+TestTickClock::~TestTickClock() {}
-void MockBackoffEntry::set_fake_now(const base::TimeTicks& now) {
- fake_now_ = now;
+base::TimeTicks TestTickClock::NowTicks() {
+ return now_ticks_;
}
MockURLRequestThrottlerHeaderAdapter::MockURLRequestThrottlerHeaderAdapter(
« no previous file with comments | « net/url_request/url_request_throttler_test_support.h ('k') | net/url_request/url_request_throttler_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698