Index: remoting/host/token_validator_factory_impl_unittest.cc |
diff --git a/remoting/host/token_validator_factory_impl_unittest.cc b/remoting/host/token_validator_factory_impl_unittest.cc |
index 2b5e0aac7f65370308251cfd5b24fad06ced9f2f..49a9f8773cc7b8557f1a04214b794e18b145fd2d 100644 |
--- a/remoting/host/token_validator_factory_impl_unittest.cc |
+++ b/remoting/host/token_validator_factory_impl_unittest.cc |
@@ -74,18 +74,18 @@ class TokenValidatorFactoryImplTest : public testing::Test { |
void SuccessCallback(const std::string& shared_secret) { |
EXPECT_FALSE(shared_secret.empty()); |
- message_loop_.Quit(); |
+ message_loop_.QuitWhenIdle(); |
} |
void FailureCallback(const std::string& shared_secret) { |
EXPECT_TRUE(shared_secret.empty()); |
- message_loop_.Quit(); |
+ message_loop_.QuitWhenIdle(); |
} |
void DeleteOnFailureCallback(const std::string& shared_secret) { |
EXPECT_TRUE(shared_secret.empty()); |
token_validator_.reset(); |
- message_loop_.Quit(); |
+ message_loop_.QuitWhenIdle(); |
} |
protected: |