OLD | NEW |
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 211 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
222 virtual void SetOmniboxSpeculation() OVERRIDE {} | 222 virtual void SetOmniboxSpeculation() OVERRIDE {} |
223 | 223 |
224 virtual bool WasEverUsed() const OVERRIDE { | 224 virtual bool WasEverUsed() const OVERRIDE { |
225 return true; | 225 return true; |
226 } | 226 } |
227 | 227 |
228 virtual bool UsingTCPFastOpen() const OVERRIDE { | 228 virtual bool UsingTCPFastOpen() const OVERRIDE { |
229 return false; | 229 return false; |
230 } | 230 } |
231 | 231 |
232 virtual int64 NumBytesRead() const OVERRIDE { | |
233 return -1; | |
234 } | |
235 | |
236 virtual base::TimeDelta GetConnectTimeMicros() const OVERRIDE { | |
237 return base::TimeDelta::FromMicroseconds(-1); | |
238 } | |
239 | 232 |
240 virtual bool WasNpnNegotiated() const OVERRIDE { | 233 virtual bool WasNpnNegotiated() const OVERRIDE { |
241 return false; | 234 return false; |
242 } | 235 } |
243 | 236 |
244 virtual NextProto GetNegotiatedProtocol() const OVERRIDE { | 237 virtual NextProto GetNegotiatedProtocol() const OVERRIDE { |
245 return kProtoUnknown; | 238 return kProtoUnknown; |
246 } | 239 } |
247 | 240 |
248 virtual bool GetSSLInfo(SSLInfo* ssl_info) OVERRIDE { | 241 virtual bool GetSSLInfo(SSLInfo* ssl_info) OVERRIDE { |
(...skipping 329 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
578 unsigned char client_bad[kKeyingMaterialSize]; | 571 unsigned char client_bad[kKeyingMaterialSize]; |
579 rv = client_socket_->ExportKeyingMaterial(kKeyingLabelBad, | 572 rv = client_socket_->ExportKeyingMaterial(kKeyingLabelBad, |
580 false, kKeyingContext, | 573 false, kKeyingContext, |
581 client_bad, sizeof(client_bad)); | 574 client_bad, sizeof(client_bad)); |
582 ASSERT_EQ(rv, net::OK); | 575 ASSERT_EQ(rv, net::OK); |
583 EXPECT_NE(0, memcmp(server_out, client_bad, sizeof(server_out))); | 576 EXPECT_NE(0, memcmp(server_out, client_bad, sizeof(server_out))); |
584 } | 577 } |
585 #endif | 578 #endif |
586 | 579 |
587 } // namespace net | 580 } // namespace net |
OLD | NEW |