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

Side by Side Diff: chrome/browser/net/chrome_url_request_context_unittest.cc

Issue 3203008: Move prefs-related files under chrome/browser/ into a prefs/ subdir. (Closed) Base URL: http://src.chromium.org/git/chromium.git
Patch Set: Created 10 years, 3 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
OLDNEW
1 // Copyright (c) 2006-2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2009 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 "chrome/browser/net/chrome_url_request_context.h" 5 #include "chrome/browser/net/chrome_url_request_context.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "base/format_macros.h" 8 #include "base/format_macros.h"
9 #include "chrome/browser/policy/configuration_policy_pref_store.h" 9 #include "chrome/browser/policy/configuration_policy_pref_store.h"
10 #include "chrome/browser/pref_value_store.h" 10 #include "chrome/browser/prefs/pref_value_store.h"
11 #include "chrome/common/chrome_switches.h" 11 #include "chrome/common/chrome_switches.h"
12 #include "chrome/test/testing_pref_service.h" 12 #include "chrome/test/testing_pref_service.h"
13 #include "net/proxy/proxy_config.h" 13 #include "net/proxy/proxy_config.h"
14 #include "net/proxy/proxy_config_service_common_unittest.h" 14 #include "net/proxy/proxy_config_service_common_unittest.h"
15 #include "testing/gtest/include/gtest/gtest.h" 15 #include "testing/gtest/include/gtest/gtest.h"
16 16
17 // Builds an identifier for each test in an array. 17 // Builds an identifier for each test in an array.
18 #define TEST_DESC(desc) StringPrintf("at line %d <%s>", __LINE__, desc) 18 #define TEST_DESC(desc) StringPrintf("at line %d <%s>", __LINE__, desc)
19 19
20 TEST(ChromeURLRequestContextTest, CreateProxyConfigTest) { 20 TEST(ChromeURLRequestContextTest, CreateProxyConfigTest) {
(...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after
168 EXPECT_TRUE(config == NULL); 168 EXPECT_TRUE(config == NULL);
169 } else { 169 } else {
170 EXPECT_TRUE(config != NULL); 170 EXPECT_TRUE(config != NULL);
171 EXPECT_EQ(tests[i].auto_detect, config->auto_detect()); 171 EXPECT_EQ(tests[i].auto_detect, config->auto_detect());
172 EXPECT_EQ(tests[i].pac_url, config->pac_url()); 172 EXPECT_EQ(tests[i].pac_url, config->pac_url());
173 EXPECT_TRUE(tests[i].proxy_rules.Matches(config->proxy_rules())); 173 EXPECT_TRUE(tests[i].proxy_rules.Matches(config->proxy_rules()));
174 } 174 }
175 } 175 }
176 } 176 }
177 177
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698