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

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
« no previous file with comments | « remoting/host/chromoting_host.cc ('k') | remoting/host/client_session.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_))
« no previous file with comments | « remoting/host/chromoting_host.cc ('k') | remoting/host/client_session.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698