diff options
Diffstat (limited to 'remoting/host')
-rw-r--r-- | remoting/host/client_connection_unittest.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/remoting/host/client_connection_unittest.cc b/remoting/host/client_connection_unittest.cc index 317d7fa..fcb3df3 100644 --- a/remoting/host/client_connection_unittest.cc +++ b/remoting/host/client_connection_unittest.cc @@ -30,7 +30,7 @@ class ClientConnectionTest : public testing::Test { viewer_ = new ClientConnection(&message_loop_, &handler_); viewer_->Init(connection_); EXPECT_CALL(handler_, OnConnectionOpened(viewer_.get())); - connection_->get_state_change_callback()->Run( + connection_->state_change_callback()->Run( ChromotingConnection::CONNECTED); message_loop_.RunAllPending(); } @@ -62,11 +62,11 @@ TEST_F(ClientConnectionTest, SendUpdateStream) { TEST_F(ClientConnectionTest, StateChange) { EXPECT_CALL(handler_, OnConnectionClosed(viewer_.get())); - connection_->get_state_change_callback()->Run(ChromotingConnection::CLOSED); + connection_->state_change_callback()->Run(ChromotingConnection::CLOSED); message_loop_.RunAllPending(); EXPECT_CALL(handler_, OnConnectionFailed(viewer_.get())); - connection_->get_state_change_callback()->Run(ChromotingConnection::FAILED); + connection_->state_change_callback()->Run(ChromotingConnection::FAILED); message_loop_.RunAllPending(); } |