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 CHROME_BROWSER_BROWSING_DATA_MOCK_BROWSING_DATA_FILE_SYSTEM_HELPER_H_ | 5 #ifndef CHROME_BROWSER_BROWSING_DATA_MOCK_BROWSING_DATA_FILE_SYSTEM_HELPER_H_ |
6 #define CHROME_BROWSER_BROWSING_DATA_MOCK_BROWSING_DATA_FILE_SYSTEM_HELPER_H_ | 6 #define CHROME_BROWSER_BROWSING_DATA_MOCK_BROWSING_DATA_FILE_SYSTEM_HELPER_H_ |
7 | 7 |
8 #include <list> | 8 #include <list> |
9 #include <map> | 9 #include <map> |
10 #include <string> | 10 #include <string> |
(...skipping 10 matching lines...) Expand all Loading... |
21 explicit MockBrowsingDataFileSystemHelper(Profile* profile); | 21 explicit MockBrowsingDataFileSystemHelper(Profile* profile); |
22 | 22 |
23 // BrowsingDataFileSystemHelper implementation. | 23 // BrowsingDataFileSystemHelper implementation. |
24 void StartFetching(const FetchCallback& callback) override; | 24 void StartFetching(const FetchCallback& callback) override; |
25 void DeleteFileSystemOrigin(const GURL& origin) override; | 25 void DeleteFileSystemOrigin(const GURL& origin) override; |
26 | 26 |
27 // Adds a specific filesystem. | 27 // Adds a specific filesystem. |
28 void AddFileSystem(const GURL& origin, | 28 void AddFileSystem(const GURL& origin, |
29 bool has_persistent, | 29 bool has_persistent, |
30 bool has_temporary, | 30 bool has_temporary, |
31 bool has_syncable); | 31 bool has_syncable, |
| 32 int64_t size_persistent, |
| 33 int64_t size_temporary, |
| 34 int64_t size_syncable); |
32 | 35 |
33 // Adds some FilesystemInfo samples. | 36 // Adds some FilesystemInfo samples. |
34 void AddFileSystemSamples(); | 37 void AddFileSystemSamples(); |
35 | 38 |
36 // Notifies the callback. | 39 // Notifies the callback. |
37 void Notify(); | 40 void Notify(); |
38 | 41 |
39 // Marks all filesystems as existing. | 42 // Marks all filesystems as existing. |
40 void Reset(); | 43 void Reset(); |
41 | 44 |
(...skipping 10 matching lines...) Expand all Loading... |
52 | 55 |
53 // Stores which filesystems exist. | 56 // Stores which filesystems exist. |
54 std::map<const std::string, bool> file_systems_; | 57 std::map<const std::string, bool> file_systems_; |
55 | 58 |
56 std::list<FileSystemInfo> response_; | 59 std::list<FileSystemInfo> response_; |
57 | 60 |
58 DISALLOW_COPY_AND_ASSIGN(MockBrowsingDataFileSystemHelper); | 61 DISALLOW_COPY_AND_ASSIGN(MockBrowsingDataFileSystemHelper); |
59 }; | 62 }; |
60 | 63 |
61 #endif // CHROME_BROWSER_BROWSING_DATA_MOCK_BROWSING_DATA_FILE_SYSTEM_HELPER_H_ | 64 #endif // CHROME_BROWSER_BROWSING_DATA_MOCK_BROWSING_DATA_FILE_SYSTEM_HELPER_H_ |
OLD | NEW |