Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(424)

Side by Side Diff: net/proxy/proxy_config_service_win_unittest.cc

Issue 10310179: Track sources of proxy settings. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Update copyright Created 8 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698