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

Unified Diff: chrome/browser/chromeos/file_manager/path_util_unittest.cc

Issue 2918203002: cros: Fix loading user profile w/o UserSessionManager (Closed)
Patch Set: fix tests, round 2 Created 3 years, 6 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/chromeos/file_manager/path_util_unittest.cc
diff --git a/chrome/browser/chromeos/file_manager/path_util_unittest.cc b/chrome/browser/chromeos/file_manager/path_util_unittest.cc
index f7ad12162f5a8ee9a46959d87fc694221b4a1724..12938a560e05d7035ece5afb57a9724ba2c4f2be 100644
--- a/chrome/browser/chromeos/file_manager/path_util_unittest.cc
+++ b/chrome/browser/chromeos/file_manager/path_util_unittest.cc
@@ -90,14 +90,14 @@ TEST(FileManagerPathUtilTest, ConvertPathToArcUrl) {
// Conversion of paths under the primary profile's downloads folder.
const base::FilePath downloads = GetDownloadsFolderForProfile(
- chromeos::ProfileHelper::Get()->GetProfileByUserIdHash(
+ chromeos::ProfileHelper::Get()->GetProfileByUserIdHashForTest(
"user@gmail.com-hash"));
EXPECT_TRUE(ConvertPathToArcUrl(downloads.AppendASCII("a/b/c"), &url));
EXPECT_EQ(GURL("file:///sdcard/Download/a/b/c"), url);
// Non-primary profile's downloads folder is not supported for ARC yet.
const base::FilePath downloads2 = GetDownloadsFolderForProfile(
- chromeos::ProfileHelper::Get()->GetProfileByUserIdHash(
+ chromeos::ProfileHelper::Get()->GetProfileByUserIdHashForTest(
"user2@gmail.com-hash"));
EXPECT_FALSE(ConvertPathToArcUrl(downloads2.AppendASCII("a/b/c"), &url));
}

Powered by Google App Engine
This is Rietveld 408576698