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

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

Issue 10280004: gdata: Remove GDataFileSystem::FindEntryByPathAsync() (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 7 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
« no previous file with comments | « chrome/browser/chromeos/gdata/gdata_file_system.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #ifndef CHROME_BROWSER_CHROMEOS_GDATA_MOCK_GDATA_FILE_SYSTEM_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_GDATA_MOCK_GDATA_FILE_SYSTEM_H_
6 #define CHROME_BROWSER_CHROMEOS_GDATA_MOCK_GDATA_FILE_SYSTEM_H_ 6 #define CHROME_BROWSER_CHROMEOS_GDATA_MOCK_GDATA_FILE_SYSTEM_H_
7 #pragma once 7 #pragma once
8 8
9 #include "chrome/browser/chromeos/gdata/gdata_file_system.h" 9 #include "chrome/browser/chromeos/gdata/gdata_file_system.h"
10 #include "testing/gmock/include/gmock/gmock.h" 10 #include "testing/gmock/include/gmock/gmock.h"
11 11
12 namespace gdata { 12 namespace gdata {
13 13
14 // Mock for GDataFileSystemInterface. 14 // Mock for GDataFileSystemInterface.
15 class MockGDataFileSystem : public GDataFileSystemInterface { 15 class MockGDataFileSystem : public GDataFileSystemInterface {
16 public: 16 public:
17 MockGDataFileSystem(); 17 MockGDataFileSystem();
18 virtual ~MockGDataFileSystem(); 18 virtual ~MockGDataFileSystem();
19 19
20 // GDataFileSystemInterface overrides. 20 // GDataFileSystemInterface overrides.
21 MOCK_METHOD0(Initialize, void()); 21 MOCK_METHOD0(Initialize, void());
22 MOCK_METHOD1(AddObserver, void(Observer* observer)); 22 MOCK_METHOD1(AddObserver, void(Observer* observer));
23 MOCK_METHOD1(RemoveObserver, void(Observer* observer)); 23 MOCK_METHOD1(RemoveObserver, void(Observer* observer));
24 MOCK_METHOD1(Authenticate, void(const AuthStatusCallback& callback)); 24 MOCK_METHOD1(Authenticate, void(const AuthStatusCallback& callback));
25 MOCK_METHOD2(FindEntryByPathAsync,
26 void(const FilePath& file_path,
27 const FindEntryCallback& callback));
28 MOCK_METHOD2(FindEntryByPathSync, void(const FilePath& file_path,
29 FindEntryDelegate* delegate));
30 MOCK_METHOD2(FindEntryByResourceIdSync, void(const std::string& resource_id, 25 MOCK_METHOD2(FindEntryByResourceIdSync, void(const std::string& resource_id,
31 FindEntryDelegate* delegate)); 26 FindEntryDelegate* delegate));
32 MOCK_METHOD3(TransferFile, void(const FilePath& local_file_path, 27 MOCK_METHOD3(TransferFile, void(const FilePath& local_file_path,
33 const FilePath& remote_dest_file_path, 28 const FilePath& remote_dest_file_path,
34 const FileOperationCallback& callback)); 29 const FileOperationCallback& callback));
35 MOCK_METHOD3(Copy, void(const FilePath& src_file_path, 30 MOCK_METHOD3(Copy, void(const FilePath& src_file_path,
36 const FilePath& dest_file_path, 31 const FilePath& dest_file_path,
37 const FileOperationCallback& callback)); 32 const FileOperationCallback& callback));
38 MOCK_METHOD3(Move, void(const FilePath& src_file_path, 33 MOCK_METHOD3(Move, void(const FilePath& src_file_path,
39 const FilePath& dest_file_path, 34 const FilePath& dest_file_path,
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
90 MOCK_METHOD4(AddUploadedFile, void(const FilePath& file, 85 MOCK_METHOD4(AddUploadedFile, void(const FilePath& file,
91 DocumentEntry* entry, 86 DocumentEntry* entry,
92 const FilePath& file_content_path, 87 const FilePath& file_content_path,
93 FileOperationType cache_operation)); 88 FileOperationType cache_operation));
94 MOCK_METHOD0(hide_hosted_documents, bool()); 89 MOCK_METHOD0(hide_hosted_documents, bool());
95 }; 90 };
96 91
97 } // namespace gdata 92 } // namespace gdata
98 93
99 #endif // CHROME_BROWSER_CHROMEOS_GDATA_MOCK_GDATA_FILE_SYSTEM_H_ 94 #endif // CHROME_BROWSER_CHROMEOS_GDATA_MOCK_GDATA_FILE_SYSTEM_H_
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/gdata/gdata_file_system.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698