OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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/signin/easy_unlock_service.h" | 5 #include "chrome/browser/signin/easy_unlock_service.h" |
6 | 6 |
7 #include <stddef.h> | 7 #include <stddef.h> |
8 | 8 |
9 #include <map> | 9 #include <map> |
10 #include <memory> | 10 #include <memory> |
11 #include <string> | 11 #include <string> |
12 #include <utility> | 12 #include <utility> |
13 | 13 |
14 #include "base/macros.h" | 14 #include "base/macros.h" |
15 #include "base/run_loop.h" | 15 #include "base/run_loop.h" |
16 #include "base/values.h" | 16 #include "base/values.h" |
17 #include "chrome/browser/chromeos/login/users/mock_user_manager.h" | 17 #include "chrome/browser/chromeos/login/users/mock_user_manager.h" |
18 #include "chrome/browser/chromeos/login/users/scoped_user_manager_enabler.h" | 18 #include "chrome/browser/chromeos/login/users/scoped_user_manager_enabler.h" |
19 #include "chrome/browser/chromeos/profiles/profile_helper.h" | 19 #include "chrome/browser/chromeos/profiles/profile_helper.h" |
20 #include "chrome/browser/signin/easy_unlock_app_manager.h" | 20 #include "chrome/browser/signin/easy_unlock_app_manager.h" |
21 #include "chrome/browser/signin/easy_unlock_service_factory.h" | 21 #include "chrome/browser/signin/easy_unlock_service_factory.h" |
22 #include "chrome/browser/signin/easy_unlock_service_regular.h" | 22 #include "chrome/browser/signin/easy_unlock_service_regular.h" |
23 #include "chrome/browser/signin/signin_manager_factory.h" | 23 #include "chrome/browser/signin/signin_manager_factory.h" |
24 #include "chrome/common/pref_names.h" | 24 #include "chrome/common/pref_names.h" |
25 #include "chrome/test/base/testing_profile.h" | 25 #include "chrome/test/base/testing_profile.h" |
26 #include "chromeos/dbus/dbus_thread_manager.h" | 26 #include "chromeos/dbus/dbus_thread_manager.h" |
27 #include "chromeos/dbus/fake_power_manager_client.h" | 27 #include "chromeos/dbus/fake_power_manager_client.h" |
28 #include "components/signin/core/account_id/account_id.h" | 28 #include "components/signin/core/account_id/account_id.h" |
29 #include "components/signin/core/browser/signin_manager_base.h" | 29 #include "components/signin/core/browser/signin_manager_base.h" |
30 #include "components/syncable_prefs/testing_pref_service_syncable.h" | 30 #include "components/sync_preferences/testing_pref_service_syncable.h" |
31 #include "content/public/test/test_browser_thread_bundle.h" | 31 #include "content/public/test/test_browser_thread_bundle.h" |
32 #include "device/bluetooth/bluetooth_adapter_factory.h" | 32 #include "device/bluetooth/bluetooth_adapter_factory.h" |
33 #include "device/bluetooth/test/mock_bluetooth_adapter.h" | 33 #include "device/bluetooth/test/mock_bluetooth_adapter.h" |
34 #include "testing/gmock/include/gmock/gmock.h" | 34 #include "testing/gmock/include/gmock/gmock.h" |
35 | 35 |
36 using chromeos::DBusThreadManagerSetter; | 36 using chromeos::DBusThreadManagerSetter; |
37 using chromeos::FakePowerManagerClient; | 37 using chromeos::FakePowerManagerClient; |
38 using chromeos::PowerManagerClient; | 38 using chromeos::PowerManagerClient; |
39 using chromeos::ProfileHelper; | 39 using chromeos::ProfileHelper; |
40 using device::MockBluetoothAdapter; | 40 using device::MockBluetoothAdapter; |
(...skipping 343 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
384 EXPECT_EQ(AccountId::FromUserEmailGaiaId(kTestUserPrimary, kPrimaryGaiaId), | 384 EXPECT_EQ(AccountId::FromUserEmailGaiaId(kTestUserPrimary, kPrimaryGaiaId), |
385 EasyUnlockService::Get(profile_.get())->GetAccountId()); | 385 EasyUnlockService::Get(profile_.get())->GetAccountId()); |
386 | 386 |
387 SetUpSecondaryProfile(); | 387 SetUpSecondaryProfile(); |
388 EXPECT_EQ(AccountId::FromUserEmailGaiaId(kTestUserSecondary, | 388 EXPECT_EQ(AccountId::FromUserEmailGaiaId(kTestUserSecondary, |
389 kSecondaryGaiaId), | 389 kSecondaryGaiaId), |
390 EasyUnlockService::Get(secondary_profile_.get())->GetAccountId()); | 390 EasyUnlockService::Get(secondary_profile_.get())->GetAccountId()); |
391 } | 391 } |
392 | 392 |
393 } // namespace | 393 } // namespace |
OLD | NEW |