OLD | NEW |
(Empty) | |
| 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_API_SYNCABLE_SERVICE_MOCK_H_ |
| 6 #define CHROME_BROWSER_SYNC_API_SYNCABLE_SERVICE_MOCK_H_ |
| 7 #pragma once |
| 8 |
| 9 #include "chrome/browser/sync/api/syncable_service.h" |
| 10 #include "chrome/browser/sync/api/sync_change.h" |
| 11 #include "testing/gmock/include/gmock/gmock.h" |
| 12 |
| 13 class SyncableServiceMock : public SyncableService { |
| 14 public: |
| 15 SyncableServiceMock(); |
| 16 virtual ~SyncableServiceMock(); |
| 17 |
| 18 MOCK_METHOD3(MergeDataAndStartSyncing, bool( |
| 19 syncable::ModelType type, |
| 20 const SyncDataList& initial_sync_data, |
| 21 SyncChangeProcessor* sync_processor)); |
| 22 MOCK_METHOD1(StopSyncing, void(syncable::ModelType type)); |
| 23 MOCK_CONST_METHOD1(GetAllSyncData, SyncDataList(syncable::ModelType type)); |
| 24 MOCK_METHOD1(ProcessSyncChanges, void(const SyncChangeList& change_list)); |
| 25 }; |
| 26 |
| 27 #endif // CHROME_BROWSER_SYNC_API_SYNCABLE_SERVICE_MOCK_H_ |
OLD | NEW |