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

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

Issue 12315004: Migrated sync_file_type and file_change from namespace fileapi to sync_file_system. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 10 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_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 14 matching lines...) Expand all
25 public: 25 public:
26 MockRemoteChangeProcessor(); 26 MockRemoteChangeProcessor();
27 virtual ~MockRemoteChangeProcessor(); 27 virtual ~MockRemoteChangeProcessor();
28 28
29 // RemoteChangeProcessor overrides. 29 // RemoteChangeProcessor overrides.
30 MOCK_METHOD3(PrepareForProcessRemoteChange, 30 MOCK_METHOD3(PrepareForProcessRemoteChange,
31 void(const fileapi::FileSystemURL& url, 31 void(const fileapi::FileSystemURL& url,
32 const std::string& service_name, 32 const std::string& service_name,
33 const PrepareChangeCallback& callback)); 33 const PrepareChangeCallback& callback));
34 MOCK_METHOD4(ApplyRemoteChange, 34 MOCK_METHOD4(ApplyRemoteChange,
35 void(const fileapi::FileChange& change, 35 void(const FileChange& change,
36 const base::FilePath& local_path, 36 const base::FilePath& local_path,
37 const fileapi::FileSystemURL& url, 37 const fileapi::FileSystemURL& url,
38 const fileapi::SyncStatusCallback& callback)); 38 const fileapi::SyncStatusCallback& callback));
39 MOCK_METHOD2(ClearLocalChanges, 39 MOCK_METHOD2(ClearLocalChanges,
40 void(const fileapi::FileSystemURL& url, 40 void(const fileapi::FileSystemURL& url,
41 const base::Closure& completion_callback)); 41 const base::Closure& completion_callback));
42 MOCK_METHOD3(RecordFakeLocalChange, 42 MOCK_METHOD3(RecordFakeLocalChange,
43 void(const fileapi::FileSystemURL& url, 43 void(const fileapi::FileSystemURL& url,
44 const fileapi::FileChange& change, 44 const FileChange& change,
45 const fileapi::SyncStatusCallback& callback)); 45 const fileapi::SyncStatusCallback& callback));
46 46
47 private: 47 private:
48 DISALLOW_COPY_AND_ASSIGN(MockRemoteChangeProcessor); 48 DISALLOW_COPY_AND_ASSIGN(MockRemoteChangeProcessor);
49 }; 49 };
50 50
51 } // namespace sync_file_system 51 } // namespace sync_file_system
52 52
53 #endif // CHROME_BROWSER_SYNC_FILE_SYSTEM_MOCK_REMOTE_CHANGE_PROCESSOR_H_ 53 #endif // CHROME_BROWSER_SYNC_FILE_SYSTEM_MOCK_REMOTE_CHANGE_PROCESSOR_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698