| 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 |
| 7 #include "net/proxy/proxy_server.h" |
| 6 #include "testing/gtest/include/gtest/gtest.h" | 8 #include "testing/gtest/include/gtest/gtest.h" |
| 7 | 9 |
| 8 namespace net { | 10 namespace net { |
| 9 | 11 |
| 10 namespace { | 12 namespace { |
| 11 | 13 |
| 12 // Test parsing from a PAC string. | 14 // Test parsing from a PAC string. |
| 13 TEST(ProxyListTest, SetFromPacString) { | 15 TEST(ProxyListTest, SetFromPacString) { |
| 14 const struct { | 16 const struct { |
| 15 const char* pac_input; | 17 const char* pac_input; |
| (...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 136 list.DeprioritizeBadProxies(retry_info_map); | 138 list.DeprioritizeBadProxies(retry_info_map); |
| 137 | 139 |
| 138 EXPECT_EQ("PROXY foopy1:80;PROXY foopy2:80;PROXY foopy3:80", | 140 EXPECT_EQ("PROXY foopy1:80;PROXY foopy2:80;PROXY foopy3:80", |
| 139 list.ToPacString()); | 141 list.ToPacString()); |
| 140 } | 142 } |
| 141 } | 143 } |
| 142 | 144 |
| 143 } // namesapce | 145 } // namesapce |
| 144 | 146 |
| 145 } // namespace net | 147 } // namespace net |
| OLD | NEW |