Index: remoting/protocol/v2_authenticator_unittest.cc |
diff --git a/remoting/protocol/v2_authenticator_unittest.cc b/remoting/protocol/v2_authenticator_unittest.cc |
index dc95318c81300bee298218740f463233b6c86e03..da3512e0fc57ebc564790b74b84e82530571d017 100644 |
--- a/remoting/protocol/v2_authenticator_unittest.cc |
+++ b/remoting/protocol/v2_authenticator_unittest.cc |
@@ -85,7 +85,8 @@ TEST_F(V2AuthenticatorTest, InvalidSecret) { |
ASSERT_TRUE(message.get()); |
ASSERT_EQ(Authenticator::WAITING_MESSAGE, client_->state()); |
- host_->ProcessMessage(message.get()); |
+ host_->ProcessMessage(message.get(), base::Bind(&base::DoNothing)); |
+ // This assumes that V2Authenticator::ProcessMessage runs synchronously. |
ASSERT_EQ(Authenticator::REJECTED, host_->state()); |
} |