| Index: webkit/fileapi/file_system_url_unittest.cc
|
| diff --git a/webkit/fileapi/file_system_url_unittest.cc b/webkit/fileapi/file_system_url_unittest.cc
|
| index b6845cf3c538bfec32f6a55e08f9d2b283a82b01..116bc9179c689d9ac29884dd7ec0d3c60cd38f32 100644
|
| --- a/webkit/fileapi/file_system_url_unittest.cc
|
| +++ b/webkit/fileapi/file_system_url_unittest.cc
|
| @@ -168,4 +168,28 @@ TEST(FileSystemURLTest, DebugString) {
|
| kURL1.DebugString());
|
| }
|
|
|
| +TEST(FileSystemURLTest, IsInSameFileSystem) {
|
| + FileSystemURL url_foo_temp_a = FileSystemURL::CreateForTest(
|
| + GURL("http://foo"), kFileSystemTypeTemporary,
|
| + base::FilePath::FromUTF8Unsafe("a"));
|
| + FileSystemURL url_foo_temp_b = FileSystemURL::CreateForTest(
|
| + GURL("http://foo"), kFileSystemTypeTemporary,
|
| + base::FilePath::FromUTF8Unsafe("b"));
|
| + FileSystemURL url_foo_perm_a = FileSystemURL::CreateForTest(
|
| + GURL("http://foo"), kFileSystemTypePersistent,
|
| + base::FilePath::FromUTF8Unsafe("a"));
|
| + FileSystemURL url_bar_temp_a = FileSystemURL::CreateForTest(
|
| + GURL("http://bar"), kFileSystemTypeTemporary,
|
| + base::FilePath::FromUTF8Unsafe("a"));
|
| + FileSystemURL url_bar_perm_a = FileSystemURL::CreateForTest(
|
| + GURL("http://bar"), kFileSystemTypePersistent,
|
| + base::FilePath::FromUTF8Unsafe("a"));
|
| +
|
| + EXPECT_TRUE(url_foo_temp_a.IsInSameFileSystem(url_foo_temp_a));
|
| + EXPECT_TRUE(url_foo_temp_a.IsInSameFileSystem(url_foo_temp_b));
|
| + EXPECT_FALSE(url_foo_temp_a.IsInSameFileSystem(url_foo_perm_a));
|
| + EXPECT_FALSE(url_foo_temp_a.IsInSameFileSystem(url_bar_temp_a));
|
| + EXPECT_FALSE(url_foo_temp_a.IsInSameFileSystem(url_bar_perm_a));
|
| +}
|
| +
|
| } // namespace fileapi
|
|
|