| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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/proxy/proxy_list.h" | 5 #include "net/proxy/proxy_list.h" |
| 6 | 6 |
| 7 #include <vector> | 7 #include <vector> |
| 8 | 8 |
| 9 #include "net/base/net_errors.h" | 9 #include "net/base/net_errors.h" |
| 10 #include "net/log/net_log_with_source.h" | 10 #include "net/log/net_log_with_source.h" |
| (...skipping 293 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 304 EXPECT_TRUE(retry_info_map["foopy1:80"].try_while_bad); | 304 EXPECT_TRUE(retry_info_map["foopy1:80"].try_while_bad); |
| 305 EXPECT_EQ(base::TimeDelta::FromSeconds(60), | 305 EXPECT_EQ(base::TimeDelta::FromSeconds(60), |
| 306 retry_info_map["foopy1:80"].current_delay); | 306 retry_info_map["foopy1:80"].current_delay); |
| 307 EXPECT_GT(retry_info_map["foopy1:80"].bad_until, | 307 EXPECT_GT(retry_info_map["foopy1:80"].bad_until, |
| 308 base::TimeTicks::Now() + base::TimeDelta::FromSeconds(30)); | 308 base::TimeTicks::Now() + base::TimeDelta::FromSeconds(30)); |
| 309 EXPECT_TRUE(retry_info_map.end() == retry_info_map.find("foopy2:80")); | 309 EXPECT_TRUE(retry_info_map.end() == retry_info_map.find("foopy2:80")); |
| 310 EXPECT_TRUE(retry_info_map.end() == retry_info_map.find("foopy3:80")); | 310 EXPECT_TRUE(retry_info_map.end() == retry_info_map.find("foopy3:80")); |
| 311 } | 311 } |
| 312 } | 312 } |
| 313 | 313 |
| 314 } // namesapce | 314 } // anonymous namespace |
| 315 | 315 |
| 316 } // namespace net | 316 } // namespace net |
| OLD | NEW |