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

Unified Diff: remoting/protocol/jingle_session_unittest.cc

Issue 8774017: Add AUTHENTICATED session state. (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/jingle_session_unittest.cc
diff --git a/remoting/protocol/jingle_session_unittest.cc b/remoting/protocol/jingle_session_unittest.cc
index d20d8fcfa8b2487582091893dc2d11fcb1ca8a19..d36dac1cbfd60431b77a241b080dd70857661469 100644
--- a/remoting/protocol/jingle_session_unittest.cc
+++ b/remoting/protocol/jingle_session_unittest.cc
@@ -193,6 +193,9 @@ class JingleSessionTest : public testing::Test {
} else {
EXPECT_CALL(host_connection_callback_,
OnStateChange(Session::CONNECTED))
+ .Times(1);
+ EXPECT_CALL(host_connection_callback_,
+ OnStateChange(Session::AUTHENTICATED))
.Times(1)
.WillOnce(QuitThreadOnCounter(&not_connected_peers));
// Expect that the connection will be closed eventually.
@@ -211,6 +214,9 @@ class JingleSessionTest : public testing::Test {
if (!expect_fail) {
EXPECT_CALL(client_connection_callback_,
OnStateChange(Session::CONNECTED))
+ .Times(1);
+ EXPECT_CALL(client_connection_callback_,
+ OnStateChange(Session::AUTHENTICATED))
.Times(1)
.WillOnce(QuitThreadOnCounter(&not_connected_peers));
}

Powered by Google App Engine
This is Rietveld 408576698