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

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

Issue 268413002: [SyncFS] Make DumpFiles async (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 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
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 <string> 8 #include <string>
9 9
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 ConflictResolutionPolicy(const GURL&)); 63 ConflictResolutionPolicy(const GURL&));
64 MOCK_METHOD2(GetRemoteVersions, 64 MOCK_METHOD2(GetRemoteVersions,
65 void(const fileapi::FileSystemURL&, 65 void(const fileapi::FileSystemURL&,
66 const RemoteVersionsCallback&)); 66 const RemoteVersionsCallback&));
67 MOCK_METHOD3(DownloadRemoteVersion, 67 MOCK_METHOD3(DownloadRemoteVersion,
68 void(const fileapi::FileSystemURL&, 68 void(const fileapi::FileSystemURL&,
69 const std::string&, 69 const std::string&,
70 const DownloadVersionCallback&)); 70 const DownloadVersionCallback&));
71 MOCK_METHOD0(PromoteDemotedChanges, void()); 71 MOCK_METHOD0(PromoteDemotedChanges, void());
72 72
73 virtual scoped_ptr<base::ListValue> DumpFiles(const GURL& origin) OVERRIDE; 73 virtual void DumpFiles(const GURL& origin,
74 const ListCallback& callback) OVERRIDE;
74 virtual scoped_ptr<base::ListValue> DumpDatabase() OVERRIDE; 75 virtual scoped_ptr<base::ListValue> DumpDatabase() OVERRIDE;
75 76
76 void SetServiceState(RemoteServiceState state); 77 void SetServiceState(RemoteServiceState state);
77 78
78 // Send notifications to the observers. 79 // Send notifications to the observers.
79 // Can be used in the mock implementation. 80 // Can be used in the mock implementation.
80 void NotifyRemoteChangeQueueUpdated(int64 pending_changes); 81 void NotifyRemoteChangeQueueUpdated(int64 pending_changes);
81 void NotifyRemoteServiceStateUpdated( 82 void NotifyRemoteServiceStateUpdated(
82 RemoteServiceState state, 83 RemoteServiceState state,
83 const std::string& description); 84 const std::string& description);
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
115 ConflictResolutionPolicy conflict_resolution_policy_; 116 ConflictResolutionPolicy conflict_resolution_policy_;
116 117
117 RemoteServiceState state_; 118 RemoteServiceState state_;
118 119
119 DISALLOW_COPY_AND_ASSIGN(MockRemoteFileSyncService); 120 DISALLOW_COPY_AND_ASSIGN(MockRemoteFileSyncService);
120 }; 121 };
121 122
122 } // namespace sync_file_system 123 } // namespace sync_file_system
123 124
124 #endif // CHROME_BROWSER_SYNC_FILE_SYSTEM_MOCK_REMOTE_FILE_SYNC_SERVICE_H_ 125 #endif // CHROME_BROWSER_SYNC_FILE_SYSTEM_MOCK_REMOTE_FILE_SYNC_SERVICE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698