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 #ifndef CONTENT_PUBLIC_TEST_TEST_FILE_SYSTEM_CONTEXT_H_ | 5 #ifndef CONTENT_PUBLIC_TEST_TEST_FILE_SYSTEM_CONTEXT_H_ |
6 #define CONTENT_PUBLIC_TEST_TEST_FILE_SYSTEM_CONTEXT_H_ | 6 #define CONTENT_PUBLIC_TEST_TEST_FILE_SYSTEM_CONTEXT_H_ |
7 | 7 |
8 #include "base/files/file_path.h" | 8 #include "base/files/file_path.h" |
9 #include "base/memory/scoped_vector.h" | 9 #include "base/memory/scoped_vector.h" |
10 | 10 |
11 namespace quota { | 11 namespace quota { |
12 class QuotaManagerProxy; | 12 class QuotaManagerProxy; |
13 class SpecialStoragePolicy; | 13 class SpecialStoragePolicy; |
14 } | 14 } |
15 | 15 |
16 namespace fileapi { | 16 namespace fileapi { |
17 | |
18 class FileSystemContext; | 17 class FileSystemContext; |
19 class FileSystemBackend; | 18 class FileSystemBackend; |
| 19 } |
20 | 20 |
21 FileSystemContext* CreateFileSystemContextForTesting( | 21 namespace content { |
| 22 |
| 23 fileapi::FileSystemContext* CreateFileSystemContextForTesting( |
22 quota::QuotaManagerProxy* quota_manager_proxy, | 24 quota::QuotaManagerProxy* quota_manager_proxy, |
23 const base::FilePath& base_path); | 25 const base::FilePath& base_path); |
24 | 26 |
25 // The caller is responsible for including TestFileSystemBackend in | 27 // The caller is responsible for including TestFileSystemBackend in |
26 // |additional_providers| if needed. | 28 // |additional_providers| if needed. |
27 FileSystemContext* CreateFileSystemContextWithAdditionalProvidersForTesting( | 29 fileapi::FileSystemContext* |
| 30 CreateFileSystemContextWithAdditionalProvidersForTesting( |
28 quota::QuotaManagerProxy* quota_manager_proxy, | 31 quota::QuotaManagerProxy* quota_manager_proxy, |
29 ScopedVector<FileSystemBackend> additional_providers, | 32 ScopedVector<fileapi::FileSystemBackend> additional_providers, |
30 const base::FilePath& base_path); | 33 const base::FilePath& base_path); |
31 | 34 |
32 FileSystemContext* CreateIncognitoFileSystemContextForTesting( | 35 fileapi::FileSystemContext* CreateIncognitoFileSystemContextForTesting( |
33 quota::QuotaManagerProxy* quota_manager_proxy, | 36 quota::QuotaManagerProxy* quota_manager_proxy, |
34 const base::FilePath& base_path); | 37 const base::FilePath& base_path); |
35 | 38 |
36 } // namespace fileapi | 39 } // namespace content |
37 | 40 |
38 #endif // CONTENT_PUBLIC_TEST_TEST_FILE_SYSTEM_CONTEXT_H_ | 41 #endif // CONTENT_PUBLIC_TEST_TEST_FILE_SYSTEM_CONTEXT_H_ |
OLD | NEW |