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. 4 5 #ifndef CHROME_BROWSER_SYNC_GLUE_DATA_TYPE_MANAGER_MOCK_H__ 6 #define CHROME_BROWSER_SYNC_GLUE_DATA_TYPE_MANAGER_MOCK_H__ 7 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" 12 13 namespace browser_sync { 14 15 class DataTypeManagerMock : public DataTypeManager { 16 public: 17 DataTypeManagerMock(); 18 virtual ~DataTypeManagerMock(); 19 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()); 26 27 private: 28 browser_sync::DataTypeManager::ConfigureResult result_; 29 }; 30 31 } // namespace browser_sync 32 33 #endif // CHROME_BROWSER_SYNC_GLUE_DATA_TYPE_MANAGER_MOCK_H__ 34