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

Unified Diff: remoting/protocol/ssl_hmac_channel_authenticator_unittest.cc

Issue 1197853003: Add P2PDatagramSocket and P2PStreamSocket interfaces. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 6 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/protocol/ssl_hmac_channel_authenticator_unittest.cc
diff --git a/remoting/protocol/ssl_hmac_channel_authenticator_unittest.cc b/remoting/protocol/ssl_hmac_channel_authenticator_unittest.cc
index bc9ee86f1142369fa9ae01a8f1f0acb6503fc2e2..e8c890d384c19be56f5cb5b4e35581e824fe26cb 100644
--- a/remoting/protocol/ssl_hmac_channel_authenticator_unittest.cc
+++ b/remoting/protocol/ssl_hmac_channel_authenticator_unittest.cc
@@ -36,7 +36,7 @@ const char kTestSharedSecretBad[] = "0000-0000-0001";
class MockChannelDoneCallback {
public:
- MOCK_METHOD2(OnDone, void(int error, net::StreamSocket* socket));
+ MOCK_METHOD2(OnDone, void(int error, P2PStreamSocket* socket));
};
ACTION_P(QuitThreadOnCounter, counter) {
@@ -115,7 +115,7 @@ class SslHmacChannelAuthenticatorTest : public testing::Test {
void OnHostConnected(const std::string& ref_argument,
int error,
- scoped_ptr<net::StreamSocket> socket) {
+ scoped_ptr<P2PStreamSocket> socket) {
// Try deleting the authenticator and verify that this doesn't destroy
// reference parameters.
host_auth_.reset();
@@ -125,7 +125,7 @@ class SslHmacChannelAuthenticatorTest : public testing::Test {
host_socket_ = socket.Pass();
}
- void OnClientConnected(int error, scoped_ptr<net::StreamSocket> socket) {
+ void OnClientConnected(int error, scoped_ptr<P2PStreamSocket> socket) {
client_auth_.reset();
client_callback_.OnDone(error, socket.get());
client_socket_ = socket.Pass();
@@ -141,8 +141,8 @@ class SslHmacChannelAuthenticatorTest : public testing::Test {
scoped_ptr<ChannelAuthenticator> host_auth_;
MockChannelDoneCallback client_callback_;
MockChannelDoneCallback host_callback_;
- scoped_ptr<net::StreamSocket> client_socket_;
- scoped_ptr<net::StreamSocket> host_socket_;
+ scoped_ptr<P2PStreamSocket> client_socket_;
+ scoped_ptr<P2PStreamSocket> host_socket_;
DISALLOW_COPY_AND_ASSIGN(SslHmacChannelAuthenticatorTest);
};

Powered by Google App Engine
This is Rietveld 408576698