This source file includes following definitions.
- ApplyLocalChangeStub
#include "chrome/browser/sync_file_system/mock_local_change_processor.h"
#include "base/bind.h"
#include "base/location.h"
#include "base/message_loop/message_loop_proxy.h"
#include "chrome/browser/sync_file_system/file_change.h"
#include "chrome/browser/sync_file_system/sync_file_metadata.h"
#include "webkit/browser/fileapi/file_system_url.h"
using ::testing::_;
using ::testing::Invoke;
using ::testing::Return;
namespace sync_file_system {
MockLocalChangeProcessor::MockLocalChangeProcessor() {
ON_CALL(*this, ApplyLocalChange(_, _, _, _, _))
.WillByDefault(Invoke(this,
&MockLocalChangeProcessor::ApplyLocalChangeStub));
}
MockLocalChangeProcessor::~MockLocalChangeProcessor() {
}
void MockLocalChangeProcessor::ApplyLocalChangeStub(
const FileChange& change,
const base::FilePath& local_file_path,
const SyncFileMetadata& local_file_metadata,
const fileapi::FileSystemURL& url,
const SyncStatusCallback& callback) {
base::MessageLoopProxy::current()->PostTask(
FROM_HERE, base::Bind(callback, SYNC_STATUS_OK));
}
}