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

Unified Diff: chrome/browser/sync/sync_error_notifier_ash_unittest.cc

Issue 1984733002: [Reland] GetAccountIdFromProfile() should not return an empty account id if a valid profile is prov… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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/sync/sync_error_notifier_ash_unittest.cc
diff --git a/chrome/browser/sync/sync_error_notifier_ash_unittest.cc b/chrome/browser/sync/sync_error_notifier_ash_unittest.cc
index da5a6837b773c9a48ade695df6777b37900f57fb..601ac5e8b50fa638bd258aa67a8e630c7b8e5cac 100644
--- a/chrome/browser/sync/sync_error_notifier_ash_unittest.cc
+++ b/chrome/browser/sync/sync_error_notifier_ash_unittest.cc
@@ -34,6 +34,11 @@
#include "ui/display/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
+
using ::testing::NiceMock;
using ::testing::Return;
using ::testing::ReturnRef;
@@ -184,6 +189,10 @@ class SyncErrorNotifierTest : public AshTestBase {
#define MAYBE_PassphraseNotification PassphraseNotification
#endif
TEST_F(SyncErrorNotifierTest, MAYBE_PassphraseNotification) {
+#if defined(OS_CHROMEOS)
+ chromeos::ScopedUserManagerEnabler scoped_enabler(
+ new chromeos::MockUserManager());
+#endif
ASSERT_FALSE(notification_ui_manager_->FindById(
kNotificationId, NotificationUIManager::GetProfileID(profile_)));

Powered by Google App Engine
This is Rietveld 408576698