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

Side by Side Diff: net/socket/transport_client_socket_pool_unittest.cc

Issue 10690122: Change SpdySession::GetSSLInfo to get the SSLInfo from the underlying socket (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: FIx curvercp Created 8 years, 5 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 unified diff | Download patch | Annotate | Revision Log
« 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 »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "net/socket/transport_client_socket_pool.h" 5 #include "net/socket/transport_client_socket_pool.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/bind_helpers.h" 8 #include "base/bind_helpers.h"
9 #include "base/callback.h" 9 #include "base/callback.h"
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
82 } 82 }
83 83
84 virtual void SetSubresourceSpeculation() {} 84 virtual void SetSubresourceSpeculation() {}
85 virtual void SetOmniboxSpeculation() {} 85 virtual void SetOmniboxSpeculation() {}
86 virtual bool WasEverUsed() const { return false; } 86 virtual bool WasEverUsed() const { return false; }
87 virtual bool UsingTCPFastOpen() const { return false; } 87 virtual bool UsingTCPFastOpen() const { return false; }
88 virtual int64 NumBytesRead() const { return -1; } 88 virtual int64 NumBytesRead() const { return -1; }
89 virtual base::TimeDelta GetConnectTimeMicros() const { 89 virtual base::TimeDelta GetConnectTimeMicros() const {
90 return base::TimeDelta::FromMicroseconds(-1); 90 return base::TimeDelta::FromMicroseconds(-1);
91 } 91 }
92 virtual bool WasNpnNegotiated() const {
93 return false;
94 }
92 virtual NextProto GetNegotiatedProtocol() const { 95 virtual NextProto GetNegotiatedProtocol() const {
93 return kProtoUnknown; 96 return kProtoUnknown;
94 } 97 }
98 virtual bool GetSSLInfo(SSLInfo* ssl_info) {
99 return false;
100 }
95 101
96 // Socket implementation. 102 // Socket implementation.
97 virtual int Read(IOBuffer* buf, int buf_len, 103 virtual int Read(IOBuffer* buf, int buf_len,
98 const CompletionCallback& callback) { 104 const CompletionCallback& callback) {
99 return ERR_FAILED; 105 return ERR_FAILED;
100 } 106 }
101 virtual int Write(IOBuffer* buf, int buf_len, 107 virtual int Write(IOBuffer* buf, int buf_len,
102 const CompletionCallback& callback) { 108 const CompletionCallback& callback) {
103 return ERR_FAILED; 109 return ERR_FAILED;
104 } 110 }
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
139 } 145 }
140 146
141 virtual void SetSubresourceSpeculation() {} 147 virtual void SetSubresourceSpeculation() {}
142 virtual void SetOmniboxSpeculation() {} 148 virtual void SetOmniboxSpeculation() {}
143 virtual bool WasEverUsed() const { return false; } 149 virtual bool WasEverUsed() const { return false; }
144 virtual bool UsingTCPFastOpen() const { return false; } 150 virtual bool UsingTCPFastOpen() const { return false; }
145 virtual int64 NumBytesRead() const { return -1; } 151 virtual int64 NumBytesRead() const { return -1; }
146 virtual base::TimeDelta GetConnectTimeMicros() const { 152 virtual base::TimeDelta GetConnectTimeMicros() const {
147 return base::TimeDelta::FromMicroseconds(-1); 153 return base::TimeDelta::FromMicroseconds(-1);
148 } 154 }
155 virtual bool WasNpnNegotiated() const {
156 return false;
157 }
149 virtual NextProto GetNegotiatedProtocol() const { 158 virtual NextProto GetNegotiatedProtocol() const {
150 return kProtoUnknown; 159 return kProtoUnknown;
151 } 160 }
161 virtual bool GetSSLInfo(SSLInfo* ssl_info) {
162 return false;
163 }
152 164
153 // Socket implementation. 165 // Socket implementation.
154 virtual int Read(IOBuffer* buf, int buf_len, 166 virtual int Read(IOBuffer* buf, int buf_len,
155 const CompletionCallback& callback) { 167 const CompletionCallback& callback) {
156 return ERR_FAILED; 168 return ERR_FAILED;
157 } 169 }
158 170
159 virtual int Write(IOBuffer* buf, int buf_len, 171 virtual int Write(IOBuffer* buf, int buf_len,
160 const CompletionCallback& callback) { 172 const CompletionCallback& callback) {
161 return ERR_FAILED; 173 return ERR_FAILED;
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
221 } 233 }
222 234
223 virtual void SetSubresourceSpeculation() {} 235 virtual void SetSubresourceSpeculation() {}
224 virtual void SetOmniboxSpeculation() {} 236 virtual void SetOmniboxSpeculation() {}
225 virtual bool WasEverUsed() const { return false; } 237 virtual bool WasEverUsed() const { return false; }
226 virtual bool UsingTCPFastOpen() const { return false; } 238 virtual bool UsingTCPFastOpen() const { return false; }
227 virtual int64 NumBytesRead() const { return -1; } 239 virtual int64 NumBytesRead() const { return -1; }
228 virtual base::TimeDelta GetConnectTimeMicros() const { 240 virtual base::TimeDelta GetConnectTimeMicros() const {
229 return base::TimeDelta::FromMicroseconds(-1); 241 return base::TimeDelta::FromMicroseconds(-1);
230 } 242 }
243 virtual bool WasNpnNegotiated() const {
244 return false;
245 }
231 virtual NextProto GetNegotiatedProtocol() const { 246 virtual NextProto GetNegotiatedProtocol() const {
232 return kProtoUnknown; 247 return kProtoUnknown;
233 } 248 }
249 virtual bool GetSSLInfo(SSLInfo* ssl_info) {
250 return false;
251 }
234 252
235 // Socket implementation. 253 // Socket implementation.
236 virtual int Read(IOBuffer* buf, int buf_len, 254 virtual int Read(IOBuffer* buf, int buf_len,
237 const CompletionCallback& callback) { 255 const CompletionCallback& callback) {
238 return ERR_FAILED; 256 return ERR_FAILED;
239 } 257 }
240 258
241 virtual int Write(IOBuffer* buf, int buf_len, 259 virtual int Write(IOBuffer* buf, int buf_len,
242 const CompletionCallback& callback) { 260 const CompletionCallback& callback) {
243 return ERR_FAILED; 261 return ERR_FAILED;
(...skipping 1012 matching lines...) Expand 10 before | Expand all | Expand 10 after
1256 EXPECT_TRUE(handle.socket()); 1274 EXPECT_TRUE(handle.socket());
1257 IPEndPoint endpoint; 1275 IPEndPoint endpoint;
1258 handle.socket()->GetLocalAddress(&endpoint); 1276 handle.socket()->GetLocalAddress(&endpoint);
1259 EXPECT_EQ(kIPv4AddressSize, endpoint.address().size()); 1277 EXPECT_EQ(kIPv4AddressSize, endpoint.address().size());
1260 EXPECT_EQ(1, client_socket_factory_.allocation_count()); 1278 EXPECT_EQ(1, client_socket_factory_.allocation_count());
1261 } 1279 }
1262 1280
1263 } // namespace 1281 } // namespace
1264 1282
1265 } // namespace net 1283 } // namespace net
OLDNEW
« 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