| 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 // This file contains mocks for classes in drive_service_interface.h | 5 // This file contains mocks for classes in drive_service_interface.h |
| 6 | 6 |
| 7 #ifndef CHROME_BROWSER_GOOGLE_APIS_MOCK_DRIVE_SERVICE_H_ | 7 #ifndef CHROME_BROWSER_GOOGLE_APIS_MOCK_DRIVE_SERVICE_H_ |
| 8 #define CHROME_BROWSER_GOOGLE_APIS_MOCK_DRIVE_SERVICE_H_ | 8 #define CHROME_BROWSER_GOOGLE_APIS_MOCK_DRIVE_SERVICE_H_ |
| 9 | 9 |
| 10 #include <string> | 10 #include <string> |
| (...skipping 30 matching lines...) Expand all Loading... |
| 41 int64 start_changestamp, | 41 int64 start_changestamp, |
| 42 const std::string& search_string, | 42 const std::string& search_string, |
| 43 bool shared_with_me, | 43 bool shared_with_me, |
| 44 const std::string& directory_resource_id, | 44 const std::string& directory_resource_id, |
| 45 const GetResourceListCallback& callback)); | 45 const GetResourceListCallback& callback)); |
| 46 MOCK_METHOD2(GetResourceEntry, | 46 MOCK_METHOD2(GetResourceEntry, |
| 47 void(const std::string& resource_id, | 47 void(const std::string& resource_id, |
| 48 const GetResourceEntryCallback& callback)); | 48 const GetResourceEntryCallback& callback)); |
| 49 MOCK_METHOD1(GetAccountMetadata, | 49 MOCK_METHOD1(GetAccountMetadata, |
| 50 void(const GetAccountMetadataCallback& callback)); | 50 void(const GetAccountMetadataCallback& callback)); |
| 51 MOCK_METHOD1(GetAboutResource, |
| 52 void(const GetAboutResourceCallback& callback)); |
| 51 MOCK_METHOD1(GetAppList, void(const GetAppListCallback& callback)); | 53 MOCK_METHOD1(GetAppList, void(const GetAppListCallback& callback)); |
| 52 MOCK_METHOD3(DeleteResource, | 54 MOCK_METHOD3(DeleteResource, |
| 53 void(const std::string& resource_id, | 55 void(const std::string& resource_id, |
| 54 const std::string& etag, | 56 const std::string& etag, |
| 55 const EntryActionCallback& callback)); | 57 const EntryActionCallback& callback)); |
| 56 MOCK_METHOD3(CopyHostedDocument, | 58 MOCK_METHOD3(CopyHostedDocument, |
| 57 void(const std::string& resource_id, | 59 void(const std::string& resource_id, |
| 58 const std::string& new_name, | 60 const std::string& new_name, |
| 59 const GetResourceEntryCallback& callback)); | 61 const GetResourceEntryCallback& callback)); |
| 60 MOCK_METHOD3(RenameResource, | 62 MOCK_METHOD3(RenameResource, |
| (...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 196 scoped_ptr<base::Value> search_result_; | 198 scoped_ptr<base::Value> search_result_; |
| 197 | 199 |
| 198 // File data to be written to the local temporary file when | 200 // File data to be written to the local temporary file when |
| 199 // DownloadFileStub is called. | 201 // DownloadFileStub is called. |
| 200 scoped_ptr<std::string> file_data_; | 202 scoped_ptr<std::string> file_data_; |
| 201 }; | 203 }; |
| 202 | 204 |
| 203 } // namespace google_apis | 205 } // namespace google_apis |
| 204 | 206 |
| 205 #endif // CHROME_BROWSER_GOOGLE_APIS_MOCK_DRIVE_SERVICE_H_ | 207 #endif // CHROME_BROWSER_GOOGLE_APIS_MOCK_DRIVE_SERVICE_H_ |
| OLD | NEW |