change_processor_mock.h revision c407dc5cd9bdc5668497f21b26b09d988ab439de
1// Copyright (c) 2010 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_GLUE_CHANGE_PROCESSOR_MOCK_H__
6#define CHROME_BROWSER_SYNC_GLUE_CHANGE_PROCESSOR_MOCK_H__
7
8#include "chrome/browser/profile.h"
9#include "chrome/browser/sync/engine/syncapi.h"
10#include "chrome/browser/sync/glue/change_processor.h"
11#include "chrome/browser/sync/syncable/syncable.h"
12#include "testing/gmock/include/gmock/gmock.h"
13
14namespace browser_sync {
15
16class ChangeProcessorMock : public ChangeProcessor {
17 public:
18  ChangeProcessorMock() : ChangeProcessor(NULL) {}
19  MOCK_METHOD3(ApplyChangesFromSyncModel,
20               void(const sync_api::BaseTransaction* trans,
21                    const sync_api::SyncManager::ChangeRecord* changes,
22                    int change_count));
23  MOCK_METHOD1(StartImpl, void(Profile* profile));
24  MOCK_METHOD0(StopImpl, void());
25  MOCK_CONST_METHOD0(IsRunning, bool());
26};
27
28}  // namespace browser_sync
29
30#endif  // CHROME_BROWSER_SYNC_GLUE_CHANGE_PROCESSOR_MOCK_H__
31