Upstream version 5.34.104.0
[platform/framework/web/crosswalk.git] / src / components / sync_driver / data_type_manager_mock.h
1 // Copyright 2014 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 COMPONENTS_SYNC_DRIVER_DATA_TYPE_MANAGER_MOCK_H__
6 #define COMPONENTS_SYNC_DRIVER_DATA_TYPE_MANAGER_MOCK_H__
7
8 #include "components/sync_driver/data_type_manager.h"
9 #include "sync/api/sync_error.h"
10 #include "testing/gmock/include/gmock/gmock.h"
11
12 namespace browser_sync {
13
14 class DataTypeManagerMock : public DataTypeManager {
15  public:
16   DataTypeManagerMock();
17   virtual ~DataTypeManagerMock();
18
19   MOCK_METHOD2(Configure, void(syncer::ModelTypeSet, syncer::ConfigureReason));
20   MOCK_METHOD2(PurgeForMigration, void(syncer::ModelTypeSet,
21                                        syncer::ConfigureReason));
22   MOCK_METHOD0(Stop, void());
23   MOCK_METHOD0(controllers, const DataTypeController::TypeMap&());
24   MOCK_CONST_METHOD0(state, State());
25
26  private:
27   browser_sync::DataTypeManager::ConfigureResult result_;
28 };
29
30 }  // namespace browser_sync
31
32 #endif  // COMPONENTS_SYNC_DRIVER_DATA_TYPE_MANAGER_MOCK_H__