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()); |