Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(359)

Unified Diff: remoting/host/chromoting_host_unittest.cc

Issue 1458323002: Simplify It2Me host shutdown (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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_))

Powered by Google App Engine
This is Rietveld 408576698