model_associator_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_MODEL_ASSOCIATOR_MOCK_H__
6#define CHROME_BROWSER_SYNC_GLUE_MODEL_ASSOCIATOR_MOCK_H__
7
8#include "chrome/browser/sync/glue/model_associator.h"
9#include "testing/gmock/include/gmock/gmock.h"
10
11namespace browser_sync {
12
13class ModelAssociatorMock : public AssociatorInterface {
14 public:
15  MOCK_METHOD0(AssociateModels, bool());
16  MOCK_METHOD0(DisassociateModels, bool());
17  MOCK_METHOD1(SyncModelHasUserCreatedNodes, bool(bool* has_nodes));
18  MOCK_METHOD0(AbortAssociation, void());
19};
20
21}  // namespace browser_sync
22
23#endif  // CHROME_BROWSER_SYNC_GLUE_MODEL_ASSOCIATOR_MOCK_H__
24