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

Unified Diff: chrome/browser/net/proxy_policy_handler_unittest.cc

Issue 1296663003: Componentize proxy code from chrome/browser/net (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: updating for win p/f Created 5 years, 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/net/proxy_policy_handler.cc ('k') | chrome/browser/net/proxy_service_factory.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/net/proxy_policy_handler_unittest.cc
diff --git a/chrome/browser/net/proxy_policy_handler_unittest.cc b/chrome/browser/net/proxy_policy_handler_unittest.cc
index 8e2737ff47f1667cdb8e506b992daaec7ef71ed5..570bf01dc45a97169b7ada77ea17aa8f20d4b135 100644
--- a/chrome/browser/net/proxy_policy_handler_unittest.cc
+++ b/chrome/browser/net/proxy_policy_handler_unittest.cc
@@ -7,12 +7,11 @@
#include "base/memory/scoped_ptr.h"
#include "base/values.h"
#include "chrome/browser/net/proxy_policy_handler.h"
-#include "chrome/common/pref_names.h"
#include "components/policy/core/browser/configuration_policy_pref_store.h"
#include "components/policy/core/browser/configuration_policy_pref_store_test.h"
#include "components/policy/core/common/policy_service_impl.h"
#include "components/proxy_config/proxy_config_dictionary.h"
-#include "components/proxy_config/proxy_prefs.h"
+#include "components/proxy_config/proxy_config_pref_names.h"
#include "policy/policy_constants.h"
#include "testing/gtest/include/gtest/gtest.h"
@@ -43,7 +42,7 @@ class ProxyPolicyHandlerTest
const std::string& expected_proxy_bypass_list,
const ProxyPrefs::ProxyMode& expected_proxy_mode) {
const base::Value* value = NULL;
- ASSERT_TRUE(store_->GetValue(prefs::kProxy, &value));
+ ASSERT_TRUE(store_->GetValue(proxy_config::prefs::kProxy, &value));
ASSERT_EQ(base::Value::TYPE_DICTIONARY, value->GetType());
ProxyConfigDictionary dict(
static_cast<const base::DictionaryValue*>(value));
@@ -138,7 +137,7 @@ TEST_F(ProxyPolicyHandlerTest, ManualOptionsInvalid) {
UpdateProviderPolicy(policy);
const base::Value* value = NULL;
- EXPECT_FALSE(store_->GetValue(prefs::kProxy, &value));
+ EXPECT_FALSE(store_->GetValue(proxy_config::prefs::kProxy, &value));
}
TEST_F(ProxyPolicyHandlerTest, NoProxyServerMode) {
@@ -222,7 +221,7 @@ TEST_F(ProxyPolicyHandlerTest, PacScriptProxyModeInvalid) {
NULL);
UpdateProviderPolicy(policy);
const base::Value* value = NULL;
- EXPECT_FALSE(store_->GetValue(prefs::kProxy, &value));
+ EXPECT_FALSE(store_->GetValue(proxy_config::prefs::kProxy, &value));
}
// Regression test for http://crbug.com/78016, CPanel returns empty strings
@@ -322,7 +321,7 @@ TEST_F(ProxyPolicyHandlerTest, ProxyInvalid) {
NULL);
UpdateProviderPolicy(policy);
const base::Value* value = NULL;
- EXPECT_FALSE(store_->GetValue(prefs::kProxy, &value));
+ EXPECT_FALSE(store_->GetValue(proxy_config::prefs::kProxy, &value));
}
}
« no previous file with comments | « chrome/browser/net/proxy_policy_handler.cc ('k') | chrome/browser/net/proxy_service_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698