OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 WEBKIT_FILEAPI_LOCAL_FILE_SYSTEM_TEST_HELPER_H_ | 5 #ifndef WEBKIT_FILEAPI_LOCAL_FILE_SYSTEM_TEST_HELPER_H_ |
6 #define WEBKIT_FILEAPI_LOCAL_FILE_SYSTEM_TEST_HELPER_H_ | 6 #define WEBKIT_FILEAPI_LOCAL_FILE_SYSTEM_TEST_HELPER_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/files/file_path.h" | 10 #include "base/files/file_path.h" |
(...skipping 29 matching lines...) Expand all Loading... |
40 LocalFileSystemTestOriginHelper(); | 40 LocalFileSystemTestOriginHelper(); |
41 ~LocalFileSystemTestOriginHelper(); | 41 ~LocalFileSystemTestOriginHelper(); |
42 | 42 |
43 void SetUp(const base::FilePath& base_dir); | 43 void SetUp(const base::FilePath& base_dir); |
44 // If you want to use more than one LocalFileSystemTestOriginHelper in | 44 // If you want to use more than one LocalFileSystemTestOriginHelper in |
45 // a single base directory, they have to share a context, so that they don't | 45 // a single base directory, they have to share a context, so that they don't |
46 // have multiple databases fighting over the lock to the origin directory | 46 // have multiple databases fighting over the lock to the origin directory |
47 // [deep down inside ObfuscatedFileUtil]. | 47 // [deep down inside ObfuscatedFileUtil]. |
48 void SetUp(FileSystemContext* file_system_context); | 48 void SetUp(FileSystemContext* file_system_context); |
49 void SetUp(const base::FilePath& base_dir, | 49 void SetUp(const base::FilePath& base_dir, |
50 bool unlimited_quota, | |
51 quota::QuotaManagerProxy* quota_manager_proxy); | 50 quota::QuotaManagerProxy* quota_manager_proxy); |
52 void TearDown(); | 51 void TearDown(); |
53 | 52 |
54 base::FilePath GetOriginRootPath() const; | 53 base::FilePath GetOriginRootPath() const; |
55 base::FilePath GetLocalPath(const base::FilePath& path); | 54 base::FilePath GetLocalPath(const base::FilePath& path); |
56 base::FilePath GetLocalPathFromASCII(const std::string& path); | 55 base::FilePath GetLocalPathFromASCII(const std::string& path); |
57 | 56 |
58 // Returns empty path if filesystem type is neither temporary nor persistent. | 57 // Returns empty path if filesystem type is neither temporary nor persistent. |
59 base::FilePath GetUsageCachePath() const; | 58 base::FilePath GetUsageCachePath() const; |
60 | 59 |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
92 scoped_refptr<FileSystemContext> file_system_context_; | 91 scoped_refptr<FileSystemContext> file_system_context_; |
93 | 92 |
94 const GURL origin_; | 93 const GURL origin_; |
95 const FileSystemType type_; | 94 const FileSystemType type_; |
96 FileSystemFileUtil* file_util_; | 95 FileSystemFileUtil* file_util_; |
97 }; | 96 }; |
98 | 97 |
99 } // namespace fileapi | 98 } // namespace fileapi |
100 | 99 |
101 #endif // WEBKIT_FILEAPI_LOCAL_FILE_SYSTEM_TEST_HELPER_H_ | 100 #endif // WEBKIT_FILEAPI_LOCAL_FILE_SYSTEM_TEST_HELPER_H_ |
OLD | NEW |