| OLD | NEW |
| 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 #include <stddef.h> | 5 #include <stddef.h> |
| 6 #include <string> | 6 #include <string> |
| 7 #include <vector> | 7 #include <vector> |
| 8 | 8 |
| 9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
| 10 #include "base/memory/singleton.h" | 10 #include "base/memory/singleton.h" |
| (...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 152 server_started_(false), | 152 server_started_(false), |
| 153 strike_register_no_startup_period_(false) { | 153 strike_register_no_startup_period_(false) { |
| 154 net::IPAddressNumber ip; | 154 net::IPAddressNumber ip; |
| 155 CHECK(net::ParseIPLiteralToNumber("127.0.0.1", &ip)); | 155 CHECK(net::ParseIPLiteralToNumber("127.0.0.1", &ip)); |
| 156 server_address_ = IPEndPoint(ip, 0); | 156 server_address_ = IPEndPoint(ip, 0); |
| 157 | 157 |
| 158 client_supported_versions_ = GetParam().client_supported_versions; | 158 client_supported_versions_ = GetParam().client_supported_versions; |
| 159 server_supported_versions_ = GetParam().server_supported_versions; | 159 server_supported_versions_ = GetParam().server_supported_versions; |
| 160 negotiated_version_ = GetParam().negotiated_version; | 160 negotiated_version_ = GetParam().negotiated_version; |
| 161 FLAGS_enable_quic_pacing = GetParam().use_pacing; | 161 FLAGS_enable_quic_pacing = GetParam().use_pacing; |
| 162 LOG(INFO) << "Using Configuration: " << GetParam(); | 162 VLOG(1) << "Using Configuration: " << GetParam(); |
| 163 | 163 |
| 164 client_config_.SetDefaults(); | 164 client_config_.SetDefaults(); |
| 165 server_config_.SetDefaults(); | 165 server_config_.SetDefaults(); |
| 166 server_config_.set_initial_round_trip_time_us(kMaxInitialRoundTripTimeUs, | 166 server_config_.set_initial_round_trip_time_us(kMaxInitialRoundTripTimeUs, |
| 167 0); | 167 0); |
| 168 | 168 |
| 169 QuicInMemoryCachePeer::ResetForTests(); | 169 QuicInMemoryCachePeer::ResetForTests(); |
| 170 AddToCache("GET", "https://www.google.com/foo", | 170 AddToCache("GET", "https://www.google.com/foo", |
| 171 "HTTP/1.1", "200", "OK", kFooResponseBody); | 171 "HTTP/1.1", "200", "OK", kFooResponseBody); |
| 172 AddToCache("GET", "https://www.google.com/bar", | 172 AddToCache("GET", "https://www.google.com/bar", |
| (...skipping 683 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 856 client_->SendSynchronousRequest("/bar"); | 856 client_->SendSynchronousRequest("/bar"); |
| 857 | 857 |
| 858 EXPECT_EQ(QUIC_STREAM_CONNECTION_ERROR, client_->stream_error()); | 858 EXPECT_EQ(QUIC_STREAM_CONNECTION_ERROR, client_->stream_error()); |
| 859 EXPECT_EQ(QUIC_ERROR_MIGRATING_ADDRESS, client_->connection_error()); | 859 EXPECT_EQ(QUIC_ERROR_MIGRATING_ADDRESS, client_->connection_error()); |
| 860 } | 860 } |
| 861 | 861 |
| 862 } // namespace | 862 } // namespace |
| 863 } // namespace test | 863 } // namespace test |
| 864 } // namespace tools | 864 } // namespace tools |
| 865 } // namespace net | 865 } // namespace net |
| OLD | NEW |