Chromium Code Reviews| 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 c3bfbed071c256d0110063e32ed7844402fc2dcc..c6b59f18ab22bc6aa0e0d637c28e495305562f51 100644 |
| --- a/chrome/browser/chromeos/file_manager/path_util_unittest.cc |
| +++ b/chrome/browser/chromeos/file_manager/path_util_unittest.cc |
| @@ -6,6 +6,7 @@ |
| #include "base/files/file_path.h" |
| #include "chrome/browser/chromeos/drive/file_system_util.h" |
| +#include "chrome/browser/chromeos/profiles/profile_helper.h" |
| #include "chrome/common/chrome_constants.h" |
|
mtomasz
2014/08/22 05:43:40
ditto
dzhioev (left Google)
2014/08/25 17:39:11
Done.
|
| #include "chrome/test/base/testing_browser_process.h" |
| #include "chrome/test/base/testing_profile.h" |
| @@ -27,8 +28,7 @@ class ProfileRelatedTest : public testing::Test { |
| } |
| Profile* CreateProfileWithName(const std::string& name) { |
| - return testing_profile_manager_.CreateTestingProfile( |
| - chrome::kProfileDirPrefix + name); |
| + return testing_profile_manager_.CreateTestingProfile(name); |
| } |
| private: |
| @@ -70,10 +70,13 @@ TEST(FileManagerPathUtilTest, MultiProfileDownloadsFolderMigration) { |
| } |
| TEST_F(ProfileRelatedTest, MultiProfileDriveFolderMigration) { |
| - Profile* profile = CreateProfileWithName("hash"); |
| + Profile* profile = CreateProfileWithName("user1"); |
| const base::FilePath kDrive = drive::util::GetDriveMountPointPath(profile); |
| - ASSERT_EQ(base::FilePath::FromUTF8Unsafe("/special/drive-hash"), kDrive); |
| + const std::string user_id_hash = |
| + chromeos::ProfileHelper::GetUserIdHashByUserIdForTesting("user1"); |
| + ASSERT_EQ(base::FilePath::FromUTF8Unsafe("/special/drive-" + user_id_hash), |
| + kDrive); |
| base::FilePath path; |