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

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

Issue 1027693004: Delete the ClientSocketPoolHistograms class. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: small xml fix Created 5 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/deterministic_socket_data_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 7
8 #include <cstring> 8 #include <cstring>
9 #include <deque> 9 #include <deque>
10 #include <string> 10 #include <string>
(...skipping 1140 matching lines...) Expand 10 before | Expand all | Expand 10 after
1151 1151
1152 scoped_ptr<StreamSocket> socket_; 1152 scoped_ptr<StreamSocket> socket_;
1153 ClientSocketHandle* handle_; 1153 ClientSocketHandle* handle_;
1154 CompletionCallback user_callback_; 1154 CompletionCallback user_callback_;
1155 1155
1156 DISALLOW_COPY_AND_ASSIGN(MockConnectJob); 1156 DISALLOW_COPY_AND_ASSIGN(MockConnectJob);
1157 }; 1157 };
1158 1158
1159 MockTransportClientSocketPool(int max_sockets, 1159 MockTransportClientSocketPool(int max_sockets,
1160 int max_sockets_per_group, 1160 int max_sockets_per_group,
1161 ClientSocketPoolHistograms* histograms,
1162 ClientSocketFactory* socket_factory); 1161 ClientSocketFactory* socket_factory);
1163 1162
1164 ~MockTransportClientSocketPool() override; 1163 ~MockTransportClientSocketPool() override;
1165 1164
1166 RequestPriority last_request_priority() const { 1165 RequestPriority last_request_priority() const {
1167 return last_request_priority_; 1166 return last_request_priority_;
1168 } 1167 }
1169 int release_count() const { return release_count_; } 1168 int release_count() const { return release_count_; }
1170 int cancel_count() const { return cancel_count_; } 1169 int cancel_count() const { return cancel_count_; }
1171 1170
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
1242 std::vector<DeterministicMockUDPClientSocket*> udp_client_sockets_; 1241 std::vector<DeterministicMockUDPClientSocket*> udp_client_sockets_;
1243 std::vector<MockSSLClientSocket*> ssl_client_sockets_; 1242 std::vector<MockSSLClientSocket*> ssl_client_sockets_;
1244 1243
1245 DISALLOW_COPY_AND_ASSIGN(DeterministicMockClientSocketFactory); 1244 DISALLOW_COPY_AND_ASSIGN(DeterministicMockClientSocketFactory);
1246 }; 1245 };
1247 1246
1248 class MockSOCKSClientSocketPool : public SOCKSClientSocketPool { 1247 class MockSOCKSClientSocketPool : public SOCKSClientSocketPool {
1249 public: 1248 public:
1250 MockSOCKSClientSocketPool(int max_sockets, 1249 MockSOCKSClientSocketPool(int max_sockets,
1251 int max_sockets_per_group, 1250 int max_sockets_per_group,
1252 ClientSocketPoolHistograms* histograms,
1253 TransportClientSocketPool* transport_pool); 1251 TransportClientSocketPool* transport_pool);
1254 1252
1255 ~MockSOCKSClientSocketPool() override; 1253 ~MockSOCKSClientSocketPool() override;
1256 1254
1257 // SOCKSClientSocketPool implementation. 1255 // SOCKSClientSocketPool implementation.
1258 int RequestSocket(const std::string& group_name, 1256 int RequestSocket(const std::string& group_name,
1259 const void* socket_params, 1257 const void* socket_params,
1260 RequestPriority priority, 1258 RequestPriority priority,
1261 ClientSocketHandle* handle, 1259 ClientSocketHandle* handle,
1262 const CompletionCallback& callback, 1260 const CompletionCallback& callback,
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
1295 1293
1296 extern const char kSOCKS5OkRequest[]; 1294 extern const char kSOCKS5OkRequest[];
1297 extern const int kSOCKS5OkRequestLength; 1295 extern const int kSOCKS5OkRequestLength;
1298 1296
1299 extern const char kSOCKS5OkResponse[]; 1297 extern const char kSOCKS5OkResponse[];
1300 extern const int kSOCKS5OkResponseLength; 1298 extern const int kSOCKS5OkResponseLength;
1301 1299
1302 } // namespace net 1300 } // namespace net
1303 1301
1304 #endif // NET_SOCKET_SOCKET_TEST_UTIL_H_ 1302 #endif // NET_SOCKET_SOCKET_TEST_UTIL_H_
OLDNEW
« no previous file with comments | « net/socket/deterministic_socket_data_unittest.cc ('k') | net/socket/socket_test_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698