Only allow leveldb to use the minimum amount of file descriptors.
[chromium-blink-merge.git] / chrome / browser / sync_file_system / mock_remote_change_processor.h
blob50116af51ff391eac3131fddeb2e31bdb95690c5
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
3 // found in the LICENSE file.
5 #ifndef CHROME_BROWSER_SYNC_FILE_SYSTEM_MOCK_REMOTE_CHANGE_PROCESSOR_H_
6 #define CHROME_BROWSER_SYNC_FILE_SYSTEM_MOCK_REMOTE_CHANGE_PROCESSOR_H_
8 #include "base/callback.h"
9 #include "chrome/browser/sync_file_system/remote_change_processor.h"
10 #include "testing/gmock/include/gmock/gmock.h"
11 #include "webkit/browser/fileapi/syncable/file_change.h"
12 #include "webkit/browser/fileapi/syncable/sync_callbacks.h"
14 namespace base {
15 class FilePath;
18 namespace fileapi {
19 class FileSystemURL;
22 namespace sync_file_system {
24 class MockRemoteChangeProcessor : public RemoteChangeProcessor {
25 public:
26 MockRemoteChangeProcessor();
27 virtual ~MockRemoteChangeProcessor();
29 // RemoteChangeProcessor overrides.
30 MOCK_METHOD2(PrepareForProcessRemoteChange,
31 void(const fileapi::FileSystemURL& url,
32 const PrepareChangeCallback& callback));
33 MOCK_METHOD4(ApplyRemoteChange,
34 void(const FileChange& change,
35 const base::FilePath& local_path,
36 const fileapi::FileSystemURL& url,
37 const SyncStatusCallback& callback));
38 MOCK_METHOD2(ClearLocalChanges,
39 void(const fileapi::FileSystemURL& url,
40 const base::Closure& completion_callback));
41 MOCK_METHOD3(RecordFakeLocalChange,
42 void(const fileapi::FileSystemURL& url,
43 const FileChange& change,
44 const SyncStatusCallback& callback));
46 private:
47 DISALLOW_COPY_AND_ASSIGN(MockRemoteChangeProcessor);
50 } // namespace sync_file_system
52 #endif // CHROME_BROWSER_SYNC_FILE_SYSTEM_MOCK_REMOTE_CHANGE_PROCESSOR_H_