Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(77)

Unified Diff: chrome/browser/signin/signin_error_notifier_ash_unittest.cc

Issue 1880923003: GetAccountIdFromProfile() should not return an empty account id if a valid profile is provided. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix the failed trybots. Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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) {
« no previous file with comments | « chrome/browser/chromeos/profiles/profile_helper.h ('k') | chrome/browser/sync/sync_error_notifier_ash_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698