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

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

Issue 1821633003: net: remove UsingTCPFastOpen() method from StreamSocket class (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: remove use_tcp_fastopen_ from transport_client_socket_pool_test_util.cc Created 4 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 unified diff | Download patch
« no previous file with comments | « net/socket/ssl_server_socket_openssl.cc ('k') | net/socket/stream_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 // This test suite uses SSLClientSocket to test the implementation of 5 // This test suite uses SSLClientSocket to test the implementation of
6 // SSLServerSocket. In order to establish connections between the sockets 6 // SSLServerSocket. In order to establish connections between the sockets
7 // we need two additional classes: 7 // we need two additional classes:
8 // 1. FakeSocket 8 // 1. FakeSocket
9 // Connects SSL socket to FakeDataChannel. This class is just a stub. 9 // Connects SSL socket to FakeDataChannel. This class is just a stub.
10 // 10 //
(...skipping 239 matching lines...) Expand 10 before | Expand all | Expand 10 after
250 return OK; 250 return OK;
251 } 251 }
252 252
253 const BoundNetLog& NetLog() const override { return net_log_; } 253 const BoundNetLog& NetLog() const override { return net_log_; }
254 254
255 void SetSubresourceSpeculation() override {} 255 void SetSubresourceSpeculation() override {}
256 void SetOmniboxSpeculation() override {} 256 void SetOmniboxSpeculation() override {}
257 257
258 bool WasEverUsed() const override { return true; } 258 bool WasEverUsed() const override { return true; }
259 259
260 bool UsingTCPFastOpen() const override { return false; }
261
262 bool WasNpnNegotiated() const override { return false; } 260 bool WasNpnNegotiated() const override { return false; }
263 261
264 NextProto GetNegotiatedProtocol() const override { return kProtoUnknown; } 262 NextProto GetNegotiatedProtocol() const override { return kProtoUnknown; }
265 263
266 bool GetSSLInfo(SSLInfo* ssl_info) override { return false; } 264 bool GetSSLInfo(SSLInfo* ssl_info) override { return false; }
267 265
268 void GetConnectionAttempts(ConnectionAttempts* out) const override { 266 void GetConnectionAttempts(ConnectionAttempts* out) const override {
269 out->clear(); 267 out->clear();
270 } 268 }
271 269
(...skipping 801 matching lines...) Expand 10 before | Expand all | Expand 10 after
1073 int server_ret = server_socket_->Handshake(handshake_callback.callback()); 1071 int server_ret = server_socket_->Handshake(handshake_callback.callback());
1074 1072
1075 client_ret = connect_callback.GetResult(client_ret); 1073 client_ret = connect_callback.GetResult(client_ret);
1076 server_ret = handshake_callback.GetResult(server_ret); 1074 server_ret = handshake_callback.GetResult(server_ret);
1077 1075
1078 ASSERT_EQ(ERR_SSL_VERSION_OR_CIPHER_MISMATCH, client_ret); 1076 ASSERT_EQ(ERR_SSL_VERSION_OR_CIPHER_MISMATCH, client_ret);
1079 ASSERT_EQ(ERR_SSL_VERSION_OR_CIPHER_MISMATCH, server_ret); 1077 ASSERT_EQ(ERR_SSL_VERSION_OR_CIPHER_MISMATCH, server_ret);
1080 } 1078 }
1081 1079
1082 } // namespace net 1080 } // namespace net
OLDNEW
« no previous file with comments | « net/socket/ssl_server_socket_openssl.cc ('k') | net/socket/stream_socket.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698