| Index: webkit/fileapi/file_system_operation_unittest.cc
|
| ===================================================================
|
| --- webkit/fileapi/file_system_operation_unittest.cc (revision 67172)
|
| +++ webkit/fileapi/file_system_operation_unittest.cc (working copy)
|
| @@ -463,6 +463,26 @@
|
| EXPECT_EQ(request_id_, mock_dispatcher_->request_id());
|
| }
|
|
|
| +TEST_F(FileSystemOperationTest, TestCreateVeryLongName) {
|
| + ScopedTempDir dir;
|
| + ASSERT_TRUE(dir.CreateUniqueTempDir());
|
| +
|
| + FilePath dir_path(FILE_PATH_LITERAL("\\\\?\\") + dir.path().value());
|
| + FilePath dir1 = dir_path.AppendASCII(
|
| + "012345678901234567890123456789012345678901234567890123456789"
|
| + "012345678901234567890123456789012345678901234567890123456789"
|
| + "0123456789012345678901234567890123456789");
|
| + FilePath file = dir1.AppendASCII(
|
| + "012345678901234567890123456789012345678901234567890123456789"
|
| + "012345678901234567890123456789012345678901234567890123456789"
|
| + "0123456789012345678901234567890123456789");
|
| + operation()->CreateDirectory(dir1, false, true);
|
| + MessageLoop::current()->RunAllPending();
|
| + operation()->CreateFile(file, true);
|
| + MessageLoop::current()->RunAllPending();
|
| + EXPECT_TRUE(file_util::PathExists(file));
|
| +}
|
| +
|
| TEST_F(FileSystemOperationTest, TestCreateFileSuccessFileExists) {
|
| // Already existing file and exclusive false.
|
| ScopedTempDir dir;
|
|
|