| 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 27 matching lines...) Expand all Loading... |
| 38 OperationProgressStatusList()); | 38 OperationProgressStatusList()); |
| 39 MOCK_CONST_METHOD0(GetRootResourceId, std::string()); | 39 MOCK_CONST_METHOD0(GetRootResourceId, std::string()); |
| 40 MOCK_METHOD1(GetAllResourceList, | 40 MOCK_METHOD1(GetAllResourceList, |
| 41 void(const GetResourceListCallback& callback)); | 41 void(const GetResourceListCallback& callback)); |
| 42 MOCK_METHOD2(GetResourceListInDirectory, | 42 MOCK_METHOD2(GetResourceListInDirectory, |
| 43 void(const std::string& directory_resource_id, | 43 void(const std::string& directory_resource_id, |
| 44 const GetResourceListCallback& callback)); | 44 const GetResourceListCallback& callback)); |
| 45 MOCK_METHOD2(Search, | 45 MOCK_METHOD2(Search, |
| 46 void(const std::string& search_query, | 46 void(const std::string& search_query, |
| 47 const GetResourceListCallback& callback)); | 47 const GetResourceListCallback& callback)); |
| 48 MOCK_METHOD3(SearchInDirectory, | 48 MOCK_METHOD3(SearchByTitle, |
| 49 void(const std::string& search_query, | 49 void(const std::string& title, |
| 50 const std::string& directory_resource_id, | 50 const std::string& directory_resource_id, |
| 51 const GetResourceListCallback& callback)); | 51 const GetResourceListCallback& callback)); |
| 52 MOCK_METHOD2(GetChangeList, | 52 MOCK_METHOD2(GetChangeList, |
| 53 void(int64 start_changestamp, | 53 void(int64 start_changestamp, |
| 54 const GetResourceListCallback& callback)); | 54 const GetResourceListCallback& callback)); |
| 55 MOCK_METHOD2(ContinueGetResourceList, | 55 MOCK_METHOD2(ContinueGetResourceList, |
| 56 void(const GURL& override_url, | 56 void(const GURL& override_url, |
| 57 const GetResourceListCallback& callback)); | 57 const GetResourceListCallback& callback)); |
| 58 MOCK_METHOD2(GetResourceEntry, | 58 MOCK_METHOD2(GetResourceEntry, |
| 59 void(const std::string& resource_id, | 59 void(const std::string& resource_id, |
| (...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 206 scoped_ptr<base::Value> document_data_; | 206 scoped_ptr<base::Value> document_data_; |
| 207 | 207 |
| 208 // File data to be written to the local temporary file when | 208 // File data to be written to the local temporary file when |
| 209 // DownloadFileStub is called. | 209 // DownloadFileStub is called. |
| 210 scoped_ptr<std::string> file_data_; | 210 scoped_ptr<std::string> file_data_; |
| 211 }; | 211 }; |
| 212 | 212 |
| 213 } // namespace google_apis | 213 } // namespace google_apis |
| 214 | 214 |
| 215 #endif // CHROME_BROWSER_GOOGLE_APIS_MOCK_DRIVE_SERVICE_H_ | 215 #endif // CHROME_BROWSER_GOOGLE_APIS_MOCK_DRIVE_SERVICE_H_ |
| OLD | NEW |