| 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 gdata.h | 5 // This file contains mocks for classes in gdata.h |
| 6 | 6 |
| 7 #ifndef CHROME_BROWSER_CHROMEOS_GDATA_GDATA_MOCK_H_ | 7 #ifndef CHROME_BROWSER_CHROMEOS_GDATA_GDATA_MOCK_H_ |
| 8 #define CHROME_BROWSER_CHROMEOS_GDATA_GDATA_MOCK_H_ | 8 #define CHROME_BROWSER_CHROMEOS_GDATA_GDATA_MOCK_H_ |
| 9 #pragma once | 9 #pragma once |
| 10 | 10 |
| (...skipping 10 matching lines...) Expand all Loading... |
| 21 namespace gdata { | 21 namespace gdata { |
| 22 | 22 |
| 23 class MockDocumentsService : public DocumentsServiceInterface { | 23 class MockDocumentsService : public DocumentsServiceInterface { |
| 24 public: | 24 public: |
| 25 // DocumentsService is usually owned and created by GDataFileSystem. | 25 // DocumentsService is usually owned and created by GDataFileSystem. |
| 26 MockDocumentsService(); | 26 MockDocumentsService(); |
| 27 virtual ~MockDocumentsService(); | 27 virtual ~MockDocumentsService(); |
| 28 | 28 |
| 29 // DocumentServiceInterface overrides. | 29 // DocumentServiceInterface overrides. |
| 30 MOCK_METHOD1(Initialize, void(Profile* profile)); | 30 MOCK_METHOD1(Initialize, void(Profile* profile)); |
| 31 MOCK_CONST_METHOD0(operation_registry, GDataOperationRegistry*()); | |
| 32 MOCK_METHOD0(CancelAll, void(void)); | 31 MOCK_METHOD0(CancelAll, void(void)); |
| 33 MOCK_METHOD1(Authenticate, void(const AuthStatusCallback& callback)); | 32 MOCK_METHOD1(Authenticate, void(const AuthStatusCallback& callback)); |
| 34 MOCK_METHOD2(GetDocuments, void(const GURL& feed_url, | 33 MOCK_METHOD2(GetDocuments, void(const GURL& feed_url, |
| 35 const GetDataCallback& callback)); | 34 const GetDataCallback& callback)); |
| 36 MOCK_METHOD1(GetAccountMetadata, void(const GetDataCallback& callback)); | 35 MOCK_METHOD1(GetAccountMetadata, void(const GetDataCallback& callback)); |
| 37 MOCK_METHOD2(DeleteDocument, void(const GURL& document_url, | 36 MOCK_METHOD2(DeleteDocument, void(const GURL& document_url, |
| 38 const EntryActionCallback& callback)); | 37 const EntryActionCallback& callback)); |
| 39 MOCK_METHOD4(DownloadDocument, void(const FilePath& virtual_path, | 38 MOCK_METHOD4(DownloadDocument, void(const FilePath& virtual_path, |
| 40 const GURL& content_url, | 39 const GURL& content_url, |
| 41 DocumentExportFormat format, | 40 DocumentExportFormat format, |
| (...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 151 // Feed data to be returned from CreateDirectory. | 150 // Feed data to be returned from CreateDirectory. |
| 152 scoped_ptr<base::Value> directory_data_; | 151 scoped_ptr<base::Value> directory_data_; |
| 153 | 152 |
| 154 // Feed data to be returned from CopyDocument. | 153 // Feed data to be returned from CopyDocument. |
| 155 scoped_ptr<base::Value> document_data_; | 154 scoped_ptr<base::Value> document_data_; |
| 156 }; | 155 }; |
| 157 | 156 |
| 158 } // namespace gdata | 157 } // namespace gdata |
| 159 | 158 |
| 160 #endif // CHROME_BROWSER_CHROMEOS_GDATA_GDATA_MOCK_H_ | 159 #endif // CHROME_BROWSER_CHROMEOS_GDATA_GDATA_MOCK_H_ |
| OLD | NEW |