summaryrefslogtreecommitdiffstats
path: root/chrome/browser/policy/device_policy_cache_unittest.cc
diff options
context:
space:
mode:
authorpastarmovj@chromium.org <pastarmovj@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-02-24 13:04:04 +0000
committerpastarmovj@chromium.org <pastarmovj@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-02-24 13:04:04 +0000
commitd597999963e1cf2a90986c5d7b074894efaace41 (patch)
tree58cd10a8cd0fb014264d1d37bfeebbf6db534e1f /chrome/browser/policy/device_policy_cache_unittest.cc
parent1e8f0ec2da72d24ad471123fd83d2bbdd3fbf52d (diff)
downloadchromium_src-d597999963e1cf2a90986c5d7b074894efaace41.zip
chromium_src-d597999963e1cf2a90986c5d7b074894efaace41.tar.gz
chromium_src-d597999963e1cf2a90986c5d7b074894efaace41.tar.bz2
Add support for kiosk mode on the client. Make sure the settings are written in the lockbox.
Propagates the registration mode through the policy subsystem and lock it down in the lockbox. Provides interface to query the values using the EnterpriseInstallAttributes class. BUG=chromium-os:26246 TEST=unit_tests: *Enterprise*,*Policy* Review URL: https://chromiumcodereview.appspot.com/9403010 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@123471 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/policy/device_policy_cache_unittest.cc')
-rw-r--r--chrome/browser/policy/device_policy_cache_unittest.cc5
1 files changed, 4 insertions, 1 deletions
diff --git a/chrome/browser/policy/device_policy_cache_unittest.cc b/chrome/browser/policy/device_policy_cache_unittest.cc
index 775fe05..b438cda 100644
--- a/chrome/browser/policy/device_policy_cache_unittest.cc
+++ b/chrome/browser/policy/device_policy_cache_unittest.cc
@@ -91,7 +91,10 @@ class DevicePolicyCacheTest : public testing::Test {
void MakeEnterpriseDevice(const char* registration_user) {
ASSERT_EQ(EnterpriseInstallAttributes::LOCK_SUCCESS,
- install_attributes_.LockDevice(registration_user));
+ install_attributes_.LockDevice(
+ registration_user,
+ DEVICE_MODE_ENTERPRISE,
+ std::string()));
}
const Value* GetPolicy(const char* policy_name) {