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

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

Issue 914853002: Add CHECK() in UdpSocketLibevent to debug crbug.com/452121 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 10 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/dns/mock_mdns_socket_factory.h ('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 7
8 #include <cstring> 8 #include <cstring>
9 #include <deque> 9 #include <deque>
10 #include <string> 10 #include <string>
(...skipping 853 matching lines...) Expand 10 before | Expand all | Expand 10 after
864 int Read(IOBuffer* buf, 864 int Read(IOBuffer* buf,
865 int buf_len, 865 int buf_len,
866 const CompletionCallback& callback) override; 866 const CompletionCallback& callback) override;
867 int Write(IOBuffer* buf, 867 int Write(IOBuffer* buf,
868 int buf_len, 868 int buf_len,
869 const CompletionCallback& callback) override; 869 const CompletionCallback& callback) override;
870 int SetReceiveBufferSize(int32 size) override; 870 int SetReceiveBufferSize(int32 size) override;
871 int SetSendBufferSize(int32 size) override; 871 int SetSendBufferSize(int32 size) override;
872 872
873 // DatagramSocket implementation. 873 // DatagramSocket implementation.
874 void Close() override; 874 int Close() override;
875 int GetPeerAddress(IPEndPoint* address) const override; 875 int GetPeerAddress(IPEndPoint* address) const override;
876 int GetLocalAddress(IPEndPoint* address) const override; 876 int GetLocalAddress(IPEndPoint* address) const override;
877 const BoundNetLog& NetLog() const override; 877 const BoundNetLog& NetLog() const override;
878 878
879 // DatagramClientSocket implementation. 879 // DatagramClientSocket implementation.
880 int Connect(const IPEndPoint& address) override; 880 int Connect(const IPEndPoint& address) override;
881 881
882 // AsyncSocket implementation. 882 // AsyncSocket implementation.
883 void OnReadComplete(const MockRead& data) override; 883 void OnReadComplete(const MockRead& data) override;
884 void OnConnectComplete(const MockConnect& data) override; 884 void OnConnectComplete(const MockConnect& data) override;
(...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after
1034 int Read(IOBuffer* buf, 1034 int Read(IOBuffer* buf,
1035 int buf_len, 1035 int buf_len,
1036 const CompletionCallback& callback) override; 1036 const CompletionCallback& callback) override;
1037 int Write(IOBuffer* buf, 1037 int Write(IOBuffer* buf,
1038 int buf_len, 1038 int buf_len,
1039 const CompletionCallback& callback) override; 1039 const CompletionCallback& callback) override;
1040 int SetReceiveBufferSize(int32 size) override; 1040 int SetReceiveBufferSize(int32 size) override;
1041 int SetSendBufferSize(int32 size) override; 1041 int SetSendBufferSize(int32 size) override;
1042 1042
1043 // DatagramSocket implementation. 1043 // DatagramSocket implementation.
1044 void Close() override; 1044 int Close() override;
1045 int GetPeerAddress(IPEndPoint* address) const override; 1045 int GetPeerAddress(IPEndPoint* address) const override;
1046 int GetLocalAddress(IPEndPoint* address) const override; 1046 int GetLocalAddress(IPEndPoint* address) const override;
1047 const BoundNetLog& NetLog() const override; 1047 const BoundNetLog& NetLog() const override;
1048 1048
1049 // DatagramClientSocket implementation. 1049 // DatagramClientSocket implementation.
1050 int Connect(const IPEndPoint& address) override; 1050 int Connect(const IPEndPoint& address) override;
1051 1051
1052 // AsyncSocket implementation. 1052 // AsyncSocket implementation.
1053 void OnReadComplete(const MockRead& data) override; 1053 void OnReadComplete(const MockRead& data) override;
1054 void OnConnectComplete(const MockConnect& data) override; 1054 void OnConnectComplete(const MockConnect& data) override;
(...skipping 286 matching lines...) Expand 10 before | Expand all | Expand 10 after
1341 1341
1342 extern const char kSOCKS5OkRequest[]; 1342 extern const char kSOCKS5OkRequest[];
1343 extern const int kSOCKS5OkRequestLength; 1343 extern const int kSOCKS5OkRequestLength;
1344 1344
1345 extern const char kSOCKS5OkResponse[]; 1345 extern const char kSOCKS5OkResponse[];
1346 extern const int kSOCKS5OkResponseLength; 1346 extern const int kSOCKS5OkResponseLength;
1347 1347
1348 } // namespace net 1348 } // namespace net
1349 1349
1350 #endif // NET_SOCKET_SOCKET_TEST_UTIL_H_ 1350 #endif // NET_SOCKET_SOCKET_TEST_UTIL_H_
OLDNEW
« no previous file with comments | « net/dns/mock_mdns_socket_factory.h ('k') | net/socket/socket_test_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698