| 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/chromeos/login/signed_settings.h" | 5 #include "chrome/browser/chromeos/login/signed_settings.h" |
| 6 | 6 |
| 7 #include <map> | 7 #include <map> |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/bind.h" | 10 #include "base/bind.h" |
| (...skipping 207 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 218 FetchPref(kAccountsPrefAllowNewUser); | 218 FetchPref(kAccountsPrefAllowNewUser); |
| 219 } | 219 } |
| 220 | 220 |
| 221 TEST_F(CrosSettingsTest, SetOwner) { | 221 TEST_F(CrosSettingsTest, SetOwner) { |
| 222 base::StringValue hacky_owner("h@xxor"); | 222 base::StringValue hacky_owner("h@xxor"); |
| 223 AddExpectation(kDeviceOwner, base::Value::CreateStringValue("h@xxor")); | 223 AddExpectation(kDeviceOwner, base::Value::CreateStringValue("h@xxor")); |
| 224 SetPref(kDeviceOwner, &hacky_owner); | 224 SetPref(kDeviceOwner, &hacky_owner); |
| 225 FetchPref(kDeviceOwner); | 225 FetchPref(kDeviceOwner); |
| 226 } | 226 } |
| 227 | 227 |
| 228 TEST_F(CrosSettingsTest, SetEphemeralUsers) { | 228 TEST_F(CrosSettingsTest, SetEphemeralUsersEnabled) { |
| 229 base::FundamentalValue ephemeral_users(true); | 229 base::FundamentalValue ephemeral_users_enabled(true); |
| 230 AddExpectation(kAccountsPrefEphemeralUsers, | 230 AddExpectation(kAccountsPrefEphemeralUsersEnabled, |
| 231 base::Value::CreateBooleanValue(true)); | 231 base::Value::CreateBooleanValue(true)); |
| 232 SetPref(kAccountsPrefEphemeralUsers, &ephemeral_users); | 232 SetPref(kAccountsPrefEphemeralUsersEnabled, &ephemeral_users_enabled); |
| 233 FetchPref(kAccountsPrefEphemeralUsers); | 233 FetchPref(kAccountsPrefEphemeralUsersEnabled); |
| 234 } | 234 } |
| 235 | 235 |
| 236 } // namespace chromeos | 236 } // namespace chromeos |
| OLD | NEW |