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

Side by Side Diff: net/socket/socket_test_util.h

Issue 10491007: fixed issue 128383 - replace GetPeerAddress(AddressList* address) with GetPeerAddress(IPEndPoint* a… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix according to review Created 8 years, 6 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/client_socket_pool_base_unittest.cc ('k') | net/socket/socket_test_util.cc » ('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 #ifndef NET_SOCKET_SOCKET_TEST_UTIL_H_ 5 #ifndef NET_SOCKET_SOCKET_TEST_UTIL_H_
6 #define NET_SOCKET_SOCKET_TEST_UTIL_H_ 6 #define NET_SOCKET_SOCKET_TEST_UTIL_H_
7 #pragma once 7 #pragma once
8 8
9 #include <cstring> 9 #include <cstring>
10 #include <deque> 10 #include <deque>
(...skipping 571 matching lines...) Expand 10 before | Expand all | Expand 10 after
582 virtual int Write(IOBuffer* buf, int buf_len, 582 virtual int Write(IOBuffer* buf, int buf_len,
583 const CompletionCallback& callback) = 0; 583 const CompletionCallback& callback) = 0;
584 virtual bool SetReceiveBufferSize(int32 size) OVERRIDE; 584 virtual bool SetReceiveBufferSize(int32 size) OVERRIDE;
585 virtual bool SetSendBufferSize(int32 size) OVERRIDE; 585 virtual bool SetSendBufferSize(int32 size) OVERRIDE;
586 586
587 // StreamSocket implementation. 587 // StreamSocket implementation.
588 virtual int Connect(const CompletionCallback& callback) = 0; 588 virtual int Connect(const CompletionCallback& callback) = 0;
589 virtual void Disconnect() OVERRIDE; 589 virtual void Disconnect() OVERRIDE;
590 virtual bool IsConnected() const OVERRIDE; 590 virtual bool IsConnected() const OVERRIDE;
591 virtual bool IsConnectedAndIdle() const OVERRIDE; 591 virtual bool IsConnectedAndIdle() const OVERRIDE;
592 virtual int GetPeerAddress(AddressList* address) const OVERRIDE; 592 virtual int GetPeerAddress(IPEndPoint* address) const OVERRIDE;
593 virtual int GetLocalAddress(IPEndPoint* address) const OVERRIDE; 593 virtual int GetLocalAddress(IPEndPoint* address) const OVERRIDE;
594 virtual const BoundNetLog& NetLog() const OVERRIDE; 594 virtual const BoundNetLog& NetLog() const OVERRIDE;
595 virtual void SetSubresourceSpeculation() OVERRIDE {} 595 virtual void SetSubresourceSpeculation() OVERRIDE {}
596 virtual void SetOmniboxSpeculation() OVERRIDE {} 596 virtual void SetOmniboxSpeculation() OVERRIDE {}
597 597
598 // SSLClientSocket implementation. 598 // SSLClientSocket implementation.
599 virtual void GetSSLInfo(SSLInfo* ssl_info) OVERRIDE; 599 virtual void GetSSLInfo(SSLInfo* ssl_info) OVERRIDE;
600 virtual void GetSSLCertRequestInfo( 600 virtual void GetSSLCertRequestInfo(
601 SSLCertRequestInfo* cert_request_info) OVERRIDE; 601 SSLCertRequestInfo* cert_request_info) OVERRIDE;
602 virtual int ExportKeyingMaterial(const base::StringPiece& label, 602 virtual int ExportKeyingMaterial(const base::StringPiece& label,
(...skipping 30 matching lines...) Expand all
633 virtual int Read(IOBuffer* buf, int buf_len, 633 virtual int Read(IOBuffer* buf, int buf_len,
634 const CompletionCallback& callback) OVERRIDE; 634 const CompletionCallback& callback) OVERRIDE;
635 virtual int Write(IOBuffer* buf, int buf_len, 635 virtual int Write(IOBuffer* buf, int buf_len,
636 const CompletionCallback& callback) OVERRIDE; 636 const CompletionCallback& callback) OVERRIDE;
637 637
638 // StreamSocket implementation. 638 // StreamSocket implementation.
639 virtual int Connect(const CompletionCallback& callback) OVERRIDE; 639 virtual int Connect(const CompletionCallback& callback) OVERRIDE;
640 virtual void Disconnect() OVERRIDE; 640 virtual void Disconnect() OVERRIDE;
641 virtual bool IsConnected() const OVERRIDE; 641 virtual bool IsConnected() const OVERRIDE;
642 virtual bool IsConnectedAndIdle() const OVERRIDE; 642 virtual bool IsConnectedAndIdle() const OVERRIDE;
643 virtual int GetPeerAddress(AddressList* address) const OVERRIDE; 643 virtual int GetPeerAddress(IPEndPoint* address) const OVERRIDE;
644 virtual bool WasEverUsed() const OVERRIDE; 644 virtual bool WasEverUsed() const OVERRIDE;
645 virtual bool UsingTCPFastOpen() const OVERRIDE; 645 virtual bool UsingTCPFastOpen() const OVERRIDE;
646 virtual int64 NumBytesRead() const OVERRIDE; 646 virtual int64 NumBytesRead() const OVERRIDE;
647 virtual base::TimeDelta GetConnectTimeMicros() const OVERRIDE; 647 virtual base::TimeDelta GetConnectTimeMicros() const OVERRIDE;
648 648
649 // AsyncSocket: 649 // AsyncSocket:
650 virtual void OnReadComplete(const MockRead& data) OVERRIDE; 650 virtual void OnReadComplete(const MockRead& data) OVERRIDE;
651 651
652 private: 652 private:
653 int CompleteRead(); 653 int CompleteRead();
(...skipping 393 matching lines...) Expand 10 before | Expand all | Expand 10 after
1047 1047
1048 extern const char kSOCKS5OkRequest[]; 1048 extern const char kSOCKS5OkRequest[];
1049 extern const int kSOCKS5OkRequestLength; 1049 extern const int kSOCKS5OkRequestLength;
1050 1050
1051 extern const char kSOCKS5OkResponse[]; 1051 extern const char kSOCKS5OkResponse[];
1052 extern const int kSOCKS5OkResponseLength; 1052 extern const int kSOCKS5OkResponseLength;
1053 1053
1054 } // namespace net 1054 } // namespace net
1055 1055
1056 #endif // NET_SOCKET_SOCKET_TEST_UTIL_H_ 1056 #endif // NET_SOCKET_SOCKET_TEST_UTIL_H_
OLDNEW
« no previous file with comments | « net/socket/client_socket_pool_base_unittest.cc ('k') | net/socket/socket_test_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698