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

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

Issue 9719012: Revert 127317 - 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*());
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
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_
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