1// Copyright (c) 2011 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#pragma once
8
9#include "chrome/browser/sync/glue/model_associator.h"
10#include "testing/gmock/include/gmock/gmock.h"
11
12namespace browser_sync {
13
14class ModelAssociatorMock : public AssociatorInterface {
15 public:
16  ModelAssociatorMock();
17  virtual ~ModelAssociatorMock();
18
19  MOCK_METHOD0(AssociateModels, bool());
20  MOCK_METHOD0(DisassociateModels, bool());
21  MOCK_METHOD1(SyncModelHasUserCreatedNodes, bool(bool* has_nodes));
22  MOCK_METHOD0(AbortAssociation, void());
23  MOCK_METHOD0(CryptoReadyIfNecessary, bool());
24};
25
26}  // namespace browser_sync
27
28#endif  // CHROME_BROWSER_SYNC_GLUE_MODEL_ASSOCIATOR_MOCK_H__
29