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

Unified Diff: net/socket/transport_client_socket_pool_unittest.cc

Issue 9958028: Add a new GetNegotiatedProtocol method to StreamSocket and implement in all subclasses. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 8 years, 9 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
« no previous file with comments | « net/socket/tcp_client_socket_win.cc ('k') | net/spdy/spdy_proxy_client_socket.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/socket/transport_client_socket_pool_unittest.cc
diff --git a/net/socket/transport_client_socket_pool_unittest.cc b/net/socket/transport_client_socket_pool_unittest.cc
index 3aeda509fff9cd1e92eef1ebd7d1600398d3f290..0b310833aadf7f2b68b16bc69a40be99902254c5 100644
--- a/net/socket/transport_client_socket_pool_unittest.cc
+++ b/net/socket/transport_client_socket_pool_unittest.cc
@@ -91,6 +91,9 @@ class MockClientSocket : public StreamSocket {
virtual base::TimeDelta GetConnectTimeMicros() const {
return base::TimeDelta::FromMicroseconds(-1);
}
+ virtual NextProto GetNegotiatedProtocol() const {
+ return kProtoUnknown;
+ }
// Socket implementation.
virtual int Read(IOBuffer* buf, int buf_len,
@@ -145,6 +148,9 @@ class MockFailingClientSocket : public StreamSocket {
virtual base::TimeDelta GetConnectTimeMicros() const {
return base::TimeDelta::FromMicroseconds(-1);
}
+ virtual NextProto GetNegotiatedProtocol() const {
+ return kProtoUnknown;
+ }
// Socket implementation.
virtual int Read(IOBuffer* buf, int buf_len,
@@ -224,6 +230,9 @@ class MockPendingClientSocket : public StreamSocket {
virtual base::TimeDelta GetConnectTimeMicros() const {
return base::TimeDelta::FromMicroseconds(-1);
}
+ virtual NextProto GetNegotiatedProtocol() const {
+ return kProtoUnknown;
+ }
// Socket implementation.
virtual int Read(IOBuffer* buf, int buf_len,
« no previous file with comments | « net/socket/tcp_client_socket_win.cc ('k') | net/spdy/spdy_proxy_client_socket.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698