| 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_DRIVE_FILE_SYSTEM_H_ |
| 6 #define CHROME_BROWSER_CHROMEOS_DRIVE_MOCK_DRIVE_FILE_SYSTEM_H_ | 6 #define CHROME_BROWSER_CHROMEOS_DRIVE_MOCK_DRIVE_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" |
| (...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 90 MOCK_METHOD1(RequestDirectoryRefresh, | 90 MOCK_METHOD1(RequestDirectoryRefresh, |
| 91 void(const FilePath& file_path)); | 91 void(const FilePath& file_path)); |
| 92 MOCK_METHOD1(GetAvailableSpace, | 92 MOCK_METHOD1(GetAvailableSpace, |
| 93 void(const GetAvailableSpaceCallback& callback)); | 93 void(const GetAvailableSpaceCallback& callback)); |
| 94 // This function is not mockable by gmock because scoped_ptr is not supported. | 94 // This function is not mockable by gmock because scoped_ptr is not supported. |
| 95 virtual void AddUploadedFile(const FilePath& file, | 95 virtual void AddUploadedFile(const FilePath& file, |
| 96 scoped_ptr<google_apis::ResourceEntry> entry, | 96 scoped_ptr<google_apis::ResourceEntry> entry, |
| 97 const FilePath& file_content_path, | 97 const FilePath& file_content_path, |
| 98 const FileOperationCallback& callback) OVERRIDE { | 98 const FileOperationCallback& callback) OVERRIDE { |
| 99 } | 99 } |
| 100 MOCK_CONST_METHOD0(GetMetadata, DriveFileSystemMetadata()); | 100 MOCK_METHOD1(GetMetadata, |
| 101 void(const GetFilesystemMetadataCallback& callback)); |
| 101 MOCK_METHOD0(Reload, void()); | 102 MOCK_METHOD0(Reload, void()); |
| 102 }; | 103 }; |
| 103 | 104 |
| 104 } // namespace drive | 105 } // namespace drive |
| 105 | 106 |
| 106 #endif // CHROME_BROWSER_CHROMEOS_DRIVE_MOCK_DRIVE_FILE_SYSTEM_H_ | 107 #endif // CHROME_BROWSER_CHROMEOS_DRIVE_MOCK_DRIVE_FILE_SYSTEM_H_ |
| OLD | NEW |