| Index: remoting/protocol/connection_to_client_unittest.cc
|
| diff --git a/remoting/protocol/connection_to_client_unittest.cc b/remoting/protocol/connection_to_client_unittest.cc
|
| index 6bd051565d6bd39caf1842e94b7b12f345afdbe7..41f299c5082b92386ca5563913c2e5f509bbc958 100644
|
| --- a/remoting/protocol/connection_to_client_unittest.cc
|
| +++ b/remoting/protocol/connection_to_client_unittest.cc
|
| @@ -98,7 +98,9 @@ TEST_F(ConnectionToClientTest, StateChange) {
|
| session_->state_change_callback().Run(protocol::Session::CLOSED);
|
| message_loop_.RunAllPending();
|
|
|
| - EXPECT_CALL(handler_, OnConnectionFailed(viewer_.get()));
|
| + EXPECT_CALL(handler_, OnConnectionFailed(
|
| + viewer_.get(), Session::SESSION_REJECTED));
|
| + session_->set_error(Session::SESSION_REJECTED);
|
| session_->state_change_callback().Run(protocol::Session::FAILED);
|
| message_loop_.RunAllPending();
|
| }
|
|
|