Index: remoting/host/chromoting_host_unittest.cc |
diff --git a/remoting/host/chromoting_host_unittest.cc b/remoting/host/chromoting_host_unittest.cc |
index 6cbc4eac6e86c52aed1a1682d5a3bfa306cc7519..079c7e25a8bbfed748afd9cc4867753013ced313 100644 |
--- a/remoting/host/chromoting_host_unittest.cc |
+++ b/remoting/host/chromoting_host_unittest.cc |
@@ -282,11 +282,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( |
@@ -480,21 +475,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_)) |