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

Unified Diff: net/socket/ssl_client_socket_pool_unittest.cc

Issue 8787011: Log server advertised protos and the selected (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years 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 | « net/socket/ssl_client_socket_pool.cc ('k') | net/socket/ssl_client_socket_win.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/socket/ssl_client_socket_pool_unittest.cc
===================================================================
--- net/socket/ssl_client_socket_pool_unittest.cc (revision 112817)
+++ net/socket/ssl_client_socket_pool_unittest.cc (working copy)
@@ -382,7 +382,8 @@
SSLClientSocket* ssl_socket = static_cast<SSLClientSocket*>(handle.socket());
EXPECT_TRUE(ssl_socket->was_npn_negotiated());
std::string proto;
- ssl_socket->GetNextProto(&proto);
+ std::string server_protos;
+ ssl_socket->GetNextProto(&proto, &server_protos);
EXPECT_EQ(SSLClientSocket::NextProtoFromString(proto),
SSLClientSocket::kProtoSPDY2);
}
@@ -414,7 +415,8 @@
SSLClientSocket* ssl_socket = static_cast<SSLClientSocket*>(handle.socket());
EXPECT_TRUE(ssl_socket->was_npn_negotiated());
std::string proto;
- ssl_socket->GetNextProto(&proto);
+ std::string server_protos;
+ ssl_socket->GetNextProto(&proto, &server_protos);
EXPECT_EQ(SSLClientSocket::NextProtoFromString(proto),
SSLClientSocket::kProtoSPDY2);
}
@@ -714,7 +716,8 @@
SSLClientSocket* ssl_socket = static_cast<SSLClientSocket*>(handle->socket());
EXPECT_TRUE(ssl_socket->was_npn_negotiated());
std::string proto;
- ssl_socket->GetNextProto(&proto);
+ std::string server_protos;
+ ssl_socket->GetNextProto(&proto, &server_protos);
EXPECT_EQ(SSLClientSocket::NextProtoFromString(proto),
SSLClientSocket::kProtoSPDY2);
@@ -801,7 +804,8 @@
SSLClientSocket* ssl_socket = static_cast<SSLClientSocket*>(handle->socket());
EXPECT_TRUE(ssl_socket->was_npn_negotiated());
std::string proto;
- ssl_socket->GetNextProto(&proto);
+ std::string server_protos;
+ ssl_socket->GetNextProto(&proto, &server_protos);
EXPECT_EQ(SSLClientSocket::NextProtoFromString(proto),
SSLClientSocket::kProtoSPDY2);
« no previous file with comments | « net/socket/ssl_client_socket_pool.cc ('k') | net/socket/ssl_client_socket_win.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698