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.
4
5#ifndef CHROME_BROWSER_SYNC_FILE_SYSTEM_MOCK_LOCAL_CHANGE_PROCESSOR_H_
6#define CHROME_BROWSER_SYNC_FILE_SYSTEM_MOCK_LOCAL_CHANGE_PROCESSOR_H_
7
8#include "base/basictypes.h"
9#include "chrome/browser/sync_file_system/local_change_processor.h"
10#include "testing/gmock/include/gmock/gmock.h"
11
12namespace sync_file_system {
13
14class MockLocalChangeProcessor : public LocalChangeProcessor {
15 public:
16  MockLocalChangeProcessor();
17  virtual ~MockLocalChangeProcessor();
18
19  // LocalChangeProcessor override.
20  MOCK_METHOD5(ApplyLocalChange,
21               void(const FileChange& change,
22                    const base::FilePath& local_file_path,
23                    const SyncFileMetadata& local_file_metadata,
24                    const storage::FileSystemURL& url,
25                    const SyncStatusCallback& callback));
26
27 private:
28  void ApplyLocalChangeStub(const FileChange& change,
29                            const base::FilePath& local_file_path,
30                            const SyncFileMetadata& local_file_metadata,
31                            const storage::FileSystemURL& url,
32                            const SyncStatusCallback& callback);
33
34  DISALLOW_COPY_AND_ASSIGN(MockLocalChangeProcessor);
35};
36
37}  // namespace sync_file_system
38
39#endif  // CHROME_BROWSER_SYNC_FILE_SYSTEM_MOCK_LOCAL_CHANGE_PROCESSOR_H_
40