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

Unified Diff: components/copresence/timed_map_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/copresence/timed_map.h ('k') | components/network_time/network_time_tracker.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/copresence/timed_map_unittest.cc
diff --git a/components/copresence/timed_map_unittest.cc b/components/copresence/timed_map_unittest.cc
index dcf2266add5a6cd3416fa1dac66fe9511c0d869c..9ebb04ec4ddd2e8c2e1c2894df5593a8d87c1dc6 100644
--- a/components/copresence/timed_map_unittest.cc
+++ b/components/copresence/timed_map_unittest.cc
@@ -97,9 +97,9 @@ TEST_F(TimedMapTest, TimedEvict) {
const int kLargeTimeValueSeconds = 9999;
Map map(base::TimeDelta::FromSeconds(kLargeTimeValueSeconds), 2);
- // The map takes ownership of the clock, but we retain a pointer.
- base::SimpleTestTickClock* clock = new base::SimpleTestTickClock;
- map.set_clock_for_testing(make_scoped_ptr<base::TickClock>(clock));
+ scoped_refptr<base::SimpleTestTickClock> clock =
+ new base::SimpleTestTickClock;
+ map.set_clock_for_testing(clock);
// Add value at T=0.
map.Add(0x1337, Value(0x7331));
« no previous file with comments | « components/copresence/timed_map.h ('k') | components/network_time/network_time_tracker.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698