| 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 <stddef.h> | 5 #include <stddef.h> |
| 6 #include <stdint.h> | 6 #include <stdint.h> |
| 7 | 7 |
| 8 #include <limits> | 8 #include <limits> |
| 9 #include <memory> | 9 #include <memory> |
| 10 #include <set> | 10 #include <set> |
| 11 #include <string> | 11 #include <string> |
| 12 #include <utility> | 12 #include <utility> |
| 13 #include <vector> | 13 #include <vector> |
| 14 | 14 |
| 15 #include "base/bind.h" | 15 #include "base/bind.h" |
| 16 #include "base/files/file.h" | 16 #include "base/files/file.h" |
| 17 #include "base/files/file_path.h" | 17 #include "base/files/file_path.h" |
| 18 #include "base/files/file_util.h" | 18 #include "base/files/file_util.h" |
| 19 #include "base/files/scoped_temp_dir.h" | 19 #include "base/files/scoped_temp_dir.h" |
| 20 #include "base/macros.h" | 20 #include "base/macros.h" |
| 21 #include "base/run_loop.h" | 21 #include "base/run_loop.h" |
| 22 #include "base/threading/thread_task_runner_handle.h" | 22 #include "base/threading/thread_task_runner_handle.h" |
| 23 #include "build/build_config.h" | 23 #include "build/build_config.h" |
| 24 #include "content/browser/fileapi/mock_file_change_observer.h" | |
| 25 #include "content/public/test/async_file_test_helper.h" | |
| 26 #include "content/public/test/mock_special_storage_policy.h" | |
| 27 #include "content/public/test/sandbox_file_system_test_helper.h" | |
| 28 #include "content/public/test/test_file_system_context.h" | |
| 29 #include "content/test/fileapi_test_file_set.h" | |
| 30 #include "storage/browser/fileapi/external_mount_points.h" | 24 #include "storage/browser/fileapi/external_mount_points.h" |
| 31 #include "storage/browser/fileapi/file_system_backend.h" | 25 #include "storage/browser/fileapi/file_system_backend.h" |
| 32 #include "storage/browser/fileapi/file_system_context.h" | 26 #include "storage/browser/fileapi/file_system_context.h" |
| 33 #include "storage/browser/fileapi/file_system_operation_context.h" | 27 #include "storage/browser/fileapi/file_system_operation_context.h" |
| 34 #include "storage/browser/fileapi/file_system_usage_cache.h" | 28 #include "storage/browser/fileapi/file_system_usage_cache.h" |
| 29 #include "storage/browser/fileapi/fileapi_test_file_set.h" |
| 35 #include "storage/browser/fileapi/obfuscated_file_util.h" | 30 #include "storage/browser/fileapi/obfuscated_file_util.h" |
| 36 #include "storage/browser/fileapi/sandbox_directory_database.h" | 31 #include "storage/browser/fileapi/sandbox_directory_database.h" |
| 37 #include "storage/browser/fileapi/sandbox_file_system_backend_delegate.h" | 32 #include "storage/browser/fileapi/sandbox_file_system_backend_delegate.h" |
| 38 #include "storage/browser/fileapi/sandbox_isolated_origin_database.h" | 33 #include "storage/browser/fileapi/sandbox_isolated_origin_database.h" |
| 39 #include "storage/browser/fileapi/sandbox_origin_database.h" | 34 #include "storage/browser/fileapi/sandbox_origin_database.h" |
| 40 #include "storage/browser/quota/quota_manager.h" | 35 #include "storage/browser/quota/quota_manager.h" |
| 36 #include "storage/browser/test/async_file_test_helper.h" |
| 37 #include "storage/browser/test/mock_file_change_observer.h" |
| 38 #include "storage/browser/test/mock_special_storage_policy.h" |
| 39 #include "storage/browser/test/sandbox_file_system_test_helper.h" |
| 40 #include "storage/browser/test/test_file_system_context.h" |
| 41 #include "storage/common/database/database_identifier.h" | 41 #include "storage/common/database/database_identifier.h" |
| 42 #include "storage/common/quota/quota_types.h" | 42 #include "storage/common/quota/quota_types.h" |
| 43 #include "testing/gtest/include/gtest/gtest.h" | 43 #include "testing/gtest/include/gtest/gtest.h" |
| 44 | 44 |
| 45 using content::AsyncFileTestHelper; | 45 using content::AsyncFileTestHelper; |
| 46 using storage::FileSystemContext; | 46 using storage::FileSystemContext; |
| 47 using storage::FileSystemOperation; | 47 using storage::FileSystemOperation; |
| 48 using storage::FileSystemOperationContext; | 48 using storage::FileSystemOperationContext; |
| 49 using storage::FileSystemURL; | 49 using storage::FileSystemURL; |
| 50 using storage::ObfuscatedFileUtil; | 50 using storage::ObfuscatedFileUtil; |
| (...skipping 2516 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2567 ofu()->GetDirectoryForOriginAndType( | 2567 ofu()->GetDirectoryForOriginAndType( |
| 2568 origin2, GetTypeString(kFileSystemTypeTemporary), false, &error); | 2568 origin2, GetTypeString(kFileSystemTypeTemporary), false, &error); |
| 2569 ASSERT_EQ(base::File::FILE_OK, error); | 2569 ASSERT_EQ(base::File::FILE_OK, error); |
| 2570 error = base::File::FILE_ERROR_FAILED; | 2570 error = base::File::FILE_ERROR_FAILED; |
| 2571 ofu()->GetDirectoryForOriginAndType( | 2571 ofu()->GetDirectoryForOriginAndType( |
| 2572 origin2, GetTypeString(kFileSystemTypePersistent), false, &error); | 2572 origin2, GetTypeString(kFileSystemTypePersistent), false, &error); |
| 2573 ASSERT_EQ(base::File::FILE_OK, error); | 2573 ASSERT_EQ(base::File::FILE_OK, error); |
| 2574 } | 2574 } |
| 2575 | 2575 |
| 2576 } // namespace content | 2576 } // namespace content |
| OLD | NEW |