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

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

Issue 11437044: Add RemoteChangeProcessor::ClearLocalChanges (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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_CHANGE_PROCESSOR_H_ 5 #ifndef CHROME_BROWSER_SYNC_FILE_SYSTEM_MOCK_REMOTE_CHANGE_PROCESSOR_H_
6 #define CHROME_BROWSER_SYNC_FILE_SYSTEM_MOCK_REMOTE_CHANGE_PROCESSOR_H_ 6 #define CHROME_BROWSER_SYNC_FILE_SYSTEM_MOCK_REMOTE_CHANGE_PROCESSOR_H_
7 7
8 #include "base/callback.h" 8 #include "base/callback.h"
9 #include "chrome/browser/sync_file_system/remote_change_processor.h" 9 #include "chrome/browser/sync_file_system/remote_change_processor.h"
10 #include "testing/gmock/include/gmock/gmock.h" 10 #include "testing/gmock/include/gmock/gmock.h"
(...skipping 15 matching lines...) Expand all
26 26
27 // RemoteChangeProcessor overrides. 27 // RemoteChangeProcessor overrides.
28 MOCK_METHOD2(PrepareForProcessRemoteChange, 28 MOCK_METHOD2(PrepareForProcessRemoteChange,
29 void(const fileapi::FileSystemURL& url, 29 void(const fileapi::FileSystemURL& url,
30 const PrepareChangeCallback& callback)); 30 const PrepareChangeCallback& callback));
31 MOCK_METHOD4(ApplyRemoteChange, 31 MOCK_METHOD4(ApplyRemoteChange,
32 void(const fileapi::FileChange& change, 32 void(const fileapi::FileChange& change,
33 const FilePath& local_path, 33 const FilePath& local_path,
34 const fileapi::FileSystemURL& url, 34 const fileapi::FileSystemURL& url,
35 const fileapi::SyncStatusCallback& callback)); 35 const fileapi::SyncStatusCallback& callback));
36 MOCK_METHOD2(ClearLocalChanges,
37 void(const fileapi::FileSystemURL& url,
38 const base::Closure& completion_callback));
36 MOCK_METHOD3(RecordFakeLocalChange, 39 MOCK_METHOD3(RecordFakeLocalChange,
37 void(const fileapi::FileSystemURL& url, 40 void(const fileapi::FileSystemURL& url,
38 const fileapi::FileChange& change, 41 const fileapi::FileChange& change,
39 const fileapi::SyncStatusCallback& callback)); 42 const fileapi::SyncStatusCallback& callback));
40 43
41 private: 44 private:
42 DISALLOW_COPY_AND_ASSIGN(MockRemoteChangeProcessor); 45 DISALLOW_COPY_AND_ASSIGN(MockRemoteChangeProcessor);
43 }; 46 };
44 47
45 } // namespace sync_file_system 48 } // namespace sync_file_system
46 49
47 #endif // CHROME_BROWSER_SYNC_FILE_SYSTEM_MOCK_REMOTE_CHANGE_PROCESSOR_H_ 50 #endif // CHROME_BROWSER_SYNC_FILE_SYSTEM_MOCK_REMOTE_CHANGE_PROCESSOR_H_
OLDNEW
« no previous file with comments | « chrome/browser/sync_file_system/local_file_sync_service.cc ('k') | chrome/browser/sync_file_system/remote_change_processor.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698