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

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
« no previous file with comments | « webkit/fileapi/file_system_util.cc ('k') | webkit/fileapi/local_file_system_file_util.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/fileapi/file_system_util_unittest.cc
===================================================================
--- webkit/fileapi/file_system_util_unittest.cc (revision 79142)
+++ 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
« no previous file with comments | « webkit/fileapi/file_system_util.cc ('k') | webkit/fileapi/local_file_system_file_util.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698