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

Unified Diff: remoting/host/backoff_timer_unittest.cc

Issue 1864213002: Convert //remoting to use std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Mac IWYU Created 4 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
« no previous file with comments | « remoting/host/backoff_timer.cc ('k') | remoting/host/basic_desktop_environment.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/host/backoff_timer_unittest.cc
diff --git a/remoting/host/backoff_timer_unittest.cc b/remoting/host/backoff_timer_unittest.cc
index 0dfb9d7ce67c2da3c73b1b42f3c5893765c79328..fe52bcdb788cbde93075aab5abda7586e2af1800 100644
--- a/remoting/host/backoff_timer_unittest.cc
+++ b/remoting/host/backoff_timer_unittest.cc
@@ -4,6 +4,7 @@
#include "remoting/host/backoff_timer.h"
+#include "base/memory/ptr_util.h"
#include "base/timer/mock_timer.h"
#include "testing/gtest/include/gtest/gtest.h"
@@ -20,7 +21,7 @@ void IncrementCounter(int* counter) {
TEST(BackoffTimer, Basic) {
base::MockTimer* mock_timer = new base::MockTimer(false, false);
BackoffTimer backoff_timer;
- backoff_timer.SetTimerForTest(make_scoped_ptr(mock_timer));
+ backoff_timer.SetTimerForTest(base::WrapUnique(mock_timer));
ASSERT_FALSE(backoff_timer.IsRunning());
int counter = 0;
« no previous file with comments | « remoting/host/backoff_timer.cc ('k') | remoting/host/basic_desktop_environment.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698