OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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 CHROME_BROWSER_CHROMEOS_DRIVE_FAKE_DRIVE_FILE_SYSTEM_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_DRIVE_FAKE_DRIVE_FILE_SYSTEM_H_ |
6 #define CHROME_BROWSER_CHROMEOS_DRIVE_FAKE_DRIVE_FILE_SYSTEM_H_ | 6 #define CHROME_BROWSER_CHROMEOS_DRIVE_FAKE_DRIVE_FILE_SYSTEM_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
(...skipping 27 matching lines...) Expand all Loading... |
38 class FakeDriveFileSystem : public DriveFileSystemInterface { | 38 class FakeDriveFileSystem : public DriveFileSystemInterface { |
39 public: | 39 public: |
40 explicit FakeDriveFileSystem( | 40 explicit FakeDriveFileSystem( |
41 google_apis::DriveServiceInterface* drive_service); | 41 google_apis::DriveServiceInterface* drive_service); |
42 virtual ~FakeDriveFileSystem(); | 42 virtual ~FakeDriveFileSystem(); |
43 | 43 |
44 // DriveFileSystemInterface Overrides. | 44 // DriveFileSystemInterface Overrides. |
45 virtual void Initialize() OVERRIDE; | 45 virtual void Initialize() OVERRIDE; |
46 virtual void AddObserver(DriveFileSystemObserver* observer) OVERRIDE; | 46 virtual void AddObserver(DriveFileSystemObserver* observer) OVERRIDE; |
47 virtual void RemoveObserver(DriveFileSystemObserver* observer) OVERRIDE; | 47 virtual void RemoveObserver(DriveFileSystemObserver* observer) OVERRIDE; |
48 virtual void NotifyFileSystemMounted() OVERRIDE; | |
49 virtual void NotifyFileSystemToBeUnmounted() OVERRIDE; | |
50 virtual void CheckForUpdates() OVERRIDE; | 48 virtual void CheckForUpdates() OVERRIDE; |
51 virtual void GetEntryInfoByResourceId( | 49 virtual void GetEntryInfoByResourceId( |
52 const std::string& resource_id, | 50 const std::string& resource_id, |
53 const GetEntryInfoWithFilePathCallback& callback) OVERRIDE; | 51 const GetEntryInfoWithFilePathCallback& callback) OVERRIDE; |
54 virtual void TransferFileFromRemoteToLocal( | 52 virtual void TransferFileFromRemoteToLocal( |
55 const base::FilePath& remote_src_file_path, | 53 const base::FilePath& remote_src_file_path, |
56 const base::FilePath& local_dest_file_path, | 54 const base::FilePath& local_dest_file_path, |
57 const FileOperationCallback& callback) OVERRIDE; | 55 const FileOperationCallback& callback) OVERRIDE; |
58 virtual void TransferFileFromLocalToRemote( | 56 virtual void TransferFileFromLocalToRemote( |
59 const base::FilePath& local_src_file_path, | 57 const base::FilePath& local_src_file_path, |
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
198 // invalidate the weak pointers before any other members are destroyed. | 196 // invalidate the weak pointers before any other members are destroyed. |
199 base::WeakPtrFactory<FakeDriveFileSystem> weak_ptr_factory_; | 197 base::WeakPtrFactory<FakeDriveFileSystem> weak_ptr_factory_; |
200 | 198 |
201 DISALLOW_COPY_AND_ASSIGN(FakeDriveFileSystem); | 199 DISALLOW_COPY_AND_ASSIGN(FakeDriveFileSystem); |
202 }; | 200 }; |
203 | 201 |
204 } // namespace test_util | 202 } // namespace test_util |
205 } // namespace drive | 203 } // namespace drive |
206 | 204 |
207 #endif // CHROME_BROWSER_CHROMEOS_DRIVE_FAKE_DRIVE_FILE_SYSTEM_H_ | 205 #endif // CHROME_BROWSER_CHROMEOS_DRIVE_FAKE_DRIVE_FILE_SYSTEM_H_ |
OLD | NEW |