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

Side by Side Diff: chrome/browser/chromeos/drive/mock_drive_file_system.h

Issue 13866050: drive: Introduce DriveSystemServiceObserver (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 8 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 #ifndef CHROME_BROWSER_CHROMEOS_DRIVE_MOCK_DRIVE_FILE_SYSTEM_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_DRIVE_MOCK_DRIVE_FILE_SYSTEM_H_
6 #define CHROME_BROWSER_CHROMEOS_DRIVE_MOCK_DRIVE_FILE_SYSTEM_H_ 6 #define CHROME_BROWSER_CHROMEOS_DRIVE_MOCK_DRIVE_FILE_SYSTEM_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "chrome/browser/chromeos/drive/drive_file_system_interface.h" 10 #include "chrome/browser/chromeos/drive/drive_file_system_interface.h"
11 #include "testing/gmock/include/gmock/gmock.h" 11 #include "testing/gmock/include/gmock/gmock.h"
12 12
13 namespace drive { 13 namespace drive {
14 14
15 class DriveFileSystemObserver; 15 class DriveFileSystemObserver;
16 16
17 // Mock for DriveFileSystemInterface. 17 // Mock for DriveFileSystemInterface.
18 class MockDriveFileSystem : public DriveFileSystemInterface { 18 class MockDriveFileSystem : public DriveFileSystemInterface {
19 public: 19 public:
20 MockDriveFileSystem(); 20 MockDriveFileSystem();
21 virtual ~MockDriveFileSystem(); 21 virtual ~MockDriveFileSystem();
22 22
23 // DriveFileSystemInterface overrides. 23 // DriveFileSystemInterface overrides.
24 MOCK_METHOD0(Initialize, void()); 24 MOCK_METHOD0(Initialize, void());
25 MOCK_METHOD1(AddObserver, void(DriveFileSystemObserver* observer)); 25 MOCK_METHOD1(AddObserver, void(DriveFileSystemObserver* observer));
26 MOCK_METHOD1(RemoveObserver, 26 MOCK_METHOD1(RemoveObserver,
27 void(DriveFileSystemObserver* observer)); 27 void(DriveFileSystemObserver* observer));
28 MOCK_METHOD0(NotifyFileSystemMounted, void());
29 MOCK_METHOD0(NotifyFileSystemToBeUnmounted, void());
30 MOCK_METHOD0(CheckForUpdates, void()); 28 MOCK_METHOD0(CheckForUpdates, void());
31 MOCK_METHOD2(GetEntryInfoByResourceId, 29 MOCK_METHOD2(GetEntryInfoByResourceId,
32 void(const std::string& resource_id, 30 void(const std::string& resource_id,
33 const GetEntryInfoWithFilePathCallback& callback)); 31 const GetEntryInfoWithFilePathCallback& callback));
34 MOCK_METHOD3(Search, void(const std::string& search_query, 32 MOCK_METHOD3(Search, void(const std::string& search_query,
35 const GURL& next_feed, 33 const GURL& next_feed,
36 const SearchCallback& callback)); 34 const SearchCallback& callback));
37 MOCK_METHOD4(SearchMetadata, void(const std::string& query, 35 MOCK_METHOD4(SearchMetadata, void(const std::string& query,
38 int options, 36 int options,
39 int at_most_num_matches, 37 int at_most_num_matches,
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
105 const FileOperationCallback& callback) OVERRIDE { 103 const FileOperationCallback& callback) OVERRIDE {
106 } 104 }
107 MOCK_METHOD1(GetMetadata, 105 MOCK_METHOD1(GetMetadata,
108 void(const GetFilesystemMetadataCallback& callback)); 106 void(const GetFilesystemMetadataCallback& callback));
109 MOCK_METHOD0(Reload, void()); 107 MOCK_METHOD0(Reload, void());
110 }; 108 };
111 109
112 } // namespace drive 110 } // namespace drive
113 111
114 #endif // CHROME_BROWSER_CHROMEOS_DRIVE_MOCK_DRIVE_FILE_SYSTEM_H_ 112 #endif // CHROME_BROWSER_CHROMEOS_DRIVE_MOCK_DRIVE_FILE_SYSTEM_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698