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.
5 #ifndef CHROME_BROWSER_SYNC_GLUE_DATA_TYPE_MANAGER_MOCK_H__
6 #define CHROME_BROWSER_SYNC_GLUE_DATA_TYPE_MANAGER_MOCK_H__
8 #include "chrome/browser/sync/glue/data_type_manager.h"
9 #include "chrome/browser/sync/profile_sync_test_util.h"
10 #include "sync/api/sync_error.h"
11 #include "testing/gmock/include/gmock/gmock.h"
13 namespace browser_sync {
15 class DataTypeManagerMock : public DataTypeManager {
17 DataTypeManagerMock();
18 virtual ~DataTypeManagerMock();
20 MOCK_METHOD2(Configure, void(syncer::ModelTypeSet, syncer::ConfigureReason));
21 MOCK_METHOD2(PurgeForMigration, void(syncer::ModelTypeSet,
22 syncer::ConfigureReason));
23 MOCK_METHOD0(Stop, void());
24 MOCK_METHOD0(controllers, const DataTypeController::TypeMap&());
25 MOCK_CONST_METHOD0(state, State());
28 browser_sync::DataTypeManager::ConfigureResult result_;
31 } // namespace browser_sync
33 #endif // CHROME_BROWSER_SYNC_GLUE_DATA_TYPE_MANAGER_MOCK_H__