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

Unified Diff: remoting/protocol/jingle_session_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
« no previous file with comments | « remoting/protocol/jingle_session.cc ('k') | remoting/protocol/protocol_mock_objects.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/protocol/jingle_session_unittest.cc
diff --git a/remoting/protocol/jingle_session_unittest.cc b/remoting/protocol/jingle_session_unittest.cc
index 15ce76c26e3f93d549c8d66ed6a65c08dc821fdb..3609c496b4dd0c04492f39d33b31d88b2b236139 100644
--- a/remoting/protocol/jingle_session_unittest.cc
+++ b/remoting/protocol/jingle_session_unittest.cc
@@ -15,6 +15,7 @@
#include "net/base/net_errors.h"
#include "net/socket/socket.h"
#include "net/socket/stream_socket.h"
+#include "remoting/protocol/auth_util.h"
#include "remoting/protocol/jingle_session.h"
#include "remoting/protocol/jingle_session_manager.h"
#include "remoting/jingle_glue/jingle_thread.h"
@@ -54,7 +55,6 @@ const int kMessageSize = 1024;
const int kMessages = 100;
const int kTestDataSize = kMessages * kMessageSize;
const int kUdpWriteDelayMs = 10;
-const char kTestToken[] = "a_dummy_token";
const char kChannelName[] = "test_channel";
const char kHostJid[] = "host1@gmail.com/123";
@@ -246,7 +246,8 @@ class JingleSessionTest : public testing::Test {
}
client_session_.reset(client_server_->Connect(
- kHostJid, kTestHostPublicKey, kTestToken,
+ kHostJid, kTestHostPublicKey,
+ GenerateSupportAuthToken(kClientJid, kTestSharedSecret),
CandidateSessionConfig::CreateDefault(),
base::Bind(&MockSessionCallback::OnStateChange,
base::Unretained(&client_connection_callback_))));
@@ -671,7 +672,8 @@ TEST_F(JingleSessionTest, RejectConnection) {
}
client_session_.reset(client_server_->Connect(
- kHostJid, kTestHostPublicKey, kTestToken,
+ kHostJid, kTestHostPublicKey,
+ GenerateSupportAuthToken(kClientJid, kTestSharedSecret),
CandidateSessionConfig::CreateDefault(),
base::Bind(&MockSessionCallback::OnStateChange,
base::Unretained(&client_connection_callback_))));
« no previous file with comments | « remoting/protocol/jingle_session.cc ('k') | remoting/protocol/protocol_mock_objects.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698