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

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

Issue 150163003: drive: Switch Drive mount path to per-profile one. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Review fix. Created 6 years, 10 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
« no previous file with comments | « chrome/browser/chromeos/drive/file_system_util_unittest.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 f3f01b95bb4a3b8971759515c138dad6b5ea8bca..e75821c024084a4206bcea23544b826ec1a71cd5 100644
--- a/chrome/browser/chromeos/file_manager/path_util_unittest.cc
+++ b/chrome/browser/chromeos/file_manager/path_util_unittest.cc
@@ -56,8 +56,23 @@ TEST(FileManagerPathUtilTest, MultiProfileDriveFolderMigration) {
base::FilePath path;
- // TODO(kinaba): add test, once after drive::util::GetDriveMountPointPath is
- // implemented in the way that takes profile into account
+ EXPECT_TRUE(MigratePathFromOldFormat(
+ &profile,
+ base::FilePath::FromUTF8Unsafe("/special/drive"),
+ &path));
+ EXPECT_EQ(kDrive, path);
+
+ EXPECT_TRUE(MigratePathFromOldFormat(
+ &profile,
+ base::FilePath::FromUTF8Unsafe("/special/drive/a/b"),
+ &path));
+ EXPECT_EQ(kDrive.AppendASCII("a/b"), path);
+
+ // Path already in the new format is not converted.
+ EXPECT_FALSE(MigratePathFromOldFormat(
+ &profile,
+ kDrive.AppendASCII("a/b"),
+ &path));
// Only the "/special/drive" path is converted.
EXPECT_FALSE(MigratePathFromOldFormat(
« no previous file with comments | « chrome/browser/chromeos/drive/file_system_util_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698