| 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 24 matching lines...) Expand all Loading... |
| 35 const FilePath& remote_dest_file_path, | 35 const FilePath& remote_dest_file_path, |
| 36 const FileOperationCallback& callback)); | 36 const FileOperationCallback& callback)); |
| 37 MOCK_METHOD3(TransferFileFromLocalToRemote, | 37 MOCK_METHOD3(TransferFileFromLocalToRemote, |
| 38 void(const FilePath& local_src_file_path, | 38 void(const FilePath& local_src_file_path, |
| 39 const FilePath& remote_dest_file_path, | 39 const FilePath& remote_dest_file_path, |
| 40 const FileOperationCallback& callback)); | 40 const FileOperationCallback& callback)); |
| 41 MOCK_METHOD2(OpenFile, void(const FilePath& file_path, | 41 MOCK_METHOD2(OpenFile, void(const FilePath& file_path, |
| 42 const OpenFileCallback& callback)); | 42 const OpenFileCallback& callback)); |
| 43 MOCK_METHOD2(CloseFile, void(const FilePath& file_path, | 43 MOCK_METHOD2(CloseFile, void(const FilePath& file_path, |
| 44 const FileOperationCallback& callback)); | 44 const FileOperationCallback& callback)); |
| 45 MOCK_METHOD2(PrepareWritableFileAndRun, |
| 46 void(const FilePath& file_path, |
| 47 const OpenFileCallback& callback)); |
| 45 MOCK_METHOD3(Copy, void(const FilePath& src_file_path, | 48 MOCK_METHOD3(Copy, void(const FilePath& src_file_path, |
| 46 const FilePath& dest_file_path, | 49 const FilePath& dest_file_path, |
| 47 const FileOperationCallback& callback)); | 50 const FileOperationCallback& callback)); |
| 48 MOCK_METHOD3(Move, void(const FilePath& src_file_path, | 51 MOCK_METHOD3(Move, void(const FilePath& src_file_path, |
| 49 const FilePath& dest_file_path, | 52 const FilePath& dest_file_path, |
| 50 const FileOperationCallback& callback)); | 53 const FileOperationCallback& callback)); |
| 51 MOCK_METHOD3(Remove, void(const FilePath& file_path, | 54 MOCK_METHOD3(Remove, void(const FilePath& file_path, |
| 52 bool is_recursive, | 55 bool is_recursive, |
| 53 const FileOperationCallback& callback)); | 56 const FileOperationCallback& callback)); |
| 54 MOCK_METHOD4(CreateDirectory, | 57 MOCK_METHOD4(CreateDirectory, |
| (...skipping 30 matching lines...) Expand all Loading... |
| 85 const FilePath& file, | 88 const FilePath& file, |
| 86 scoped_ptr<DocumentEntry> entry, | 89 scoped_ptr<DocumentEntry> entry, |
| 87 const FilePath& file_content_path, | 90 const FilePath& file_content_path, |
| 88 GDataCache::FileOperationType cache_operation, | 91 GDataCache::FileOperationType cache_operation, |
| 89 const base::Closure& callback) OVERRIDE {} | 92 const base::Closure& callback) OVERRIDE {} |
| 90 }; | 93 }; |
| 91 | 94 |
| 92 } // namespace gdata | 95 } // namespace gdata |
| 93 | 96 |
| 94 #endif // CHROME_BROWSER_CHROMEOS_GDATA_MOCK_GDATA_FILE_SYSTEM_H_ | 97 #endif // CHROME_BROWSER_CHROMEOS_GDATA_MOCK_GDATA_FILE_SYSTEM_H_ |
| OLD | NEW |