OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_FILE_SYSTEM_TEST_HELPER_H_ | 5 #ifndef WEBKIT_FILEAPI_FILE_SYSTEM_TEST_HELPER_H_ |
6 #define WEBKIT_FILEAPI_FILE_SYSTEM_TEST_HELPER_H_ | 6 #define WEBKIT_FILEAPI_FILE_SYSTEM_TEST_HELPER_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 | 10 |
(...skipping 28 matching lines...) Expand all Loading... |
39 ~FileSystemTestOriginHelper(); | 39 ~FileSystemTestOriginHelper(); |
40 | 40 |
41 void SetUp(const FilePath& base_dir, FileSystemFileUtil* file_util); | 41 void SetUp(const FilePath& base_dir, FileSystemFileUtil* file_util); |
42 // If you want to use more than one FileSystemTestOriginHelper in a single | 42 // If you want to use more than one FileSystemTestOriginHelper in a single |
43 // base directory, they have to share a context, so that they don't have | 43 // base directory, they have to share a context, so that they don't have |
44 // multiple databases fighting over the lock to the origin directory [deep | 44 // multiple databases fighting over the lock to the origin directory [deep |
45 // down inside ObfuscatedFileUtil]. | 45 // down inside ObfuscatedFileUtil]. |
46 void SetUp(FileSystemContext* file_system_context, | 46 void SetUp(FileSystemContext* file_system_context, |
47 FileSystemFileUtil* file_util); | 47 FileSystemFileUtil* file_util); |
48 void SetUp(const FilePath& base_dir, | 48 void SetUp(const FilePath& base_dir, |
49 bool incognito_mode, | |
50 bool unlimited_quota, | 49 bool unlimited_quota, |
51 quota::QuotaManagerProxy* quota_manager_proxy, | 50 quota::QuotaManagerProxy* quota_manager_proxy, |
52 FileSystemFileUtil* file_util); | 51 FileSystemFileUtil* file_util); |
53 void TearDown(); | 52 void TearDown(); |
54 | 53 |
55 FilePath GetOriginRootPath() const; | 54 FilePath GetOriginRootPath() const; |
56 FilePath GetLocalPath(const FilePath& path); | 55 FilePath GetLocalPath(const FilePath& path); |
57 FilePath GetLocalPathFromASCII(const std::string& path); | 56 FilePath GetLocalPathFromASCII(const std::string& path); |
58 GURL GetURLForPath(const FilePath& path) const; | 57 GURL GetURLForPath(const FilePath& path) const; |
59 FilePath GetUsageCachePath() const; | 58 FilePath GetUsageCachePath() const; |
(...skipping 25 matching lines...) Expand all Loading... |
85 scoped_refptr<FileSystemContext> file_system_context_; | 84 scoped_refptr<FileSystemContext> file_system_context_; |
86 const GURL origin_; | 85 const GURL origin_; |
87 const FileSystemType type_; | 86 const FileSystemType type_; |
88 FileSystemFileUtil* file_util_; | 87 FileSystemFileUtil* file_util_; |
89 int64 initial_usage_size_; | 88 int64 initial_usage_size_; |
90 }; | 89 }; |
91 | 90 |
92 } // namespace fileapi | 91 } // namespace fileapi |
93 | 92 |
94 #endif // WEBKIT_FILEAPI_FILE_SYSTEM_TEST_HELPER_H_ | 93 #endif // WEBKIT_FILEAPI_FILE_SYSTEM_TEST_HELPER_H_ |
OLD | NEW |