| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "webkit/fileapi/file_system_operation.h" | 5 #include "webkit/fileapi/file_system_operation.h" |
| 6 | 6 |
| 7 #include "base/file_util.h" | 7 #include "base/file_util.h" |
| 8 #include "base/logging.h" | 8 #include "base/logging.h" |
| 9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
| 10 #include "base/memory/scoped_temp_dir.h" | |
| 11 #include "base/message_loop.h" | 10 #include "base/message_loop.h" |
| 11 #include "base/scoped_temp_dir.h" |
| 12 #include "base/sys_string_conversions.h" | 12 #include "base/sys_string_conversions.h" |
| 13 #include "base/utf_string_conversions.h" | 13 #include "base/utf_string_conversions.h" |
| 14 #include "testing/gtest/include/gtest/gtest.h" | 14 #include "testing/gtest/include/gtest/gtest.h" |
| 15 #include "webkit/fileapi/file_system_callback_dispatcher.h" | 15 #include "webkit/fileapi/file_system_callback_dispatcher.h" |
| 16 #include "webkit/fileapi/file_system_context.h" | 16 #include "webkit/fileapi/file_system_context.h" |
| 17 #include "webkit/fileapi/file_system_file_util.h" | 17 #include "webkit/fileapi/file_system_file_util.h" |
| 18 #include "webkit/fileapi/file_system_mount_point_provider.h" | 18 #include "webkit/fileapi/file_system_mount_point_provider.h" |
| 19 #include "webkit/fileapi/file_system_operation.h" | 19 #include "webkit/fileapi/file_system_operation.h" |
| 20 #include "webkit/fileapi/file_system_test_helper.h" |
| 20 #include "webkit/fileapi/file_system_util.h" | 21 #include "webkit/fileapi/file_system_util.h" |
| 21 #include "webkit/fileapi/local_file_system_file_util.h" | 22 #include "webkit/fileapi/local_file_system_file_util.h" |
| 22 #include "webkit/fileapi/quota_file_util.h" | 23 #include "webkit/fileapi/quota_file_util.h" |
| 23 #include "webkit/fileapi/file_system_test_helper.h" | |
| 24 #include "webkit/quota/quota_manager.h" | 24 #include "webkit/quota/quota_manager.h" |
| 25 | 25 |
| 26 using quota::QuotaManager; | 26 using quota::QuotaManager; |
| 27 | 27 |
| 28 namespace fileapi { | 28 namespace fileapi { |
| 29 | 29 |
| 30 const int kFileOperationStatusNotSet = 1; | 30 const int kFileOperationStatusNotSet = 1; |
| 31 | 31 |
| 32 namespace { | 32 namespace { |
| 33 | 33 |
| (...skipping 819 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 853 | 853 |
| 854 operation()->Truncate(URLForPath(file_path), 11); | 854 operation()->Truncate(URLForPath(file_path), 11); |
| 855 MessageLoop::current()->RunAllPending(); | 855 MessageLoop::current()->RunAllPending(); |
| 856 EXPECT_EQ(base::PLATFORM_FILE_ERROR_NO_SPACE, status()); | 856 EXPECT_EQ(base::PLATFORM_FILE_ERROR_NO_SPACE, status()); |
| 857 | 857 |
| 858 EXPECT_TRUE(file_util::GetFileInfo(PlatformPath(file_path), &info)); | 858 EXPECT_TRUE(file_util::GetFileInfo(PlatformPath(file_path), &info)); |
| 859 EXPECT_EQ(10, info.size); | 859 EXPECT_EQ(10, info.size); |
| 860 } | 860 } |
| 861 | 861 |
| 862 } // namespace fileapi | 862 } // namespace fileapi |
| OLD | NEW |