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/settings/device_settings_provider.h" | 5 #include "chrome/browser/chromeos/settings/device_settings_provider.h" |
6 | 6 |
7 #include <string> | 7 #include <string> |
8 | 8 |
9 #include "base/bind.h" | 9 #include "base/bind.h" |
10 #include "base/callback.h" | 10 #include "base/callback.h" |
11 #include "base/file_util.h" | 11 #include "base/files/file_util.h" |
12 #include "base/path_service.h" | 12 #include "base/path_service.h" |
13 #include "base/test/scoped_path_override.h" | 13 #include "base/test/scoped_path_override.h" |
14 #include "base/values.h" | 14 #include "base/values.h" |
15 #include "chrome/browser/chromeos/login/users/fake_user_manager.h" | 15 #include "chrome/browser/chromeos/login/users/fake_user_manager.h" |
16 #include "chrome/browser/chromeos/ownership/owner_settings_service.h" | 16 #include "chrome/browser/chromeos/ownership/owner_settings_service.h" |
17 #include "chrome/browser/chromeos/ownership/owner_settings_service_factory.h" | 17 #include "chrome/browser/chromeos/ownership/owner_settings_service_factory.h" |
18 #include "chrome/browser/chromeos/policy/device_local_account.h" | 18 #include "chrome/browser/chromeos/policy/device_local_account.h" |
19 #include "chrome/browser/chromeos/policy/proto/chrome_device_policy.pb.h" | 19 #include "chrome/browser/chromeos/policy/proto/chrome_device_policy.pb.h" |
20 #include "chrome/browser/chromeos/settings/device_settings_test_helper.h" | 20 #include "chrome/browser/chromeos/settings/device_settings_test_helper.h" |
21 #include "chrome/common/chrome_paths.h" | 21 #include "chrome/common/chrome_paths.h" |
(...skipping 262 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
284 policy::PolicyBuilder::kFakeUsername); | 284 policy::PolicyBuilder::kFakeUsername); |
285 entry_dict->SetInteger(kAccountsPrefDeviceLocalAccountsKeyType, | 285 entry_dict->SetInteger(kAccountsPrefDeviceLocalAccountsKeyType, |
286 policy::DeviceLocalAccount::TYPE_PUBLIC_SESSION); | 286 policy::DeviceLocalAccount::TYPE_PUBLIC_SESSION); |
287 expected_accounts.Append(entry_dict.release()); | 287 expected_accounts.Append(entry_dict.release()); |
288 const base::Value* actual_accounts = | 288 const base::Value* actual_accounts = |
289 provider_->Get(kAccountsPrefDeviceLocalAccounts); | 289 provider_->Get(kAccountsPrefDeviceLocalAccounts); |
290 EXPECT_TRUE(base::Value::Equals(&expected_accounts, actual_accounts)); | 290 EXPECT_TRUE(base::Value::Equals(&expected_accounts, actual_accounts)); |
291 } | 291 } |
292 | 292 |
293 } // namespace chromeos | 293 } // namespace chromeos |
OLD | NEW |