Home
last modified time | relevance | path

Searched refs:ProxyPrefs (Results 1 – 17 of 17) sorted by relevance

/external/chromium/chrome/browser/prefs/
Dproxy_prefs_unittest.cc12 ProxyPrefs::ProxyMode mode; in TEST()
13 EXPECT_TRUE(ProxyPrefs::StringToProxyMode("direct", &mode)); in TEST()
14 EXPECT_EQ(ProxyPrefs::MODE_DIRECT, mode); in TEST()
15 EXPECT_TRUE(ProxyPrefs::StringToProxyMode("auto_detect", &mode)); in TEST()
16 EXPECT_EQ(ProxyPrefs::MODE_AUTO_DETECT, mode); in TEST()
17 EXPECT_TRUE(ProxyPrefs::StringToProxyMode("pac_script", &mode)); in TEST()
18 EXPECT_EQ(ProxyPrefs::MODE_PAC_SCRIPT, mode); in TEST()
19 EXPECT_TRUE(ProxyPrefs::StringToProxyMode("system", &mode)); in TEST()
20 EXPECT_EQ(ProxyPrefs::MODE_SYSTEM, mode); in TEST()
21 EXPECT_TRUE(ProxyPrefs::StringToProxyMode("fixed_servers", &mode)); in TEST()
[all …]
Dproxy_prefs.cc10 namespace ProxyPrefs { namespace
24 const char* kProxyModeNames[] = { ProxyPrefs::kDirectProxyModeName,
25 ProxyPrefs::kAutoDetectProxyModeName,
26 ProxyPrefs::kPacScriptProxyModeName,
27 ProxyPrefs::kFixedServersProxyModeName,
28 ProxyPrefs::kSystemProxyModeName };
32 namespace ProxyPrefs { namespace
Dproxy_config_dictionary.cc34 bool ProxyConfigDictionary::GetMode(ProxyPrefs::ProxyMode* out) const { in GetMode()
58 return CreateDictionary(ProxyPrefs::MODE_DIRECT, "", "", ""); in CreateDirect()
63 return CreateDictionary(ProxyPrefs::MODE_AUTO_DETECT, "", "", ""); in CreateAutoDetect()
69 return CreateDictionary(ProxyPrefs::MODE_PAC_SCRIPT, pac_url, "", ""); in CreatePacScript()
78 ProxyPrefs::MODE_FIXED_SERVERS, "", proxy_server, bypass_list); in CreateFixedServers()
86 return CreateDictionary(ProxyPrefs::MODE_SYSTEM, "", "", ""); in CreateSystem()
91 ProxyPrefs::ProxyMode mode, in CreateDictionary()
Dproxy_config_dictionary_unittest.cc13 ProxyPrefs::ProxyMode mode;
25 EXPECT_EQ(ProxyPrefs::MODE_DIRECT, h.mode); in TEST()
38 EXPECT_EQ(ProxyPrefs::MODE_AUTO_DETECT, h.mode); in TEST()
51 EXPECT_EQ(ProxyPrefs::MODE_PAC_SCRIPT, h.mode); in TEST()
66 EXPECT_EQ(ProxyPrefs::MODE_FIXED_SERVERS, h.mode); in TEST()
80 EXPECT_EQ(ProxyPrefs::MODE_SYSTEM, h.mode); in TEST()
Dcommand_line_pref_store_unittest.cc28 void VerifyProxyMode(ProxyPrefs::ProxyMode expected_mode) { in VerifyProxyMode()
33 ProxyPrefs::ProxyMode actual_mode; in VerifyProxyMode()
65 store->VerifyProxyMode(ProxyPrefs::MODE_DIRECT); in TEST()
94 store->VerifyProxyMode(ProxyPrefs::MODE_FIXED_SERVERS); in TEST()
148 store1->VerifyProxyMode(ProxyPrefs::MODE_FIXED_SERVERS); in TEST()
154 store2->VerifyProxyMode(ProxyPrefs::MODE_PAC_SCRIPT); in TEST()
160 store3->VerifyProxyMode(ProxyPrefs::MODE_DIRECT); in TEST()
Dpref_service_unittest.cc173 ProxyPrefs::ProxyMode expected_mode) { in assertProxyMode()
174 ProxyPrefs::ProxyMode actual_mode; in assertProxyMode()
213 ProxyPrefs::ProxyMode proxy_mode) { in assertProxyModeWithoutParams()
227 ProxyPrefs::kFixedServersProxyModeName); in TEST()
241 assertProxyMode(dict, ProxyPrefs::MODE_FIXED_SERVERS); in TEST()
254 assertProxyMode(dict2, ProxyPrefs::MODE_FIXED_SERVERS); in TEST()
267 ProxyPrefs::kAutoDetectProxyModeName); in TEST()
277 assertProxyMode(dict, ProxyPrefs::MODE_FIXED_SERVERS); in TEST()
291 assertProxyModeWithoutParams(dict2, ProxyPrefs::MODE_AUTO_DETECT); in TEST()
300 ProxyPrefs::kAutoDetectProxyModeName); in TEST()
[all …]
Dproxy_config_dictionary.h32 bool GetMode(ProxyPrefs::ProxyMode* out) const;
46 static DictionaryValue* CreateDictionary(ProxyPrefs::ProxyMode mode,
Dproxy_prefs.h11 namespace ProxyPrefs {
/external/chromium/chrome/browser/extensions/
Dextension_proxy_api.cc75 ProxyPrefs::ProxyMode mode_enum; in ExtensionToBrowserPref()
101 ProxyPrefs::ProxyMode mode; in BrowserToExtensionPref()
111 ProxyPrefs::ProxyModeToString(mode)); in BrowserToExtensionPref()
114 case ProxyPrefs::MODE_DIRECT: in BrowserToExtensionPref()
115 case ProxyPrefs::MODE_AUTO_DETECT: in BrowserToExtensionPref()
116 case ProxyPrefs::MODE_SYSTEM: in BrowserToExtensionPref()
119 case ProxyPrefs::MODE_PAC_SCRIPT: { in BrowserToExtensionPref()
129 case ProxyPrefs::MODE_FIXED_SERVERS: { in BrowserToExtensionPref()
137 case ProxyPrefs::kModeCount: in BrowserToExtensionPref()
Dextension_proxy_apitest.cc36 ProxyPrefs::ProxyMode mode; in ValidateSettings()
81 ValidateSettings(ProxyPrefs::MODE_DIRECT, kNoServer, kNoBypass, kNoPac, in IN_PROC_BROWSER_TEST_F()
95 ValidateSettings(ProxyPrefs::MODE_AUTO_DETECT, kNoServer, kNoBypass, kNoPac, in IN_PROC_BROWSER_TEST_F()
109 ValidateSettings(ProxyPrefs::MODE_PAC_SCRIPT, kNoServer, kNoBypass, in IN_PROC_BROWSER_TEST_F()
126 ValidateSettings(ProxyPrefs::MODE_PAC_SCRIPT, kNoServer, kNoBypass, in IN_PROC_BROWSER_TEST_F()
140 ValidateSettings(ProxyPrefs::MODE_FIXED_SERVERS, in IN_PROC_BROWSER_TEST_F()
157 ValidateSettings(ProxyPrefs::MODE_SYSTEM, kNoServer, kNoBypass, kNoPac, in IN_PROC_BROWSER_TEST_F()
171 ValidateSettings(ProxyPrefs::MODE_FIXED_SERVERS, in IN_PROC_BROWSER_TEST_F()
182 ValidateSettings(ProxyPrefs::MODE_FIXED_SERVERS, in IN_PROC_BROWSER_TEST_F()
208 ValidateSettings(ProxyPrefs::MODE_FIXED_SERVERS, in IN_PROC_BROWSER_TEST_F()
[all …]
Dextension_proxy_api_helpers_unittest.cc64 ProxyPrefs::ProxyMode mode; in TEST()
70 ProxyPrefs::ProxyModeToString(ProxyPrefs::MODE_DIRECT)); in TEST()
72 EXPECT_EQ(ProxyPrefs::MODE_DIRECT, mode); in TEST()
90 ProxyPrefs::ProxyModeToString(ProxyPrefs::MODE_PAC_SCRIPT)); in TEST()
115 ProxyPrefs::ProxyModeToString(ProxyPrefs::MODE_PAC_SCRIPT)); in TEST()
139 ProxyPrefs::ProxyModeToString(ProxyPrefs::MODE_FIXED_SERVERS)); in TEST()
166 ProxyPrefs::ProxyModeToString(ProxyPrefs::MODE_FIXED_SERVERS)); in TEST()
192 CreateProxyConfigDict(ProxyPrefs::MODE_DIRECT, "", "", "", "", &error)); in TEST()
198 CreateProxyConfigDict(ProxyPrefs::MODE_AUTO_DETECT, "", "", "", "", in TEST()
205 CreateProxyConfigDict(ProxyPrefs::MODE_PAC_SCRIPT, kSamplePacScriptUrl, in TEST()
[all …]
Dextension_proxy_api_helpers.cc61 ProxyPrefs::ProxyMode* out, in GetProxyModeFromExtensionPref()
68 if (!ProxyPrefs::StringToProxyMode(proxy_mode, out)) { in GetProxyModeFromExtensionPref()
274 DictionaryValue* CreateProxyConfigDict(ProxyPrefs::ProxyMode mode_enum, in CreateProxyConfigDict()
282 case ProxyPrefs::MODE_DIRECT: in CreateProxyConfigDict()
285 case ProxyPrefs::MODE_AUTO_DETECT: in CreateProxyConfigDict()
288 case ProxyPrefs::MODE_PAC_SCRIPT: { in CreateProxyConfigDict()
305 case ProxyPrefs::MODE_FIXED_SERVERS: { in CreateProxyConfigDict()
314 case ProxyPrefs::MODE_SYSTEM: in CreateProxyConfigDict()
317 case ProxyPrefs::kModeCount: in CreateProxyConfigDict()
325 ProxyPrefs::ProxyMode mode; in CreateProxyRulesDict()
[all …]
Dextension_proxy_api_helpers.h47 ProxyPrefs::ProxyMode* out,
65 DictionaryValue* CreateProxyConfigDict(ProxyPrefs::ProxyMode mode_enum,
/external/chromium/chrome/browser/policy/
Dconfiguration_policy_pref_store.cc560 mode_value = ProxyPrefs::kDirectProxyModeName; in CheckProxySettings()
563 mode_value = ProxyPrefs::kAutoDetectProxyModeName; in CheckProxySettings()
579 mode_value = ProxyPrefs::kPacScriptProxyModeName; in CheckProxySettings()
581 mode_value = ProxyPrefs::kFixedServersProxyModeName; in CheckProxySettings()
584 mode_value = ProxyPrefs::kSystemProxyModeName; in CheckProxySettings()
597 if (mode_value == ProxyPrefs::kDirectProxyModeName) { in CheckProxySettings()
604 } else if (mode_value == ProxyPrefs::kAutoDetectProxyModeName) { in CheckProxySettings()
611 } else if (mode_value == ProxyPrefs::kPacScriptProxyModeName) { in CheckProxySettings()
619 } else if (mode_value == ProxyPrefs::kFixedServersProxyModeName) { in CheckProxySettings()
626 } else if (mode_value == ProxyPrefs::kSystemProxyModeName) { in CheckProxySettings()
[all …]
Dconfiguration_policy_pref_store_unittest.cc267 const ProxyPrefs::ProxyMode& expected_proxy_mode) { in VerifyProxyPrefs()
292 ProxyPrefs::ProxyMode mode; in VerifyProxyPrefs()
312 ProxyPrefs::MODE_FIXED_SERVERS); in TEST_F()
328 ProxyPrefs::MODE_FIXED_SERVERS); in TEST_F()
351 VerifyProxyPrefs(*store, "", "", "", ProxyPrefs::MODE_DIRECT); in TEST_F()
358 Value::CreateStringValue(ProxyPrefs::kDirectProxyModeName)); in TEST_F()
362 VerifyProxyPrefs(*store, "", "", "", ProxyPrefs::MODE_DIRECT); in TEST_F()
373 VerifyProxyPrefs(*store, "", "", "", ProxyPrefs::MODE_AUTO_DETECT); in TEST_F()
380 Value::CreateStringValue(ProxyPrefs::kAutoDetectProxyModeName)); in TEST_F()
384 VerifyProxyPrefs(*store, "", "", "", ProxyPrefs::MODE_AUTO_DETECT); in TEST_F()
[all …]
/external/chromium/chrome/browser/net/
Dpref_proxy_config_service.cc110 ProxyPrefs::ProxyMode mode; in PrefConfigToNetConfig()
117 case ProxyPrefs::MODE_SYSTEM: in PrefConfigToNetConfig()
120 case ProxyPrefs::MODE_DIRECT: in PrefConfigToNetConfig()
124 case ProxyPrefs::MODE_AUTO_DETECT: in PrefConfigToNetConfig()
127 case ProxyPrefs::MODE_PAC_SCRIPT: { in PrefConfigToNetConfig()
142 case ProxyPrefs::MODE_FIXED_SERVERS: { in PrefConfigToNetConfig()
157 case ProxyPrefs::kModeCount: { in PrefConfigToNetConfig()
/external/chromium/chrome/browser/chromeos/
Dproxy_config_service_impl.cc194 proxy_proto.set_proxy_mode(ProxyPrefs::kDirectProxyModeName); in Serialize()
198 proxy_proto.set_proxy_mode(ProxyPrefs::kAutoDetectProxyModeName); in Serialize()
202 proxy_proto.set_proxy_mode(ProxyPrefs::kPacScriptProxyModeName); in Serialize()
208 proxy_proto.set_proxy_mode(ProxyPrefs::kFixedServersProxyModeName); in Serialize()
214 proxy_proto.set_proxy_mode(ProxyPrefs::kFixedServersProxyModeName); in Serialize()
240 if (mode_string == ProxyPrefs::kDirectProxyModeName) { in Deserialize()
242 } else if (mode_string == ProxyPrefs::kAutoDetectProxyModeName) { in Deserialize()
244 } else if (mode_string == ProxyPrefs::kPacScriptProxyModeName) { in Deserialize()
248 } else if (mode_string == ProxyPrefs::kFixedServersProxyModeName) { in Deserialize()