Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CHROME_BROWSER_SYNC_API_SYNCABLE_SERVICE_MOCK_H_ | 5 #ifndef CHROME_BROWSER_SYNC_API_SYNCABLE_SERVICE_MOCK_H_ |
| 6 #define CHROME_BROWSER_SYNC_API_SYNCABLE_SERVICE_MOCK_H_ | 6 #define CHROME_BROWSER_SYNC_API_SYNCABLE_SERVICE_MOCK_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include "base/location.h" | 9 #include "base/location.h" |
| 10 #include "base/memory/weak_ptr.h" | |
|
akalin
2011/10/13 00:08:16
still needed?
Nicolas Zea
2011/10/13 01:16:14
Done.
| |
| 10 #include "chrome/browser/sync/api/syncable_service.h" | 11 #include "chrome/browser/sync/api/syncable_service.h" |
| 11 #include "chrome/browser/sync/api/sync_change.h" | 12 #include "chrome/browser/sync/api/sync_change.h" |
| 12 #include "testing/gmock/include/gmock/gmock.h" | 13 #include "testing/gmock/include/gmock/gmock.h" |
| 13 | 14 |
| 14 class SyncableServiceMock : public SyncableService { | 15 class SyncableServiceMock : public SyncableService { |
| 15 public: | 16 public: |
| 16 SyncableServiceMock(); | 17 SyncableServiceMock(); |
| 17 virtual ~SyncableServiceMock(); | 18 virtual ~SyncableServiceMock(); |
| 18 | 19 |
| 19 MOCK_METHOD3(MergeDataAndStartSyncing, | 20 MOCK_METHOD3(MergeDataAndStartSyncing, |
| 20 SyncError(syncable::ModelType, | 21 SyncError(syncable::ModelType, |
| 21 const SyncDataList&, | 22 const SyncDataList&, |
| 22 SyncChangeProcessor* sync_processor)); | 23 SyncChangeProcessor* sync_processor)); |
| 23 MOCK_METHOD1(StopSyncing, void(syncable::ModelType)); | 24 MOCK_METHOD1(StopSyncing, void(syncable::ModelType)); |
| 24 MOCK_CONST_METHOD1(GetAllSyncData, SyncDataList(syncable::ModelType type)); | 25 MOCK_CONST_METHOD1(GetAllSyncData, SyncDataList(syncable::ModelType type)); |
| 25 MOCK_METHOD2(ProcessSyncChanges, | 26 MOCK_METHOD2(ProcessSyncChanges, |
| 26 SyncError(const tracked_objects::Location&, | 27 SyncError(const tracked_objects::Location&, |
| 27 const SyncChangeList&)); | 28 const SyncChangeList&)); |
| 28 }; | 29 }; |
| 29 | 30 |
| 30 #endif // CHROME_BROWSER_SYNC_API_SYNCABLE_SERVICE_MOCK_H_ | 31 #endif // CHROME_BROWSER_SYNC_API_SYNCABLE_SERVICE_MOCK_H_ |
| OLD | NEW |