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

Unified Diff: remoting/host/chromoting_host_unittest.cc

Issue 205583011: [Draft] Fix canceling pin prompt causes host overload (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix Unittests and also reject connections upon authenticating Created 6 years, 9 months 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 1410371a9bc8b5049461e0246697020ac5377808..1f42f3a7765129b0effa9846859fef0012f4cc97 100644
--- a/remoting/host/chromoting_host_unittest.cc
+++ b/remoting/host/chromoting_host_unittest.cc
@@ -607,9 +607,10 @@ TEST_F(ChromotingHostTest, IncomingSessionOverload) {
protocol::SessionManager::IncomingSessionResponse response =
protocol::SessionManager::DECLINE;
- host_->OnIncomingSession(session_unowned1_.release(), &response);
- EXPECT_EQ(protocol::SessionManager::ACCEPT, response);
+ host_->OnIncomingSession(session_unowned1_.release(), &response);
+ EXPECT_EQ(protocol::SessionManager::ACCEPT, response);
+ host_->OnSessionAuthenticating(NULL);
Sergey Ulanov 2014/03/27 19:06:55 s/NULL/host_->clients_.front()/
kelvinp 2014/04/01 21:23:49 Done.
host_->OnIncomingSession(session_unowned2_.get(), &response);
EXPECT_EQ(protocol::SessionManager::OVERLOAD, response);

Powered by Google App Engine
This is Rietveld 408576698