| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "chrome/browser/policy/configuration_policy_handler_chromeos.h" | 5 #include "chrome/browser/chromeos/policy/configuration_policy_handler_chromeos.h
" |
| 6 | 6 |
| 7 #include "base/prefs/pref_value_map.h" | 7 #include "base/prefs/pref_value_map.h" |
| 8 #include "chrome/browser/policy/policy_error_map.h" | 8 #include "chrome/browser/policy/policy_error_map.h" |
| 9 #include "chrome/browser/policy/policy_map.h" | 9 #include "chrome/browser/policy/policy_map.h" |
| 10 #include "chrome/browser/ui/ash/chrome_launcher_prefs.h" | 10 #include "chrome/browser/ui/ash/chrome_launcher_prefs.h" |
| 11 #include "chrome/common/pref_names.h" | 11 #include "chrome/common/pref_names.h" |
| 12 #include "policy/policy_constants.h" | 12 #include "policy/policy_constants.h" |
| 13 #include "testing/gtest/include/gtest/gtest.h" | 13 #include "testing/gtest/include/gtest/gtest.h" |
| 14 | 14 |
| 15 namespace policy { | 15 namespace policy { |
| (...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 135 list.Append(entry1.DeepCopy()); | 135 list.Append(entry1.DeepCopy()); |
| 136 policy_map.Set(key::kPinnedLauncherApps, POLICY_LEVEL_MANDATORY, | 136 policy_map.Set(key::kPinnedLauncherApps, POLICY_LEVEL_MANDATORY, |
| 137 POLICY_SCOPE_USER, list.DeepCopy()); | 137 POLICY_SCOPE_USER, list.DeepCopy()); |
| 138 prefs.Clear(); | 138 prefs.Clear(); |
| 139 handler.ApplyPolicySettings(policy_map, &prefs); | 139 handler.ApplyPolicySettings(policy_map, &prefs); |
| 140 EXPECT_TRUE(prefs.GetValue(prefs::kPinnedLauncherApps, &value)); | 140 EXPECT_TRUE(prefs.GetValue(prefs::kPinnedLauncherApps, &value)); |
| 141 EXPECT_TRUE(base::Value::Equals(&expected_pinned_apps, value)); | 141 EXPECT_TRUE(base::Value::Equals(&expected_pinned_apps, value)); |
| 142 } | 142 } |
| 143 | 143 |
| 144 } // namespace policy | 144 } // namespace policy |
| OLD | NEW |