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

Side by Side Diff: net/http/http_stream_factory_impl_unittest.cc

Issue 8990001: base::Bind: Convert most of net/http. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Clang. Created 9 years 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
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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/http/http_stream_factory_impl.h" 5 #include "net/http/http_stream_factory_impl.h"
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 #include "net/base/cert_verifier.h" 10 #include "net/base/cert_verifier.h"
(...skipping 184 matching lines...) Expand 10 before | Expand all | Expand 10 after
195 CertVerifier* cert_verifier); 195 CertVerifier* cert_verifier);
196 196
197 int last_num_streams() const { 197 int last_num_streams() const {
198 return last_num_streams_; 198 return last_num_streams_;
199 } 199 }
200 200
201 virtual int RequestSocket(const std::string& group_name, 201 virtual int RequestSocket(const std::string& group_name,
202 const void* socket_params, 202 const void* socket_params,
203 RequestPriority priority, 203 RequestPriority priority,
204 ClientSocketHandle* handle, 204 ClientSocketHandle* handle,
205 OldCompletionCallback* callback, 205 const CompletionCallback& callback,
206 const BoundNetLog& net_log) OVERRIDE { 206 const BoundNetLog& net_log) OVERRIDE {
207 ADD_FAILURE(); 207 ADD_FAILURE();
208 return ERR_UNEXPECTED; 208 return ERR_UNEXPECTED;
209 } 209 }
210 210
211 virtual void RequestSockets(const std::string& group_name, 211 virtual void RequestSockets(const std::string& group_name,
212 const void* socket_params, 212 const void* socket_params,
213 int num_sockets, 213 int num_sockets,
214 const BoundNetLog& net_log) OVERRIDE { 214 const BoundNetLog& net_log) OVERRIDE {
215 last_num_streams_ = num_sockets; 215 last_num_streams_ = num_sockets;
(...skipping 237 matching lines...) Expand 10 before | Expand all | Expand 10 after
453 const ProxyRetryInfoMap& retry_info = 453 const ProxyRetryInfoMap& retry_info =
454 session->proxy_service()->proxy_retry_info(); 454 session->proxy_service()->proxy_retry_info();
455 EXPECT_EQ(1u, retry_info.size()); 455 EXPECT_EQ(1u, retry_info.size());
456 ProxyRetryInfoMap::const_iterator iter = retry_info.find("bad:99"); 456 ProxyRetryInfoMap::const_iterator iter = retry_info.find("bad:99");
457 EXPECT_TRUE(iter != retry_info.end()); 457 EXPECT_TRUE(iter != retry_info.end());
458 } 458 }
459 459
460 } // namespace 460 } // namespace
461 461
462 } // namespace net 462 } // namespace net
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698