| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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/browser/fileapi/file_system_operation_impl.h" | 5 #include "webkit/browser/fileapi/file_system_operation_impl.h" |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/files/file_util.h" | 8 #include "base/files/file_util.h" |
| 9 #include "base/files/scoped_temp_dir.h" | 9 #include "base/files/scoped_temp_dir.h" |
| 10 #include "base/logging.h" | 10 #include "base/logging.h" |
| 11 #include "base/memory/scoped_ptr.h" | 11 #include "base/memory/scoped_ptr.h" |
| 12 #include "base/memory/weak_ptr.h" | 12 #include "base/memory/weak_ptr.h" |
| 13 #include "base/run_loop.h" | 13 #include "base/run_loop.h" |
| 14 #include "base/strings/stringprintf.h" | 14 #include "base/strings/stringprintf.h" |
| 15 #include "content/browser/fileapi/mock_file_change_observer.h" | 15 #include "content/browser/fileapi/mock_file_change_observer.h" |
| 16 #include "content/browser/quota/mock_quota_manager.h" | 16 #include "content/browser/quota/mock_quota_manager.h" |
| 17 #include "content/browser/quota/mock_quota_manager_proxy.h" | 17 #include "content/browser/quota/mock_quota_manager_proxy.h" |
| 18 #include "content/public/test/async_file_test_helper.h" | 18 #include "content/public/test/async_file_test_helper.h" |
| 19 #include "content/public/test/sandbox_file_system_test_helper.h" | 19 #include "content/public/test/sandbox_file_system_test_helper.h" |
| 20 #include "storage/common/blob/shareable_file_reference.h" |
| 21 #include "storage/common/fileapi/file_system_util.h" |
| 20 #include "testing/gtest/include/gtest/gtest.h" | 22 #include "testing/gtest/include/gtest/gtest.h" |
| 21 #include "url/gurl.h" | 23 #include "url/gurl.h" |
| 22 #include "webkit/browser/fileapi/file_system_context.h" | 24 #include "webkit/browser/fileapi/file_system_context.h" |
| 23 #include "webkit/browser/fileapi/file_system_file_util.h" | 25 #include "webkit/browser/fileapi/file_system_file_util.h" |
| 24 #include "webkit/browser/fileapi/file_system_operation_context.h" | 26 #include "webkit/browser/fileapi/file_system_operation_context.h" |
| 25 #include "webkit/browser/fileapi/file_system_operation_runner.h" | 27 #include "webkit/browser/fileapi/file_system_operation_runner.h" |
| 26 #include "webkit/browser/fileapi/sandbox_file_system_backend.h" | 28 #include "webkit/browser/fileapi/sandbox_file_system_backend.h" |
| 27 #include "webkit/browser/quota/quota_manager.h" | 29 #include "webkit/browser/quota/quota_manager.h" |
| 28 #include "webkit/browser/quota/quota_manager_proxy.h" | 30 #include "webkit/browser/quota/quota_manager_proxy.h" |
| 29 #include "webkit/common/blob/shareable_file_reference.h" | |
| 30 #include "webkit/common/fileapi/file_system_util.h" | |
| 31 | 31 |
| 32 using content::AsyncFileTestHelper; | 32 using content::AsyncFileTestHelper; |
| 33 using storage::FileSystemOperation; | 33 using storage::FileSystemOperation; |
| 34 using storage::FileSystemOperationContext; | 34 using storage::FileSystemOperationContext; |
| 35 using storage::FileSystemOperationRunner; | 35 using storage::FileSystemOperationRunner; |
| 36 using storage::FileSystemURL; | 36 using storage::FileSystemURL; |
| 37 using storage::QuotaManager; | 37 using storage::QuotaManager; |
| 38 using storage::QuotaManagerProxy; | 38 using storage::QuotaManagerProxy; |
| 39 using storage::ShareableFileReference; | 39 using storage::ShareableFileReference; |
| 40 | 40 |
| (...skipping 1294 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1335 base::Bind(&AssertFileErrorEqWithClosure, | 1335 base::Bind(&AssertFileErrorEqWithClosure, |
| 1336 FROM_HERE, | 1336 FROM_HERE, |
| 1337 base::File::FILE_OK, | 1337 base::File::FILE_OK, |
| 1338 run_loop.QuitClosure())); | 1338 run_loop.QuitClosure())); |
| 1339 run_loop.Run(); | 1339 run_loop.Run(); |
| 1340 } | 1340 } |
| 1341 EXPECT_EQ(0, GetFileSize("dest")); | 1341 EXPECT_EQ(0, GetFileSize("dest")); |
| 1342 } | 1342 } |
| 1343 | 1343 |
| 1344 } // namespace content | 1344 } // namespace content |
| OLD | NEW |