OLD | NEW |
1 // Copyright (c) 2011 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 "net/proxy/proxy_config_service_win.h" | 5 #include "net/proxy/proxy_config_service_win.h" |
6 | 6 |
7 #include "net/base/net_errors.h" | 7 #include "net/base/net_errors.h" |
8 #include "net/proxy/proxy_config.h" | 8 #include "net/proxy/proxy_config.h" |
9 #include "net/proxy/proxy_config_service_common_unittest.h" | 9 #include "net/proxy/proxy_config_service_common_unittest.h" |
10 #include "testing/gtest/include/gtest/gtest.h" | 10 #include "testing/gtest/include/gtest/gtest.h" |
11 | 11 |
(...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
189 }, | 189 }, |
190 }; | 190 }; |
191 | 191 |
192 for (size_t i = 0; i < ARRAYSIZE_UNSAFE(tests); ++i) { | 192 for (size_t i = 0; i < ARRAYSIZE_UNSAFE(tests); ++i) { |
193 ProxyConfig config; | 193 ProxyConfig config; |
194 ProxyConfigServiceWin::SetFromIEConfig(&config, tests[i].ie_config); | 194 ProxyConfigServiceWin::SetFromIEConfig(&config, tests[i].ie_config); |
195 | 195 |
196 EXPECT_EQ(tests[i].auto_detect, config.auto_detect()); | 196 EXPECT_EQ(tests[i].auto_detect, config.auto_detect()); |
197 EXPECT_EQ(tests[i].pac_url, config.pac_url()); | 197 EXPECT_EQ(tests[i].pac_url, config.pac_url()); |
198 EXPECT_TRUE(tests[i].proxy_rules.Matches(config.proxy_rules())); | 198 EXPECT_TRUE(tests[i].proxy_rules.Matches(config.proxy_rules())); |
| 199 EXPECT_EQ(PROXY_CONFIG_SOURCE_SYSTEM, config.source()); |
199 } | 200 } |
200 } | 201 } |
201 | 202 |
202 } // namespace net | 203 } // namespace net |
OLD | NEW |