| 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_CHROMEOS_DRIVE_MOCK_DRIVE_FILE_SYSTEM_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_DRIVE_MOCK_FILE_SYSTEM_H_ |
| 6 #define CHROME_BROWSER_CHROMEOS_DRIVE_MOCK_DRIVE_FILE_SYSTEM_H_ | 6 #define CHROME_BROWSER_CHROMEOS_DRIVE_MOCK_FILE_SYSTEM_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "chrome/browser/chromeos/drive/drive_file_system_interface.h" | 10 #include "chrome/browser/chromeos/drive/drive_file_system_interface.h" |
| 11 #include "testing/gmock/include/gmock/gmock.h" | 11 #include "testing/gmock/include/gmock/gmock.h" |
| 12 | 12 |
| 13 namespace drive { | 13 namespace drive { |
| 14 | 14 |
| 15 class FileSystemObserver; | 15 class FileSystemObserver; |
| 16 | 16 |
| 17 // Mock for DriveFileSystemInterface. | 17 // Mock for DriveFileSystemInterface. |
| 18 class MockDriveFileSystem : public DriveFileSystemInterface { | 18 class MockFileSystem : public DriveFileSystemInterface { |
| 19 public: | 19 public: |
| 20 MockDriveFileSystem(); | 20 MockFileSystem(); |
| 21 virtual ~MockDriveFileSystem(); | 21 virtual ~MockFileSystem(); |
| 22 | 22 |
| 23 // DriveFileSystemInterface overrides. | 23 // DriveFileSystemInterface overrides. |
| 24 MOCK_METHOD0(Initialize, void()); | 24 MOCK_METHOD0(Initialize, void()); |
| 25 MOCK_METHOD1(AddObserver, void(FileSystemObserver* observer)); | 25 MOCK_METHOD1(AddObserver, void(FileSystemObserver* observer)); |
| 26 MOCK_METHOD1(RemoveObserver, | 26 MOCK_METHOD1(RemoveObserver, |
| 27 void(FileSystemObserver* observer)); | 27 void(FileSystemObserver* observer)); |
| 28 MOCK_METHOD0(CheckForUpdates, void()); | 28 MOCK_METHOD0(CheckForUpdates, void()); |
| 29 MOCK_METHOD2(GetEntryInfoByResourceId, | 29 MOCK_METHOD2(GetEntryInfoByResourceId, |
| 30 void(const std::string& resource_id, | 30 void(const std::string& resource_id, |
| 31 const GetEntryInfoWithFilePathCallback& callback)); | 31 const GetEntryInfoWithFilePathCallback& callback)); |
| (...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 117 const std::string& md5, | 117 const std::string& md5, |
| 118 const GetCacheEntryCallback& callback)); | 118 const GetCacheEntryCallback& callback)); |
| 119 MOCK_METHOD2(IterateCache, | 119 MOCK_METHOD2(IterateCache, |
| 120 void(const CacheIterateCallback& iteration_callback, | 120 void(const CacheIterateCallback& iteration_callback, |
| 121 const base::Closure& completion_callback)); | 121 const base::Closure& completion_callback)); |
| 122 MOCK_METHOD0(Reload, void()); | 122 MOCK_METHOD0(Reload, void()); |
| 123 }; | 123 }; |
| 124 | 124 |
| 125 } // namespace drive | 125 } // namespace drive |
| 126 | 126 |
| 127 #endif // CHROME_BROWSER_CHROMEOS_DRIVE_MOCK_DRIVE_FILE_SYSTEM_H_ | 127 #endif // CHROME_BROWSER_CHROMEOS_DRIVE_MOCK_FILE_SYSTEM_H_ |
| OLD | NEW |