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 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
59 const FileOperationCallback& callback)); | 59 const FileOperationCallback& callback)); |
60 MOCK_METHOD4(CreateDirectory, | 60 MOCK_METHOD4(CreateDirectory, |
61 void(const base::FilePath& directory_path, | 61 void(const base::FilePath& directory_path, |
62 bool is_exclusive, | 62 bool is_exclusive, |
63 bool is_recursive, | 63 bool is_recursive, |
64 const FileOperationCallback& callback)); | 64 const FileOperationCallback& callback)); |
65 MOCK_METHOD3(CreateFile, | 65 MOCK_METHOD3(CreateFile, |
66 void(const base::FilePath& file_path, | 66 void(const base::FilePath& file_path, |
67 bool is_exclusive, | 67 bool is_exclusive, |
68 const FileOperationCallback& callback)); | 68 const FileOperationCallback& callback)); |
| 69 MOCK_METHOD2(Pin, void(const base::FilePath& file_path, |
| 70 const FileOperationCallback& callback)); |
| 71 MOCK_METHOD2(Unpin, void(const base::FilePath& file_path, |
| 72 const FileOperationCallback& callback)); |
69 MOCK_METHOD2(GetFileByPath, | 73 MOCK_METHOD2(GetFileByPath, |
70 void(const base::FilePath& file_path, | 74 void(const base::FilePath& file_path, |
71 const GetFileCallback& callback)); | 75 const GetFileCallback& callback)); |
72 MOCK_METHOD4( | 76 MOCK_METHOD4( |
73 GetFileByResourceId, | 77 GetFileByResourceId, |
74 void(const std::string& resource_id, | 78 void(const std::string& resource_id, |
75 const DriveClientContext& context, | 79 const DriveClientContext& context, |
76 const GetFileCallback& get_file_callback, | 80 const GetFileCallback& get_file_callback, |
77 const google_apis::GetContentCallback& get_content_callback)); | 81 const google_apis::GetContentCallback& get_content_callback)); |
78 MOCK_METHOD4( | 82 MOCK_METHOD4( |
(...skipping 24 matching lines...) Expand all Loading... |
103 const FileOperationCallback& callback) OVERRIDE { | 107 const FileOperationCallback& callback) OVERRIDE { |
104 } | 108 } |
105 MOCK_METHOD1(GetMetadata, | 109 MOCK_METHOD1(GetMetadata, |
106 void(const GetFilesystemMetadataCallback& callback)); | 110 void(const GetFilesystemMetadataCallback& callback)); |
107 MOCK_METHOD0(Reload, void()); | 111 MOCK_METHOD0(Reload, void()); |
108 }; | 112 }; |
109 | 113 |
110 } // namespace drive | 114 } // namespace drive |
111 | 115 |
112 #endif // CHROME_BROWSER_CHROMEOS_DRIVE_MOCK_DRIVE_FILE_SYSTEM_H_ | 116 #endif // CHROME_BROWSER_CHROMEOS_DRIVE_MOCK_DRIVE_FILE_SYSTEM_H_ |
OLD | NEW |