| 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_SYNCABLE_SERVICE_MOCK_H_ | |
| 6 #define CHROME_BROWSER_SYNC_SYNCABLE_SERVICE_MOCK_H_ | |
| 7 #pragma once | |
| 8 | |
| 9 #include "chrome/browser/sync/syncable_service.h" | |
| 10 #include "testing/gmock/include/gmock/gmock.h" | |
| 11 | |
| 12 class SyncableServiceMock : public SyncableService { | |
| 13 public: | |
| 14 SyncableServiceMock(); | |
| 15 virtual ~SyncableServiceMock(); | |
| 16 | |
| 17 MOCK_METHOD0(AssociateModels, bool()); | |
| 18 MOCK_METHOD0(DisassociateModels, bool()); | |
| 19 MOCK_METHOD1(SyncModelHasUserCreatedNodes, bool(bool* has_nodes)); | |
| 20 MOCK_METHOD0(AbortAssociation, void()); | |
| 21 MOCK_METHOD0(CryptoReadyIfNecessary, bool()); | |
| 22 MOCK_METHOD3(ApplyChangesFromSync, void( | |
| 23 const sync_api::BaseTransaction* trans, | |
| 24 const sync_api::SyncManager::ChangeRecord* changes, | |
| 25 int change_count)); | |
| 26 MOCK_METHOD2(SetupSync, void( | |
| 27 ProfileSyncService* sync_service, | |
| 28 browser_sync::GenericChangeProcessor* change_processor)); | |
| 29 }; | |
| 30 | |
| 31 #endif // CHROME_BROWSER_SYNC_SYNCABLE_SERVICE_MOCK_H_ | |
| OLD | NEW |