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

Unified Diff: components/network_time/network_time_tracker_unittest.cc

Issue 670623002: Change base::TickClock to a ref counted class. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@audio_redesign
Patch Set: y Created 6 years, 2 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 | « components/network_time/network_time_tracker.cc ('k') | content/browser/media/audio_stream_monitor.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/network_time/network_time_tracker_unittest.cc
diff --git a/components/network_time/network_time_tracker_unittest.cc b/components/network_time/network_time_tracker_unittest.cc
index 60d316eb3c3183fd99813a413812e12b8f5394d5..1fa8d03bcc45d1ed547b67e72804d9a4f0ea1a18 100644
--- a/components/network_time/network_time_tracker_unittest.cc
+++ b/components/network_time/network_time_tracker_unittest.cc
@@ -30,13 +30,14 @@ const int64 kPseudoSleepTime2 = 1888;
class TestTickClock : public base::TickClock {
public:
explicit TestTickClock(base::TimeTicks* ticks_now) : ticks_now_(ticks_now) {}
- virtual ~TestTickClock() {}
virtual base::TimeTicks NowTicks() override {
return *ticks_now_;
}
private:
+ virtual ~TestTickClock() {}
+
base::TimeTicks* ticks_now_;
};
@@ -51,7 +52,7 @@ class NetworkTimeTrackerTest : public testing::Test {
now_ = base::Time::NowFromSystemTime();
network_time_tracker_.reset(new NetworkTimeTracker(
- scoped_ptr<base::TickClock>(new TestTickClock(&ticks_now_)),
+ scoped_refptr<base::TickClock>(new TestTickClock(&ticks_now_)),
&pref_service_));
}
« no previous file with comments | « components/network_time/network_time_tracker.cc ('k') | content/browser/media/audio_stream_monitor.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698