| 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_GDATA_MOCK_GDATA_FILE_SYSTEM_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_GDATA_MOCK_GDATA_FILE_SYSTEM_H_ |
| 6 #define CHROME_BROWSER_CHROMEOS_GDATA_MOCK_GDATA_FILE_SYSTEM_H_ | 6 #define CHROME_BROWSER_CHROMEOS_GDATA_MOCK_GDATA_FILE_SYSTEM_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "chrome/browser/chromeos/gdata/gdata_file_system_interface.h" | 10 #include "chrome/browser/chromeos/gdata/gdata_file_system_interface.h" |
| (...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 81 const ReadDirectoryWithSettingCallback& callback)); | 81 const ReadDirectoryWithSettingCallback& callback)); |
| 82 MOCK_METHOD1(RequestDirectoryRefresh, | 82 MOCK_METHOD1(RequestDirectoryRefresh, |
| 83 void(const FilePath& file_path)); | 83 void(const FilePath& file_path)); |
| 84 MOCK_METHOD1(GetAvailableSpace, | 84 MOCK_METHOD1(GetAvailableSpace, |
| 85 void(const GetAvailableSpaceCallback& callback)); | 85 void(const GetAvailableSpaceCallback& callback)); |
| 86 // This function is not mockable by gmock because scoped_ptr is not supported. | 86 // This function is not mockable by gmock because scoped_ptr is not supported. |
| 87 virtual void AddUploadedFile(UploadMode upload_mode, | 87 virtual void AddUploadedFile(UploadMode upload_mode, |
| 88 const FilePath& file, | 88 const FilePath& file, |
| 89 scoped_ptr<DocumentEntry> entry, | 89 scoped_ptr<DocumentEntry> entry, |
| 90 const FilePath& file_content_path, | 90 const FilePath& file_content_path, |
| 91 GDataCache::FileOperationType cache_operation, | 91 DriveCache::FileOperationType cache_operation, |
| 92 const base::Closure& callback) OVERRIDE {} | 92 const base::Closure& callback) OVERRIDE {} |
| 93 // This function is not mockable by gmock because scoped_ptr is not supported. | 93 // This function is not mockable by gmock because scoped_ptr is not supported. |
| 94 virtual void UpdateEntryData(const std::string& resource_id, | 94 virtual void UpdateEntryData(const std::string& resource_id, |
| 95 const std::string& md5, | 95 const std::string& md5, |
| 96 scoped_ptr<DocumentEntry> entry, | 96 scoped_ptr<DocumentEntry> entry, |
| 97 const FilePath& file_content_path, | 97 const FilePath& file_content_path, |
| 98 const base::Closure& callback) OVERRIDE {} | 98 const base::Closure& callback) OVERRIDE {} |
| 99 }; | 99 }; |
| 100 | 100 |
| 101 } // namespace gdata | 101 } // namespace gdata |
| 102 | 102 |
| 103 #endif // CHROME_BROWSER_CHROMEOS_GDATA_MOCK_GDATA_FILE_SYSTEM_H_ | 103 #endif // CHROME_BROWSER_CHROMEOS_GDATA_MOCK_GDATA_FILE_SYSTEM_H_ |
| OLD | NEW |