Only allow leveldb to use the minimum amount of file descriptors.
[chromium-blink-merge.git] / chrome / browser / sync_file_system / mock_local_change_processor.cc
blobabff3af2ab4ce3e754373c74aea021d976aa0732
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 #include "chrome/browser/sync_file_system/mock_local_change_processor.h"
7 #include "base/bind.h"
8 #include "base/location.h"
9 #include "base/message_loop/message_loop_proxy.h"
10 #include "webkit/browser/fileapi/file_system_url.h"
11 #include "webkit/browser/fileapi/syncable/file_change.h"
12 #include "webkit/browser/fileapi/syncable/sync_file_metadata.h"
14 using ::testing::_;
15 using ::testing::Invoke;
16 using ::testing::Return;
18 namespace sync_file_system {
20 MockLocalChangeProcessor::MockLocalChangeProcessor() {
21 ON_CALL(*this, ApplyLocalChange(_, _, _, _, _))
22 .WillByDefault(Invoke(this,
23 &MockLocalChangeProcessor::ApplyLocalChangeStub));
26 MockLocalChangeProcessor::~MockLocalChangeProcessor() {
29 void MockLocalChangeProcessor::ApplyLocalChangeStub(
30 const FileChange& change,
31 const base::FilePath& local_file_path,
32 const SyncFileMetadata& local_file_metadata,
33 const fileapi::FileSystemURL& url,
34 const SyncStatusCallback& callback) {
35 base::MessageLoopProxy::current()->PostTask(
36 FROM_HERE, base::Bind(callback, SYNC_STATUS_OK));
39 } // namespace sync_file_system