Chromium Code Reviews| Index: chrome/browser/signin/signin_error_notifier_ash_unittest.cc |
| diff --git a/chrome/browser/signin/signin_error_notifier_ash_unittest.cc b/chrome/browser/signin/signin_error_notifier_ash_unittest.cc |
| index 8fe2d437f8bea7e0610fade33a6dccef42523fbe..497da309618a8e44aac14c09a79e033c5edd616c 100644 |
| --- a/chrome/browser/signin/signin_error_notifier_ash_unittest.cc |
| +++ b/chrome/browser/signin/signin_error_notifier_ash_unittest.cc |
| @@ -33,6 +33,11 @@ |
| #include "ui/gfx/screen.h" |
| #endif |
| +#if defined(OS_CHROMEOS) |
| +#include "chrome/browser/chromeos/login/users/mock_user_manager.h" |
| +#include "chrome/browser/chromeos/login/users/scoped_user_manager_enabler.h" |
| +#endif |
| + |
| namespace ash { |
| namespace test { |
| @@ -60,6 +65,12 @@ class SigninErrorNotifierTest : public AshTestBase { |
| new TestingProfileManager(TestingBrowserProcess::GetGlobal())); |
| ASSERT_TRUE(profile_manager_->SetUp()); |
| +#if defined(OS_CHROMEOS) |
| + mock_user_manager_ = new chromeos::MockUserManager(); |
| + user_manager_enabler_.reset( |
| + new chromeos::ScopedUserManagerEnabler(mock_user_manager_)); |
| +#endif |
| + |
| TestingBrowserProcess::GetGlobal(); |
| AshTestBase::SetUp(); |
| @@ -102,6 +113,10 @@ class SigninErrorNotifierTest : public AshTestBase { |
| scoped_ptr<TestingProfile> profile_; |
| SigninErrorController* error_controller_; |
| NotificationUIManager* notification_ui_manager_; |
| +#if defined(OS_CHROMEOS) |
| + chromeos::MockUserManager* mock_user_manager_; |
|
Mr4D (OOO till 08-26)
2016/04/14 17:44:25
You might want to add a comment that this is owned
|
| + scoped_ptr<chromeos::ScopedUserManagerEnabler> user_manager_enabler_; |
| +#endif |
| }; |
| TEST_F(SigninErrorNotifierTest, NoErrorAuthStatusProviders) { |