diff options
Diffstat (limited to 'webkit/fileapi/file_system_util_unittest.cc')
-rw-r--r-- | webkit/fileapi/file_system_util_unittest.cc | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/webkit/fileapi/file_system_util_unittest.cc b/webkit/fileapi/file_system_util_unittest.cc index 7cb4c59..e08fec7 100644 --- a/webkit/fileapi/file_system_util_unittest.cc +++ b/webkit/fileapi/file_system_util_unittest.cc @@ -71,5 +71,19 @@ TEST_F(FileSystemUtilTest, RejectMalformedURL) { 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 |