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

Side by Side Diff: chrome/browser/sync_file_system/mock_remote_file_sync_service.h

Issue 11421125: Implement polling part of DriveFileSyncService (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 8 years 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_SYNC_FILE_SYSTEM_MOCK_REMOTE_FILE_SYNC_SERVICE_H_ 5 #ifndef CHROME_BROWSER_SYNC_FILE_SYSTEM_MOCK_REMOTE_FILE_SYNC_SERVICE_H_
6 #define CHROME_BROWSER_SYNC_FILE_SYSTEM_MOCK_REMOTE_FILE_SYNC_SERVICE_H_ 6 #define CHROME_BROWSER_SYNC_FILE_SYSTEM_MOCK_REMOTE_FILE_SYNC_SERVICE_H_
7 7
8 #include <map> 8 #include <map>
9 9
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 void(const GURL& origin, 42 void(const GURL& origin,
43 const fileapi::SyncFileSetCallback& callback)); 43 const fileapi::SyncFileSetCallback& callback));
44 MOCK_METHOD2(GetRemoteFileMetadata, 44 MOCK_METHOD2(GetRemoteFileMetadata,
45 void(const fileapi::FileSystemURL& url, 45 void(const fileapi::FileSystemURL& url,
46 const fileapi::SyncFileMetadataCallback& callback)); 46 const fileapi::SyncFileMetadataCallback& callback));
47 MOCK_CONST_METHOD0(GetCurrentState, 47 MOCK_CONST_METHOD0(GetCurrentState,
48 RemoteServiceState()); 48 RemoteServiceState());
49 49
50 // Send notifications to the observers. 50 // Send notifications to the observers.
51 // Can be used in the mock implementation. 51 // Can be used in the mock implementation.
52 void NotifyRemoteChangeAvailable(int64 pending_changes); 52 void NotifyRemoteChangeQueueUpdated(int64 pending_changes);
53 void NotifyRemoteServiceStateUpdated( 53 void NotifyRemoteServiceStateUpdated(
54 RemoteServiceState state, 54 RemoteServiceState state,
55 const std::string& description); 55 const std::string& description);
56 56
57 // Sets a mock local change processor. The value is returned by 57 // Sets a mock local change processor. The value is returned by
58 // the default action for GetLocalChangeProcessor. 58 // the default action for GetLocalChangeProcessor.
59 // Sets conflict file information. The information is returned by 59 // Sets conflict file information. The information is returned by
60 // the default action for GetConflictFiles and GetRemoteConflictFileInfo. 60 // the default action for GetConflictFiles and GetRemoteConflictFileInfo.
61 void add_conflict_file(const fileapi::FileSystemURL& url, 61 void add_conflict_file(const fileapi::FileSystemURL& url,
62 const fileapi::SyncFileMetadata& metadata) { 62 const fileapi::SyncFileMetadata& metadata) {
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
99 MockLocalChangeProcessor mock_local_change_processor_; 99 MockLocalChangeProcessor mock_local_change_processor_;
100 100
101 ObserverList<Observer> observers_; 101 ObserverList<Observer> observers_;
102 102
103 DISALLOW_COPY_AND_ASSIGN(MockRemoteFileSyncService); 103 DISALLOW_COPY_AND_ASSIGN(MockRemoteFileSyncService);
104 }; 104 };
105 105
106 } // namespace sync_file_system 106 } // namespace sync_file_system
107 107
108 #endif // CHROME_BROWSER_SYNC_FILE_SYSTEM_MOCK_REMOTE_FILE_SYNC_SERVICE_H_ 108 #endif // CHROME_BROWSER_SYNC_FILE_SYSTEM_MOCK_REMOTE_FILE_SYNC_SERVICE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698