OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 <stdint.h> | 5 #include <stdint.h> |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 #include <utility> | 8 #include <utility> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 479 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
490 int GetPeerAddress(IPEndPoint* address) const override { | 490 int GetPeerAddress(IPEndPoint* address) const override { |
491 return ERR_NOT_IMPLEMENTED; | 491 return ERR_NOT_IMPLEMENTED; |
492 } | 492 } |
493 int GetLocalAddress(IPEndPoint* address) const override { | 493 int GetLocalAddress(IPEndPoint* address) const override { |
494 return ERR_NOT_IMPLEMENTED; | 494 return ERR_NOT_IMPLEMENTED; |
495 } | 495 } |
496 const BoundNetLog& NetLog() const override { return net_log_; } | 496 const BoundNetLog& NetLog() const override { return net_log_; } |
497 void SetSubresourceSpeculation() override {} | 497 void SetSubresourceSpeculation() override {} |
498 void SetOmniboxSpeculation() override {} | 498 void SetOmniboxSpeculation() override {} |
499 bool WasEverUsed() const override { return true; } | 499 bool WasEverUsed() const override { return true; } |
500 bool UsingTCPFastOpen() const override { return false; } | |
501 bool WasNpnNegotiated() const override { return false; } | 500 bool WasNpnNegotiated() const override { return false; } |
502 NextProto GetNegotiatedProtocol() const override { return kProtoUnknown; } | 501 NextProto GetNegotiatedProtocol() const override { return kProtoUnknown; } |
503 bool GetSSLInfo(SSLInfo* ssl_info) override { return false; } | 502 bool GetSSLInfo(SSLInfo* ssl_info) override { return false; } |
504 void GetConnectionAttempts(ConnectionAttempts* out) const override { | 503 void GetConnectionAttempts(ConnectionAttempts* out) const override { |
505 out->clear(); | 504 out->clear(); |
506 } | 505 } |
507 void ClearConnectionAttempts() override {} | 506 void ClearConnectionAttempts() override {} |
508 void AddConnectionAttempts(const ConnectionAttempts& attempts) override {} | 507 void AddConnectionAttempts(const ConnectionAttempts& attempts) override {} |
509 int64_t GetTotalReceivedBytes() const override { | 508 int64_t GetTotalReceivedBytes() const override { |
510 NOTIMPLEMENTED(); | 509 NOTIMPLEMENTED(); |
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
648 ASSERT_EQ(OK, client.ConnectAndWait(server_address_)); | 647 ASSERT_EQ(OK, client.ConnectAndWait(server_address_)); |
649 client.Send("GET / HTTP/1.1\r\n\r\n"); | 648 client.Send("GET / HTTP/1.1\r\n\r\n"); |
650 ASSERT_FALSE(RunUntilRequestsReceived(1)); | 649 ASSERT_FALSE(RunUntilRequestsReceived(1)); |
651 ASSERT_EQ(1ul, connection_ids_.size()); | 650 ASSERT_EQ(1ul, connection_ids_.size()); |
652 ASSERT_EQ(0ul, requests_.size()); | 651 ASSERT_EQ(0ul, requests_.size()); |
653 } | 652 } |
654 | 653 |
655 } // namespace | 654 } // namespace |
656 | 655 |
657 } // namespace net | 656 } // namespace net |
OLD | NEW |