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 <map> | 5 #include <map> |
6 #include <string> | 6 #include <string> |
7 | 7 |
8 #include "base/macros.h" | 8 #include "base/macros.h" |
9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
10 #include "base/run_loop.h" | 10 #include "base/run_loop.h" |
11 #include "base/values.h" | 11 #include "base/values.h" |
12 #include "chrome/browser/chromeos/login/users/mock_user_manager.h" | 12 #include "chrome/browser/chromeos/login/users/mock_user_manager.h" |
13 #include "chrome/browser/chromeos/login/users/scoped_user_manager_enabler.h" | 13 #include "chrome/browser/chromeos/login/users/scoped_user_manager_enabler.h" |
14 #include "chrome/browser/chromeos/profiles/profile_helper.h" | 14 #include "chrome/browser/chromeos/profiles/profile_helper.h" |
15 #include "chrome/browser/signin/easy_unlock_app_manager.h" | 15 #include "chrome/browser/signin/easy_unlock_app_manager.h" |
16 #include "chrome/browser/signin/easy_unlock_service.h" | 16 #include "chrome/browser/signin/easy_unlock_service.h" |
17 #include "chrome/browser/signin/easy_unlock_service_factory.h" | 17 #include "chrome/browser/signin/easy_unlock_service_factory.h" |
18 #include "chrome/browser/signin/easy_unlock_service_regular.h" | 18 #include "chrome/browser/signin/easy_unlock_service_regular.h" |
19 #include "chrome/browser/signin/signin_manager_factory.h" | 19 #include "chrome/browser/signin/signin_manager_factory.h" |
20 #include "chrome/common/pref_names.h" | 20 #include "chrome/common/pref_names.h" |
21 #include "chrome/test/base/testing_pref_service_syncable.h" | |
22 #include "chrome/test/base/testing_profile.h" | 21 #include "chrome/test/base/testing_profile.h" |
23 #include "chromeos/dbus/dbus_thread_manager.h" | 22 #include "chromeos/dbus/dbus_thread_manager.h" |
24 #include "chromeos/dbus/fake_power_manager_client.h" | 23 #include "chromeos/dbus/fake_power_manager_client.h" |
25 #include "components/signin/core/browser/signin_manager_base.h" | 24 #include "components/signin/core/browser/signin_manager_base.h" |
| 25 #include "components/syncable_prefs/testing_pref_service_syncable.h" |
26 #include "content/public/test/test_browser_thread_bundle.h" | 26 #include "content/public/test/test_browser_thread_bundle.h" |
27 #include "device/bluetooth/bluetooth_adapter_factory.h" | 27 #include "device/bluetooth/bluetooth_adapter_factory.h" |
28 #include "device/bluetooth/test/mock_bluetooth_adapter.h" | 28 #include "device/bluetooth/test/mock_bluetooth_adapter.h" |
29 #include "testing/gmock/include/gmock/gmock.h" | 29 #include "testing/gmock/include/gmock/gmock.h" |
30 | 30 |
31 using chromeos::DBusThreadManagerSetter; | 31 using chromeos::DBusThreadManagerSetter; |
32 using chromeos::FakePowerManagerClient; | 32 using chromeos::FakePowerManagerClient; |
33 using chromeos::PowerManagerClient; | 33 using chromeos::PowerManagerClient; |
34 using chromeos::ProfileHelper; | 34 using chromeos::ProfileHelper; |
35 using device::MockBluetoothAdapter; | 35 using device::MockBluetoothAdapter; |
(...skipping 327 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
363 ON_CALL(*mock_user_manager_, IsCurrentUserNonCryptohomeDataEphemeral()) | 363 ON_CALL(*mock_user_manager_, IsCurrentUserNonCryptohomeDataEphemeral()) |
364 .WillByDefault(Return(true)); | 364 .WillByDefault(Return(true)); |
365 | 365 |
366 SetAppManagerReady(profile_.get()); | 366 SetAppManagerReady(profile_.get()); |
367 EXPECT_FALSE(EasyUnlockService::Get(profile_.get())->IsAllowed()); | 367 EXPECT_FALSE(EasyUnlockService::Get(profile_.get())->IsAllowed()); |
368 EXPECT_TRUE( | 368 EXPECT_TRUE( |
369 EasyUnlockAppInState(profile_.get(), TestAppManager::STATE_NOT_LOADED)); | 369 EasyUnlockAppInState(profile_.get(), TestAppManager::STATE_NOT_LOADED)); |
370 } | 370 } |
371 | 371 |
372 } // namespace | 372 } // namespace |
OLD | NEW |