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

Unified Diff: chrome/browser/chromeos/policy/configuration_policy_handler_chromeos_unittest.cc

Issue 608283003: Remove retail mode. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/chromeos/policy/configuration_policy_handler_chromeos_unittest.cc
diff --git a/chrome/browser/chromeos/policy/configuration_policy_handler_chromeos_unittest.cc b/chrome/browser/chromeos/policy/configuration_policy_handler_chromeos_unittest.cc
index 8ab65175b48276151229170ee9eea84449fdab1f..e0bd7da9e45059d0ab14428494b20956b8a0d21b 100644
--- a/chrome/browser/chromeos/policy/configuration_policy_handler_chromeos_unittest.cc
+++ b/chrome/browser/chromeos/policy/configuration_policy_handler_chromeos_unittest.cc
@@ -321,33 +321,6 @@ TEST(NetworkConfigurationPolicyHandlerTest, Sanitization) {
EXPECT_EQ(std::string::npos, sanitized_onc.find("pass"));
}
-TEST(PinnedLauncherAppsPolicyHandler, PrefTranslation) {
- base::ListValue list;
- PolicyMap policy_map;
- PrefValueMap prefs;
- base::ListValue expected_pinned_apps;
- base::Value* value = NULL;
- PinnedLauncherAppsPolicyHandler handler;
-
- policy_map.Set(key::kPinnedLauncherApps, POLICY_LEVEL_MANDATORY,
- POLICY_SCOPE_USER, list.DeepCopy(), NULL);
- handler.ApplyPolicySettings(policy_map, &prefs);
- EXPECT_TRUE(prefs.GetValue(prefs::kPinnedLauncherApps, &value));
- EXPECT_TRUE(base::Value::Equals(&expected_pinned_apps, value));
-
- base::StringValue entry1("abcdefghijklmnopabcdefghijklmnop");
- base::DictionaryValue* entry1_dict = new base::DictionaryValue();
- entry1_dict->Set(ash::kPinnedAppsPrefAppIDPath, entry1.DeepCopy());
- expected_pinned_apps.Append(entry1_dict);
- list.Append(entry1.DeepCopy());
- policy_map.Set(key::kPinnedLauncherApps, POLICY_LEVEL_MANDATORY,
- POLICY_SCOPE_USER, list.DeepCopy(), NULL);
- prefs.Clear();
- handler.ApplyPolicySettings(policy_map, &prefs);
- EXPECT_TRUE(prefs.GetValue(prefs::kPinnedLauncherApps, &value));
- EXPECT_TRUE(base::Value::Equals(&expected_pinned_apps, value));
-}
-
TEST_F(LoginScreenPowerManagementPolicyHandlerTest, Empty) {
PolicyMap policy_map;
LoginScreenPowerManagementPolicyHandler handler(chrome_schema_);

Powered by Google App Engine
This is Rietveld 408576698