Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(103)

Side by Side Diff: chrome/browser/chromeos/gdata/gdata_mock.h

Issue 9720020: [COPY] - Implemented API for tracking ongoing file transfers from file manager. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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*());
31 MOCK_METHOD0(CancelAll, void(void)); 32 MOCK_METHOD0(CancelAll, void(void));
32 MOCK_METHOD1(Authenticate, void(const AuthStatusCallback& callback)); 33 MOCK_METHOD1(Authenticate, void(const AuthStatusCallback& callback));
33 MOCK_METHOD2(GetDocuments, void(const GURL& feed_url, 34 MOCK_METHOD2(GetDocuments, void(const GURL& feed_url,
34 const GetDataCallback& callback)); 35 const GetDataCallback& callback));
35 MOCK_METHOD1(GetAccountMetadata, void(const GetDataCallback& callback)); 36 MOCK_METHOD1(GetAccountMetadata, void(const GetDataCallback& callback));
36 MOCK_METHOD2(DeleteDocument, void(const GURL& document_url, 37 MOCK_METHOD2(DeleteDocument, void(const GURL& document_url,
37 const EntryActionCallback& callback)); 38 const EntryActionCallback& callback));
38 MOCK_METHOD4(DownloadDocument, void(const FilePath& virtual_path, 39 MOCK_METHOD4(DownloadDocument, void(const FilePath& virtual_path,
39 const GURL& content_url, 40 const GURL& content_url,
40 DocumentExportFormat format, 41 DocumentExportFormat format,
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
150 // Feed data to be returned from CreateDirectory. 151 // Feed data to be returned from CreateDirectory.
151 scoped_ptr<base::Value> directory_data_; 152 scoped_ptr<base::Value> directory_data_;
152 153
153 // Feed data to be returned from CopyDocument. 154 // Feed data to be returned from CopyDocument.
154 scoped_ptr<base::Value> document_data_; 155 scoped_ptr<base::Value> document_data_;
155 }; 156 };
156 157
157 } // namespace gdata 158 } // namespace gdata
158 159
159 #endif // CHROME_BROWSER_CHROMEOS_GDATA_GDATA_MOCK_H_ 160 #endif // CHROME_BROWSER_CHROMEOS_GDATA_GDATA_MOCK_H_
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/gdata/gdata_file_system.cc ('k') | chrome/browser/extensions/extension_event_names.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698