OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |