| Index: remoting/host/chromoting_host_unittest.cc
|
| diff --git a/remoting/host/chromoting_host_unittest.cc b/remoting/host/chromoting_host_unittest.cc
|
| index 861d116a3121da11177c54d91d638a60e44bc633..cd54719c64f248ceefab6cae9a29ee33a16c9941 100644
|
| --- a/remoting/host/chromoting_host_unittest.cc
|
| +++ b/remoting/host/chromoting_host_unittest.cc
|
| @@ -270,11 +270,6 @@ class ChromotingHostTest : public testing::Test {
|
| NotifyClientSessionClosed(0);
|
| }
|
|
|
| - // Notify |host_| that the authenticating client has been rejected.
|
| - void RejectAuthenticatingClient() {
|
| - host_->RejectAuthenticatingClient();
|
| - }
|
| -
|
| // Notify |host_| that a client session has closed.
|
| void NotifyClientSessionClosed(int connection_index) {
|
| get_client(connection_index)->OnConnectionClosed(
|
| @@ -468,21 +463,6 @@ TEST_F(ChromotingHostTest, Connect) {
|
| message_loop_.Run();
|
| }
|
|
|
| -TEST_F(ChromotingHostTest, RejectAuthenticatingClient) {
|
| - Expectation start = ExpectHostAndSessionManagerStart();
|
| - EXPECT_CALL(host_status_observer_, OnClientAuthenticated(session_jid1_))
|
| - .WillOnce(InvokeWithoutArgs(
|
| - this, &ChromotingHostTest::RejectAuthenticatingClient));
|
| - ExpectClientDisconnected(
|
| - 0, true, start,
|
| - InvokeWithoutArgs(this, &ChromotingHostTest::ShutdownHost));
|
| - EXPECT_CALL(host_status_observer_, OnShutdown());
|
| -
|
| - host_->Start(xmpp_login_);
|
| - SimulateClientConnection(0, true, true);
|
| - message_loop_.Run();
|
| -}
|
| -
|
| TEST_F(ChromotingHostTest, AuthenticationFailed) {
|
| ExpectHostAndSessionManagerStart();
|
| EXPECT_CALL(host_status_observer_, OnAccessDenied(session_jid1_))
|
|
|