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

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

Issue 14306004: Put Kiosk App parameters into device settings. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase. Created 7 years, 8 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/device_local_account_policy_service_unittest.cc
diff --git a/chrome/browser/chromeos/policy/device_local_account_policy_service_unittest.cc b/chrome/browser/chromeos/policy/device_local_account_policy_service_unittest.cc
index a329bc0fbf1e228670cac166b3192f856daf20b2..3c3c20ae34b2f329abd1bf41b815a28677e9c433 100644
--- a/chrome/browser/chromeos/policy/device_local_account_policy_service_unittest.cc
+++ b/chrome/browser/chromeos/policy/device_local_account_policy_service_unittest.cc
@@ -82,8 +82,11 @@ class DeviceLocalAccountPolicyServiceTest
PolicyBuilder::kFakeUsername);
device_local_account_policy_.Build();
- device_policy_.payload().mutable_device_local_accounts()->add_account()->
- set_id(PolicyBuilder::kFakeUsername);
+ em::DeviceLocalAccountInfoProto* account =
+ device_policy_.payload().mutable_device_local_accounts()->add_account();
+ account->set_account_id(PolicyBuilder::kFakeUsername);
+ account->set_type(
+ em::DeviceLocalAccountInfoProto::ACCOUNT_TYPE_PUBLIC_SESSION);
device_policy_.Build();
service_.AddObserver(&service_observer_);
@@ -261,8 +264,11 @@ TEST_F(DeviceLocalAccountPolicyServiceTest, DuplicateAccounts) {
ASSERT_TRUE(broker);
// Add a second entry with a duplicate account name to device policy.
- device_policy_.payload().mutable_device_local_accounts()->add_account()->
- set_id(PolicyBuilder::kFakeUsername);
+ em::DeviceLocalAccountInfoProto* account =
+ device_policy_.payload().mutable_device_local_accounts()->add_account();
+ account->set_account_id(PolicyBuilder::kFakeUsername);
+ account->set_type(
+ em::DeviceLocalAccountInfoProto::ACCOUNT_TYPE_PUBLIC_SESSION);
device_policy_.Build();
device_settings_test_helper_.set_device_local_account_policy_blob(
PolicyBuilder::kFakeUsername, device_local_account_policy_.GetBlob());

Powered by Google App Engine
This is Rietveld 408576698