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

Unified Diff: chrome/browser/ui/ash/chrome_screenshot_grabber_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: Address rogerta@'s comments. Rebase 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/ui/ash/chrome_screenshot_grabber_unittest.cc
diff --git a/chrome/browser/ui/ash/chrome_screenshot_grabber_unittest.cc b/chrome/browser/ui/ash/chrome_screenshot_grabber_unittest.cc
index 6cb79249fcf46ff3f750cebd110bdf74d99784b5..e6c18f35372dc1c4cc0ac6766c334b2a78c0643e 100644
--- a/chrome/browser/ui/ash/chrome_screenshot_grabber_unittest.cc
+++ b/chrome/browser/ui/ash/chrome_screenshot_grabber_unittest.cc
@@ -25,6 +25,8 @@
#include "ui/snapshot/screenshot_grabber.h"
#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"
#include "chromeos/login/login_state.h"
#endif
@@ -109,6 +111,8 @@ TEST_F(ChromeScreenshotGrabberTest, TakeScreenshot) {
// claim that the user did log in.
ASSERT_FALSE(chromeos::LoginState::IsInitialized());
chromeos::LoginState::Initialize();
+ chromeos::ScopedUserManagerEnabler scoped_enabler(
+ new chromeos::MockUserManager());
#endif
base::ScopedTempDir directory;
ASSERT_TRUE(directory.CreateUniqueTempDir());
« no previous file with comments | « chrome/browser/sync/sync_error_notifier_ash_unittest.cc ('k') | chrome/browser/ui/ash/multi_user/multi_user_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698