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

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

Issue 10834115: Drive: Mount/Unmount GoogleDrive on Files App when the file system is mounted/unmounted. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Remove unused methods in mock_gdata_file_system.h Created 8 years, 4 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
« no previous file with comments | « chrome/browser/chromeos/gdata/gdata_system_service.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 7
8 #include <string> 8 #include <string>
9 9
10 #include "chrome/browser/chromeos/gdata/gdata_file_system_interface.h" 10 #include "chrome/browser/chromeos/gdata/gdata_file_system_interface.h"
11 #include "testing/gmock/include/gmock/gmock.h" 11 #include "testing/gmock/include/gmock/gmock.h"
12 12
13 namespace gdata { 13 namespace gdata {
14 14
15 // Mock for GDataFileSystemInterface. 15 // Mock for GDataFileSystemInterface.
16 class MockGDataFileSystem : public GDataFileSystemInterface { 16 class MockGDataFileSystem : public GDataFileSystemInterface {
17 public: 17 public:
18 MockGDataFileSystem(); 18 MockGDataFileSystem();
19 virtual ~MockGDataFileSystem(); 19 virtual ~MockGDataFileSystem();
20 20
21 // GDataFileSystemInterface overrides. 21 // GDataFileSystemInterface overrides.
22 MOCK_METHOD0(Initialize, void()); 22 MOCK_METHOD0(Initialize, void());
23 MOCK_METHOD1(AddObserver, void(Observer* observer)); 23 MOCK_METHOD1(AddObserver, void(Observer* observer));
24 MOCK_METHOD1(RemoveObserver, void(Observer* observer)); 24 MOCK_METHOD1(RemoveObserver, void(Observer* observer));
25 MOCK_METHOD0(StartUpdates, void()); 25 MOCK_METHOD0(StartUpdates, void());
26 MOCK_METHOD0(StopUpdates, void()); 26 MOCK_METHOD0(StopUpdates, void());
27 MOCK_METHOD0(NotifyFileSystemMounted, void());
28 MOCK_METHOD0(NotifyFileSystemToBeUnmounted, void());
27 MOCK_METHOD0(CheckForUpdates, void()); 29 MOCK_METHOD0(CheckForUpdates, void());
28 MOCK_METHOD2(GetEntryInfoByResourceId, 30 MOCK_METHOD2(GetEntryInfoByResourceId,
29 void(const std::string& resource_id, 31 void(const std::string& resource_id,
30 const GetEntryInfoWithFilePathCallback& callback)); 32 const GetEntryInfoWithFilePathCallback& callback));
31 MOCK_METHOD2(Search, void(const std::string& search_query, 33 MOCK_METHOD2(Search, void(const std::string& search_query,
32 const SearchCallback& callback)); 34 const SearchCallback& callback));
33 MOCK_METHOD3(TransferFileFromRemoteToLocal, 35 MOCK_METHOD3(TransferFileFromRemoteToLocal,
34 void(const FilePath& local_src_file_path, 36 void(const FilePath& local_src_file_path,
35 const FilePath& remote_dest_file_path, 37 const FilePath& remote_dest_file_path,
36 const FileOperationCallback& callback)); 38 const FileOperationCallback& callback));
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
85 const FilePath& file, 87 const FilePath& file,
86 scoped_ptr<DocumentEntry> entry, 88 scoped_ptr<DocumentEntry> entry,
87 const FilePath& file_content_path, 89 const FilePath& file_content_path,
88 GDataCache::FileOperationType cache_operation, 90 GDataCache::FileOperationType cache_operation,
89 const base::Closure& callback) OVERRIDE {} 91 const base::Closure& callback) OVERRIDE {}
90 }; 92 };
91 93
92 } // namespace gdata 94 } // namespace gdata
93 95
94 #endif // CHROME_BROWSER_CHROMEOS_GDATA_MOCK_GDATA_FILE_SYSTEM_H_ 96 #endif // CHROME_BROWSER_CHROMEOS_GDATA_MOCK_GDATA_FILE_SYSTEM_H_
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/gdata/gdata_system_service.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698