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

Side by Side Diff: net/quic/quic_end_to_end_unittest.cc

Issue 657013003: Use scoped_ptr::Pass instead of scoped_ptr::PassAs<T>. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 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
« no previous file with comments | « net/ocsp/nss_ocsp_unittest.cc ('k') | net/socket/client_socket_pool_base.h » ('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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 "base/basictypes.h" 5 #include "base/basictypes.h"
6 #include "base/compiler_specific.h" 6 #include "base/compiler_specific.h"
7 #include "base/memory/scoped_ptr.h" 7 #include "base/memory/scoped_ptr.h"
8 #include "base/stl_util.h" 8 #include "base/stl_util.h"
9 #include "base/strings/string_number_conversions.h" 9 #include "base/strings/string_number_conversions.h"
10 #include "net/base/elements_upload_data_stream.h" 10 #include "net/base/elements_upload_data_stream.h"
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 private: 68 private:
69 scoped_refptr<HttpNetworkSession> session_; 69 scoped_refptr<HttpNetworkSession> session_;
70 }; 70 };
71 71
72 } // namespace 72 } // namespace
73 73
74 class QuicEndToEndTest : public PlatformTest { 74 class QuicEndToEndTest : public PlatformTest {
75 protected: 75 protected:
76 QuicEndToEndTest() 76 QuicEndToEndTest()
77 : host_resolver_impl_(CreateResolverImpl()), 77 : host_resolver_impl_(CreateResolverImpl()),
78 host_resolver_(host_resolver_impl_.PassAs<HostResolver>()), 78 host_resolver_(host_resolver_impl_.Pass()),
79 ssl_config_service_(new SSLConfigServiceDefaults), 79 ssl_config_service_(new SSLConfigServiceDefaults),
80 proxy_service_(ProxyService::CreateDirect()), 80 proxy_service_(ProxyService::CreateDirect()),
81 auth_handler_factory_( 81 auth_handler_factory_(
82 HttpAuthHandlerFactory::CreateDefault(&host_resolver_)), 82 HttpAuthHandlerFactory::CreateDefault(&host_resolver_)),
83 strike_register_no_startup_period_(false) { 83 strike_register_no_startup_period_(false) {
84 request_.method = "GET"; 84 request_.method = "GET";
85 request_.url = GURL("http://www.google.com/"); 85 request_.url = GURL("http://www.google.com/");
86 request_.load_flags = 0; 86 request_.load_flags = 0;
87 87
88 params_.enable_quic = true; 88 params_.enable_quic = true;
(...skipping 216 matching lines...) Expand 10 before | Expand all | Expand 10 after
305 base::MessageLoop::current()->Run(); 305 base::MessageLoop::current()->Run();
306 306
307 for (size_t i = 0; i < num_requests; ++i) { 307 for (size_t i = 0; i < num_requests; ++i) {
308 CheckResponse(*consumers[i], "HTTP/1.1 200 OK", kResponseBody); 308 CheckResponse(*consumers[i], "HTTP/1.1 200 OK", kResponseBody);
309 } 309 }
310 STLDeleteElements(&consumers); 310 STLDeleteElements(&consumers);
311 } 311 }
312 312
313 } // namespace test 313 } // namespace test
314 } // namespace net 314 } // namespace net
OLDNEW
« no previous file with comments | « net/ocsp/nss_ocsp_unittest.cc ('k') | net/socket/client_socket_pool_base.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698