| 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 "content/public/test/sandbox_file_system_test_helper.h" | 5 #include "storage/browser/test/sandbox_file_system_test_helper.h" |
| 6 | 6 |
| 7 #include <memory> | 7 #include <memory> |
| 8 | 8 |
| 9 #include "base/files/file_util.h" | 9 #include "base/files/file_util.h" |
| 10 #include "base/run_loop.h" | 10 #include "base/run_loop.h" |
| 11 #include "content/public/test/mock_special_storage_policy.h" | |
| 12 #include "content/public/test/test_file_system_context.h" | |
| 13 #include "storage/browser/fileapi/file_system_context.h" | 11 #include "storage/browser/fileapi/file_system_context.h" |
| 14 #include "storage/browser/fileapi/file_system_file_util.h" | 12 #include "storage/browser/fileapi/file_system_file_util.h" |
| 15 #include "storage/browser/fileapi/file_system_operation_context.h" | 13 #include "storage/browser/fileapi/file_system_operation_context.h" |
| 16 #include "storage/browser/fileapi/file_system_operation_runner.h" | 14 #include "storage/browser/fileapi/file_system_operation_runner.h" |
| 17 #include "storage/browser/fileapi/file_system_url.h" | 15 #include "storage/browser/fileapi/file_system_url.h" |
| 18 #include "storage/browser/fileapi/file_system_usage_cache.h" | 16 #include "storage/browser/fileapi/file_system_usage_cache.h" |
| 19 #include "storage/browser/fileapi/sandbox_file_system_backend.h" | 17 #include "storage/browser/fileapi/sandbox_file_system_backend.h" |
| 20 #include "storage/browser/quota/quota_manager_proxy.h" | 18 #include "storage/browser/quota/quota_manager_proxy.h" |
| 19 #include "storage/browser/test/mock_special_storage_policy.h" |
| 20 #include "storage/browser/test/test_file_system_context.h" |
| 21 #include "storage/common/fileapi/file_system_util.h" | 21 #include "storage/common/fileapi/file_system_util.h" |
| 22 #include "url/gurl.h" | 22 #include "url/gurl.h" |
| 23 | 23 |
| 24 using storage::FileSystemContext; | 24 using storage::FileSystemContext; |
| 25 using storage::FileSystemOperationContext; | 25 using storage::FileSystemOperationContext; |
| 26 using storage::FileSystemOperationRunner; | 26 using storage::FileSystemOperationRunner; |
| 27 using storage::FileSystemURL; | 27 using storage::FileSystemURL; |
| 28 | 28 |
| 29 namespace content { | 29 namespace content { |
| 30 | 30 |
| (...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 157 file_system_context_->sandbox_delegate()-> | 157 file_system_context_->sandbox_delegate()-> |
| 158 GetBaseDirectoryForOriginAndType(origin_, type_, true /* create */); | 158 GetBaseDirectoryForOriginAndType(origin_, type_, true /* create */); |
| 159 | 159 |
| 160 // Initialize the usage cache file. | 160 // Initialize the usage cache file. |
| 161 base::FilePath usage_cache_path = GetUsageCachePath(); | 161 base::FilePath usage_cache_path = GetUsageCachePath(); |
| 162 if (!usage_cache_path.empty()) | 162 if (!usage_cache_path.empty()) |
| 163 usage_cache()->UpdateUsage(usage_cache_path, 0); | 163 usage_cache()->UpdateUsage(usage_cache_path, 0); |
| 164 } | 164 } |
| 165 | 165 |
| 166 } // namespace content | 166 } // namespace content |
| OLD | NEW |