| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 | 5 |
| 6 #include <stdint.h> | 6 #include <stdint.h> |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 #include <string> | 9 #include <string> |
| 10 #include <utility> | 10 #include <utility> |
| 11 #include <vector> | 11 #include <vector> |
| 12 | 12 |
| 13 #include "base/command_line.h" | 13 #include "base/command_line.h" |
| 14 #include "base/files/file_path.h" | 14 #include "base/files/file_path.h" |
| 15 #include "base/files/file_util.h" | 15 #include "base/files/file_util.h" |
| 16 #include "base/macros.h" | 16 #include "base/macros.h" |
| 17 #include "base/memory/ptr_util.h" | 17 #include "base/memory/ptr_util.h" |
| 18 #include "base/message_loop/message_loop.h" | 18 #include "base/message_loop/message_loop.h" |
| 19 #include "base/run_loop.h" | 19 #include "base/run_loop.h" |
| 20 #include "base/strings/string_util.h" | 20 #include "base/strings/string_util.h" |
| 21 #include "base/strings/stringprintf.h" | |
| 22 #include "chrome/browser/chromeos/login/auth/chrome_cryptohome_authenticator.h" | 21 #include "chrome/browser/chromeos/login/auth/chrome_cryptohome_authenticator.h" |
| 23 #include "chrome/browser/chromeos/login/users/fake_chrome_user_manager.h" | 22 #include "chrome/browser/chromeos/login/users/fake_chrome_user_manager.h" |
| 24 #include "chrome/browser/chromeos/login/users/scoped_user_manager_enabler.h" | 23 #include "chrome/browser/chromeos/login/users/scoped_user_manager_enabler.h" |
| 25 #include "chrome/browser/chromeos/ownership/owner_settings_service_chromeos.h" | 24 #include "chrome/browser/chromeos/ownership/owner_settings_service_chromeos.h" |
| 26 #include "chrome/browser/chromeos/ownership/owner_settings_service_chromeos_fact
ory.h" | 25 #include "chrome/browser/chromeos/ownership/owner_settings_service_chromeos_fact
ory.h" |
| 27 #include "chrome/browser/chromeos/profiles/profile_helper.h" | 26 #include "chrome/browser/chromeos/profiles/profile_helper.h" |
| 28 #include "chrome/browser/chromeos/settings/cros_settings.h" | 27 #include "chrome/browser/chromeos/settings/cros_settings.h" |
| 29 #include "chrome/browser/chromeos/settings/device_settings_test_helper.h" | 28 #include "chrome/browser/chromeos/settings/device_settings_test_helper.h" |
| 30 #include "chrome/browser/chromeos/settings/scoped_cros_settings_test_helper.h" | 29 #include "chrome/browser/chromeos/settings/scoped_cros_settings_test_helper.h" |
| 31 #include "chrome/test/base/testing_browser_process.h" | 30 #include "chrome/test/base/testing_browser_process.h" |
| (...skipping 751 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 783 // pre-hashed key was used to create the cryptohome but without the required | 782 // pre-hashed key was used to create the cryptohome but without the required |
| 784 // salt. | 783 // salt. |
| 785 ExpectGetKeyDataExCall(base::MakeUnique<int64_t>(Key::KEY_TYPE_SALTED_SHA256), | 784 ExpectGetKeyDataExCall(base::MakeUnique<int64_t>(Key::KEY_TYPE_SALTED_SHA256), |
| 786 std::unique_ptr<std::string>()); | 785 std::unique_ptr<std::string>()); |
| 787 | 786 |
| 788 auth_->AuthenticateToLogin(NULL, user_context_); | 787 auth_->AuthenticateToLogin(NULL, user_context_); |
| 789 base::RunLoop().Run(); | 788 base::RunLoop().Run(); |
| 790 } | 789 } |
| 791 | 790 |
| 792 } // namespace chromeos | 791 } // namespace chromeos |
| OLD | NEW |