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

Unified Diff: remoting/protocol/connection_to_client_unittest.cc

Issue 8662001: Remove AccessVerifier interface. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 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/protocol/connection_to_client_unittest.cc
diff --git a/remoting/protocol/connection_to_client_unittest.cc b/remoting/protocol/connection_to_client_unittest.cc
index 6bd051565d6bd39caf1842e94b7b12f345afdbe7..41f299c5082b92386ca5563913c2e5f509bbc958 100644
--- a/remoting/protocol/connection_to_client_unittest.cc
+++ b/remoting/protocol/connection_to_client_unittest.cc
@@ -98,7 +98,9 @@ TEST_F(ConnectionToClientTest, StateChange) {
session_->state_change_callback().Run(protocol::Session::CLOSED);
message_loop_.RunAllPending();
- EXPECT_CALL(handler_, OnConnectionFailed(viewer_.get()));
+ EXPECT_CALL(handler_, OnConnectionFailed(
+ viewer_.get(), Session::SESSION_REJECTED));
+ session_->set_error(Session::SESSION_REJECTED);
session_->state_change_callback().Run(protocol::Session::FAILED);
message_loop_.RunAllPending();
}

Powered by Google App Engine
This is Rietveld 408576698