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

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

Issue 3533013: net: plumb DnsRRResolver from IOThread to HttpNetworkSession. (Closed)
Patch Set: Created 10 years, 2 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
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 "net/socket/socket_test_util.h" 5 #include "net/socket/socket_test_util.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <vector> 8 #include <vector>
9 9
10 10
(...skipping 1185 matching lines...) Expand 10 before | Expand all | Expand 10 after
1196 { 0x05, 0x00, 0x00, 0x01, 127, 0, 0, 1, 0x00, 0x50 }; 1196 { 0x05, 0x00, 0x00, 0x01, 127, 0, 0, 1, 0x00, 0x50 };
1197 const int kSOCKS5OkResponseLength = arraysize(kSOCKS5OkResponse); 1197 const int kSOCKS5OkResponseLength = arraysize(kSOCKS5OkResponse);
1198 1198
1199 MockSSLClientSocketPool::MockSSLClientSocketPool( 1199 MockSSLClientSocketPool::MockSSLClientSocketPool(
1200 int max_sockets, 1200 int max_sockets,
1201 int max_sockets_per_group, 1201 int max_sockets_per_group,
1202 ClientSocketPoolHistograms* histograms, 1202 ClientSocketPoolHistograms* histograms,
1203 ClientSocketFactory* socket_factory, 1203 ClientSocketFactory* socket_factory,
1204 TCPClientSocketPool* tcp_pool) 1204 TCPClientSocketPool* tcp_pool)
1205 : SSLClientSocketPool(max_sockets, max_sockets_per_group, histograms, 1205 : SSLClientSocketPool(max_sockets, max_sockets_per_group, histograms,
1206 NULL, socket_factory, 1206 NULL, NULL, socket_factory,
1207 tcp_pool, 1207 tcp_pool,
1208 NULL, NULL, NULL, NULL), 1208 NULL, NULL, NULL, NULL),
1209 client_socket_factory_(socket_factory), 1209 client_socket_factory_(socket_factory),
1210 release_count_(0), 1210 release_count_(0),
1211 cancel_count_(0) { 1211 cancel_count_(0) {
1212 } 1212 }
1213 1213
1214 int MockSSLClientSocketPool::RequestSocket(const std::string& group_name, 1214 int MockSSLClientSocketPool::RequestSocket(const std::string& group_name,
1215 const void* socket_params, 1215 const void* socket_params,
1216 RequestPriority priority, 1216 RequestPriority priority,
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
1286 1286
1287 handle_ = NULL; 1287 handle_ = NULL;
1288 1288
1289 if (user_callback_) { 1289 if (user_callback_) {
1290 CompletionCallback* callback = user_callback_; 1290 CompletionCallback* callback = user_callback_;
1291 user_callback_ = NULL; 1291 user_callback_ = NULL;
1292 callback->Run(rv); 1292 callback->Run(rv);
1293 } 1293 }
1294 } 1294 }
1295 } // namespace net 1295 } // namespace net
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698