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

Side by Side Diff: chrome/browser/chromeos/cros_settings_unittest.cc

Issue 9365078: Rename the ephemeral_users field in the device policy protobuf (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Fixed reference to Chrome OS bug. Created 8 years, 10 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 unified diff | Download patch
OLDNEW
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
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
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/cros_settings_names.cc ('k') | chrome/browser/chromeos/device_settings_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698