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 COMPONENTS_DRIVE_DUMMY_FILE_SYSTEM_H_ | 5 #ifndef COMPONENTS_DRIVE_DUMMY_FILE_SYSTEM_H_ |
6 #define COMPONENTS_DRIVE_DUMMY_FILE_SYSTEM_H_ | 6 #define COMPONENTS_DRIVE_DUMMY_FILE_SYSTEM_H_ |
7 | 7 |
8 #include "components/drive/file_system_interface.h" | 8 #include "components/drive/file_system_interface.h" |
9 | 9 |
10 namespace drive { | 10 namespace drive { |
11 | 11 |
12 // Dummy implementation of FileSystemInterface. All functions do nothing. | 12 // Dummy implementation of FileSystemInterface. All functions do nothing. |
13 class DummyFileSystem : public FileSystemInterface { | 13 class DummyFileSystem : public FileSystemInterface { |
14 public: | 14 public: |
| 15 DummyFileSystem(); |
15 ~DummyFileSystem() override {} | 16 ~DummyFileSystem() override {} |
16 void AddObserver(FileSystemObserver* observer) override {} | 17 void AddObserver(FileSystemObserver* observer) override {} |
17 void RemoveObserver(FileSystemObserver* observer) override {} | 18 void RemoveObserver(FileSystemObserver* observer) override {} |
18 void CheckForUpdates() override {} | 19 void CheckForUpdates() override {} |
19 void TransferFileFromLocalToRemote( | 20 void TransferFileFromLocalToRemote( |
20 const base::FilePath& local_src_file_path, | 21 const base::FilePath& local_src_file_path, |
21 const base::FilePath& remote_dest_file_path, | 22 const base::FilePath& remote_dest_file_path, |
22 const FileOperationCallback& callback) override {} | 23 const FileOperationCallback& callback) override {} |
23 void OpenFile(const base::FilePath& file_path, | 24 void OpenFile(const base::FilePath& file_path, |
24 OpenMode open_mode, | 25 OpenMode open_mode, |
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
102 void FreeDiskSpaceIfNeededFor( | 103 void FreeDiskSpaceIfNeededFor( |
103 int64 num_bytes, | 104 int64 num_bytes, |
104 const FreeDiskSpaceCallback& callback) override {} | 105 const FreeDiskSpaceCallback& callback) override {} |
105 void CalculateEvictableCacheSize( | 106 void CalculateEvictableCacheSize( |
106 const EvictableCacheSizeCallback& callback) override {} | 107 const EvictableCacheSizeCallback& callback) override {} |
107 }; | 108 }; |
108 | 109 |
109 } // namespace drive | 110 } // namespace drive |
110 | 111 |
111 #endif // COMPONENTS_DRIVE_DUMMY_FILE_SYSTEM_H_ | 112 #endif // COMPONENTS_DRIVE_DUMMY_FILE_SYSTEM_H_ |
OLD | NEW |