/external/chromium/chrome/browser/prefs/ |
proxy_prefs_unittest.cc | 12 ProxyPrefs::ProxyMode mode; 13 EXPECT_TRUE(ProxyPrefs::StringToProxyMode("direct", &mode)); 14 EXPECT_EQ(ProxyPrefs::MODE_DIRECT, mode); 15 EXPECT_TRUE(ProxyPrefs::StringToProxyMode("auto_detect", &mode)); 16 EXPECT_EQ(ProxyPrefs::MODE_AUTO_DETECT, mode); 17 EXPECT_TRUE(ProxyPrefs::StringToProxyMode("pac_script", &mode)); 18 EXPECT_EQ(ProxyPrefs::MODE_PAC_SCRIPT, mode); 19 EXPECT_TRUE(ProxyPrefs::StringToProxyMode("system", &mode)); 20 EXPECT_EQ(ProxyPrefs::MODE_SYSTEM, mode); 21 EXPECT_TRUE(ProxyPrefs::StringToProxyMode("fixed_servers", &mode)) [all...] |
proxy_prefs.cc | 10 namespace ProxyPrefs { 23 // with the constants of ProxyPrefs. 24 const char* kProxyModeNames[] = { ProxyPrefs::kDirectProxyModeName, 25 ProxyPrefs::kAutoDetectProxyModeName, 26 ProxyPrefs::kPacScriptProxyModeName, 27 ProxyPrefs::kFixedServersProxyModeName, 28 ProxyPrefs::kSystemProxyModeName }; 32 namespace ProxyPrefs {
|
proxy_config_dictionary.cc | 14 // See ProxyPrefs for possible values and interactions with the other proxy 34 bool ProxyConfigDictionary::GetMode(ProxyPrefs::ProxyMode* out) const { 58 return CreateDictionary(ProxyPrefs::MODE_DIRECT, "", "", ""); 63 return CreateDictionary(ProxyPrefs::MODE_AUTO_DETECT, "", "", ""); 69 return CreateDictionary(ProxyPrefs::MODE_PAC_SCRIPT, pac_url, "", ""); 78 ProxyPrefs::MODE_FIXED_SERVERS, "", proxy_server, bypass_list); 86 return CreateDictionary(ProxyPrefs::MODE_SYSTEM, "", "", ""); 91 ProxyPrefs::ProxyMode mode,
|
proxy_prefs.h | 11 namespace ProxyPrefs { 53 } // namespace ProxyPrefs
|
proxy_config_dictionary_unittest.cc | 13 ProxyPrefs::ProxyMode mode; 25 EXPECT_EQ(ProxyPrefs::MODE_DIRECT, h.mode); 38 EXPECT_EQ(ProxyPrefs::MODE_AUTO_DETECT, h.mode); 51 EXPECT_EQ(ProxyPrefs::MODE_PAC_SCRIPT, h.mode); 66 EXPECT_EQ(ProxyPrefs::MODE_FIXED_SERVERS, h.mode); 80 EXPECT_EQ(ProxyPrefs::MODE_SYSTEM, h.mode);
|
proxy_config_dictionary.h | 32 bool GetMode(ProxyPrefs::ProxyMode* out) const; 46 static DictionaryValue* CreateDictionary(ProxyPrefs::ProxyMode mode,
|
command_line_pref_store_unittest.cc | 28 void VerifyProxyMode(ProxyPrefs::ProxyMode expected_mode) { 33 ProxyPrefs::ProxyMode actual_mode; 65 store->VerifyProxyMode(ProxyPrefs::MODE_DIRECT); 94 store->VerifyProxyMode(ProxyPrefs::MODE_FIXED_SERVERS); 148 store1->VerifyProxyMode(ProxyPrefs::MODE_FIXED_SERVERS); 154 store2->VerifyProxyMode(ProxyPrefs::MODE_PAC_SCRIPT); 160 store3->VerifyProxyMode(ProxyPrefs::MODE_DIRECT);
|
pref_service_unittest.cc | 173 ProxyPrefs::ProxyMode expected_mode) { 174 ProxyPrefs::ProxyMode actual_mode; 213 ProxyPrefs::ProxyMode proxy_mode) { 227 ProxyPrefs::kFixedServersProxyModeName); 241 assertProxyMode(dict, ProxyPrefs::MODE_FIXED_SERVERS); 254 assertProxyMode(dict2, ProxyPrefs::MODE_FIXED_SERVERS); 267 ProxyPrefs::kAutoDetectProxyModeName); 277 assertProxyMode(dict, ProxyPrefs::MODE_FIXED_SERVERS); 291 assertProxyModeWithoutParams(dict2, ProxyPrefs::MODE_AUTO_DETECT); 300 ProxyPrefs::kAutoDetectProxyModeName) [all...] |
/external/chromium/chrome/browser/extensions/ |
extension_proxy_api.cc | 75 ProxyPrefs::ProxyMode mode_enum; 101 ProxyPrefs::ProxyMode mode; 111 ProxyPrefs::ProxyModeToString(mode)); 114 case ProxyPrefs::MODE_DIRECT: 115 case ProxyPrefs::MODE_AUTO_DETECT: 116 case ProxyPrefs::MODE_SYSTEM: 119 case ProxyPrefs::MODE_PAC_SCRIPT: { 129 case ProxyPrefs::MODE_FIXED_SERVERS: { 137 case ProxyPrefs::kModeCount:
|
extension_proxy_apitest.cc | 36 ProxyPrefs::ProxyMode mode; 81 ValidateSettings(ProxyPrefs::MODE_DIRECT, kNoServer, kNoBypass, kNoPac, 95 ValidateSettings(ProxyPrefs::MODE_AUTO_DETECT, kNoServer, kNoBypass, kNoPac, 109 ValidateSettings(ProxyPrefs::MODE_PAC_SCRIPT, kNoServer, kNoBypass, 126 ValidateSettings(ProxyPrefs::MODE_PAC_SCRIPT, kNoServer, kNoBypass, 140 ValidateSettings(ProxyPrefs::MODE_FIXED_SERVERS, 157 ValidateSettings(ProxyPrefs::MODE_SYSTEM, kNoServer, kNoBypass, kNoPac, 171 ValidateSettings(ProxyPrefs::MODE_FIXED_SERVERS, 182 ValidateSettings(ProxyPrefs::MODE_FIXED_SERVERS, 208 ValidateSettings(ProxyPrefs::MODE_FIXED_SERVERS [all...] |
extension_proxy_api_helpers_unittest.cc | 64 ProxyPrefs::ProxyMode mode; 70 ProxyPrefs::ProxyModeToString(ProxyPrefs::MODE_DIRECT)); 72 EXPECT_EQ(ProxyPrefs::MODE_DIRECT, mode); 90 ProxyPrefs::ProxyModeToString(ProxyPrefs::MODE_PAC_SCRIPT)); 115 ProxyPrefs::ProxyModeToString(ProxyPrefs::MODE_PAC_SCRIPT)); 139 ProxyPrefs::ProxyModeToString(ProxyPrefs::MODE_FIXED_SERVERS)) [all...] |
extension_proxy_api_helpers.cc | 61 ProxyPrefs::ProxyMode* out, 68 if (!ProxyPrefs::StringToProxyMode(proxy_mode, out)) { 274 DictionaryValue* CreateProxyConfigDict(ProxyPrefs::ProxyMode mode_enum, 282 case ProxyPrefs::MODE_DIRECT: 285 case ProxyPrefs::MODE_AUTO_DETECT: 288 case ProxyPrefs::MODE_PAC_SCRIPT: { 305 case ProxyPrefs::MODE_FIXED_SERVERS: { 314 case ProxyPrefs::MODE_SYSTEM: 317 case ProxyPrefs::kModeCount: 325 ProxyPrefs::ProxyMode mode [all...] |
extension_proxy_api_helpers.h | 47 ProxyPrefs::ProxyMode* out, 65 DictionaryValue* CreateProxyConfigDict(ProxyPrefs::ProxyMode mode_enum,
|
/external/chromium/chrome/browser/net/ |
pref_proxy_config_service.cc | 110 ProxyPrefs::ProxyMode mode; 117 case ProxyPrefs::MODE_SYSTEM: 120 case ProxyPrefs::MODE_DIRECT: 124 case ProxyPrefs::MODE_AUTO_DETECT: 127 case ProxyPrefs::MODE_PAC_SCRIPT: { 142 case ProxyPrefs::MODE_FIXED_SERVERS: { 157 case ProxyPrefs::kModeCount: {
|
/external/chromium/chrome/browser/policy/ |
configuration_policy_pref_store.cc | 560 mode_value = ProxyPrefs::kDirectProxyModeName; 563 mode_value = ProxyPrefs::kAutoDetectProxyModeName; 579 mode_value = ProxyPrefs::kPacScriptProxyModeName; 581 mode_value = ProxyPrefs::kFixedServersProxyModeName; 584 mode_value = ProxyPrefs::kSystemProxyModeName; 597 if (mode_value == ProxyPrefs::kDirectProxyModeName) { 604 } else if (mode_value == ProxyPrefs::kAutoDetectProxyModeName) { 611 } else if (mode_value == ProxyPrefs::kPacScriptProxyModeName) { 619 } else if (mode_value == ProxyPrefs::kFixedServersProxyModeName) { 626 } else if (mode_value == ProxyPrefs::kSystemProxyModeName) [all...] |
configuration_policy_pref_store_unittest.cc | 267 const ProxyPrefs::ProxyMode& expected_proxy_mode) { 292 ProxyPrefs::ProxyMode mode; 312 ProxyPrefs::MODE_FIXED_SERVERS); 328 ProxyPrefs::MODE_FIXED_SERVERS); 351 VerifyProxyPrefs(*store, "", "", "", ProxyPrefs::MODE_DIRECT); 358 Value::CreateStringValue(ProxyPrefs::kDirectProxyModeName)); 362 VerifyProxyPrefs(*store, "", "", "", ProxyPrefs::MODE_DIRECT); 373 VerifyProxyPrefs(*store, "", "", "", ProxyPrefs::MODE_AUTO_DETECT); 380 Value::CreateStringValue(ProxyPrefs::kAutoDetectProxyModeName)); 384 VerifyProxyPrefs(*store, "", "", "", ProxyPrefs::MODE_AUTO_DETECT) [all...] |
/external/chromium/chrome/browser/chromeos/ |
proxy_config_service_impl.cc | 194 proxy_proto.set_proxy_mode(ProxyPrefs::kDirectProxyModeName); 198 proxy_proto.set_proxy_mode(ProxyPrefs::kAutoDetectProxyModeName); 202 proxy_proto.set_proxy_mode(ProxyPrefs::kPacScriptProxyModeName); 208 proxy_proto.set_proxy_mode(ProxyPrefs::kFixedServersProxyModeName); 214 proxy_proto.set_proxy_mode(ProxyPrefs::kFixedServersProxyModeName); 240 if (mode_string == ProxyPrefs::kDirectProxyModeName) { 242 } else if (mode_string == ProxyPrefs::kAutoDetectProxyModeName) { 244 } else if (mode_string == ProxyPrefs::kPacScriptProxyModeName) { 248 } else if (mode_string == ProxyPrefs::kFixedServersProxyModeName) {
|