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

Unified Diff: remoting/protocol/authenticator_test_base.cc

Issue 2837863004: Use base::OneShotTimer instead of base::Timer(false, false)
Patch Set: rebase Created 3 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/security_key/security_key_socket.cc ('k') | remoting/protocol/capture_scheduler.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/protocol/authenticator_test_base.cc
diff --git a/remoting/protocol/authenticator_test_base.cc b/remoting/protocol/authenticator_test_base.cc
index 7b26f0a90c37fc2a5621eadccd7ddad9b7111b7d..7f9e61b1fdac6e8baedfaa3db4b7d25881bb2b78 100644
--- a/remoting/protocol/authenticator_test_base.cc
+++ b/remoting/protocol/authenticator_test_base.cc
@@ -145,7 +145,7 @@ void AuthenticatorTestBase::RunChannelAuth(bool expected_fail) {
// Ensure that .Run() does not run unbounded if the callbacks are never
// called.
- base::Timer shutdown_timer(false, false);
+ base::OneShotTimer shutdown_timer;
shutdown_timer.Start(FROM_HERE, TestTimeouts::action_timeout(),
base::MessageLoop::QuitWhenIdleClosure());
base::RunLoop().Run();
« no previous file with comments | « remoting/host/security_key/security_key_socket.cc ('k') | remoting/protocol/capture_scheduler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698