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 "base/basictypes.h" | 5 #include "base/basictypes.h" |
6 #include "base/bind.h" | 6 #include "base/bind.h" |
7 #include "base/files/file_path.h" | 7 #include "base/files/file_path.h" |
8 #include "base/files/scoped_temp_dir.h" | 8 #include "base/files/scoped_temp_dir.h" |
9 #include "base/run_loop.h" | 9 #include "base/run_loop.h" |
| 10 #include "content/public/test/test_file_system_backend.h" |
| 11 #include "content/public/test/test_file_system_context.h" |
10 #include "testing/gtest/include/gtest/gtest.h" | 12 #include "testing/gtest/include/gtest/gtest.h" |
11 #include "webkit/browser/fileapi/async_file_test_helper.h" | 13 #include "webkit/browser/fileapi/async_file_test_helper.h" |
12 #include "webkit/browser/fileapi/copy_or_move_file_validator.h" | 14 #include "webkit/browser/fileapi/copy_or_move_file_validator.h" |
13 #include "webkit/browser/fileapi/external_mount_points.h" | 15 #include "webkit/browser/fileapi/external_mount_points.h" |
14 #include "webkit/browser/fileapi/file_system_backend.h" | 16 #include "webkit/browser/fileapi/file_system_backend.h" |
15 #include "webkit/browser/fileapi/file_system_context.h" | 17 #include "webkit/browser/fileapi/file_system_context.h" |
16 #include "webkit/browser/fileapi/file_system_url.h" | 18 #include "webkit/browser/fileapi/file_system_url.h" |
17 #include "webkit/browser/fileapi/isolated_context.h" | 19 #include "webkit/browser/fileapi/isolated_context.h" |
18 #include "webkit/browser/fileapi/mock_file_system_context.h" | |
19 #include "webkit/browser/fileapi/test_file_system_backend.h" | |
20 #include "webkit/browser/quota/mock_special_storage_policy.h" | 20 #include "webkit/browser/quota/mock_special_storage_policy.h" |
21 #include "webkit/common/blob/shareable_file_reference.h" | 21 #include "webkit/common/blob/shareable_file_reference.h" |
22 #include "webkit/common/fileapi/file_system_util.h" | 22 #include "webkit/common/fileapi/file_system_util.h" |
23 | 23 |
24 namespace fileapi { | 24 namespace fileapi { |
25 | 25 |
26 namespace { | 26 namespace { |
27 | 27 |
28 const FileSystemType kNoValidatorType = kFileSystemTypeTemporary; | 28 const FileSystemType kNoValidatorType = kFileSystemTypeTemporary; |
29 const FileSystemType kWithValidatorType = kFileSystemTypeTest; | 29 const FileSystemType kWithValidatorType = kFileSystemTypeTest; |
(...skipping 287 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
317 helper.SetUp(); | 317 helper.SetUp(); |
318 scoped_ptr<CopyOrMoveFileValidatorFactory> factory( | 318 scoped_ptr<CopyOrMoveFileValidatorFactory> factory( |
319 new TestCopyOrMoveFileValidatorFactory(POST_WRITE_INVALID)); | 319 new TestCopyOrMoveFileValidatorFactory(POST_WRITE_INVALID)); |
320 helper.SetMediaCopyOrMoveFileValidatorFactory(factory.Pass()); | 320 helper.SetMediaCopyOrMoveFileValidatorFactory(factory.Pass()); |
321 | 321 |
322 helper.CopyTest(base::PLATFORM_FILE_ERROR_SECURITY); | 322 helper.CopyTest(base::PLATFORM_FILE_ERROR_SECURITY); |
323 helper.MoveTest(base::PLATFORM_FILE_ERROR_SECURITY); | 323 helper.MoveTest(base::PLATFORM_FILE_ERROR_SECURITY); |
324 } | 324 } |
325 | 325 |
326 } // namespace fileapi | 326 } // namespace fileapi |
OLD | NEW |