Chromium Code Reviews| Index: webkit/fileapi/file_system_util_unittest.cc |
| =================================================================== |
| --- webkit/fileapi/file_system_util_unittest.cc (revision 77587) |
| +++ 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; |
|
kinuko
2011/03/14 11:03:57
A test for kFileSystemTypeUnknown?
ericu
2011/03/15 02:43:11
That will DCHECK(false). I think it's better to l
|
| + GURL uri = GURL("filesystem:http://chromium.org/persistent/"); |
| + EXPECT_EQ(uri, GetFileSystemRootURI(origin_url, type)); |
| +} |
| + |
| } // namespace (anonymous) |
| } // namespace fileapi |