Home | History | Annotate | Download | only in prefs

Lines Matching defs:mode

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));
22 EXPECT_EQ(ProxyPrefs::MODE_FIXED_SERVERS, mode);
24 EXPECT_FALSE(ProxyPrefs::StringToProxyMode("monkey", &mode));
36 ProxyPrefs::ProxyMode mode;
37 EXPECT_TRUE(ProxyPrefs::IntToProxyMode(0, &mode));
38 EXPECT_EQ(ProxyPrefs::MODE_DIRECT, mode);
39 EXPECT_TRUE(ProxyPrefs::IntToProxyMode(1, &mode));
40 EXPECT_EQ(ProxyPrefs::MODE_AUTO_DETECT, mode);
41 EXPECT_TRUE(ProxyPrefs::IntToProxyMode(2, &mode));
42 EXPECT_EQ(ProxyPrefs::MODE_PAC_SCRIPT, mode);
43 EXPECT_TRUE(ProxyPrefs::IntToProxyMode(3, &mode));
44 EXPECT_EQ(ProxyPrefs::MODE_FIXED_SERVERS, mode);
45 EXPECT_TRUE(ProxyPrefs::IntToProxyMode(4, &mode));
46 EXPECT_EQ(ProxyPrefs::MODE_SYSTEM, mode);
48 EXPECT_FALSE(ProxyPrefs::IntToProxyMode(-1, &mode));
49 EXPECT_FALSE(ProxyPrefs::IntToProxyMode(ProxyPrefs::kModeCount, &mode));