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

Unified Diff: webkit/fileapi/file_system_util_unittest.cc

Issue 6603034: Stop returning the true root path of each filesystem from openFileSystem.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 9 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: webkit/fileapi/file_system_util_unittest.cc
===================================================================
--- webkit/fileapi/file_system_util_unittest.cc (revision 78772)
+++ webkit/fileapi/file_system_util_unittest.cc (working copy)
@@ -71,5 +71,19 @@
EXPECT_FALSE(CrackFileSystemURL("filesystem:foobar/file"));
}
+TEST_F(FileSystemUtilTest, GetTempFileSystemRootURI) {
+ GURL origin_url("http://chromium.org");
+ fileapi::FileSystemType type = fileapi::kFileSystemTypeTemporary;
+ GURL uri = GURL("filesystem:http://chromium.org/temporary/");
+ EXPECT_EQ(uri, GetFileSystemRootURI(origin_url, type));
+}
+
+TEST_F(FileSystemUtilTest, GetPersistentFileSystemRootURI) {
+ GURL origin_url("http://chromium.org");
+ fileapi::FileSystemType type = fileapi::kFileSystemTypePersistent;
+ GURL uri = GURL("filesystem:http://chromium.org/persistent/");
+ EXPECT_EQ(uri, GetFileSystemRootURI(origin_url, type));
+}
+
} // namespace (anonymous)
} // namespace fileapi

Powered by Google App Engine
This is Rietveld 408576698