Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(956)

Side by Side Diff: chrome/browser/sync/api/syncable_service_mock.h

Issue 7497014: Revert 94128 - [Sync] Refactor sync datatype error handling. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/browser/sync/api/syncable_service.h ('k') | chrome/browser/sync/backend_migrator.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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/tracked.h" 9 #include "base/tracked.h"
10 #include "chrome/browser/sync/api/syncable_service.h" 10 #include "chrome/browser/sync/api/syncable_service.h"
11 #include "chrome/browser/sync/api/sync_change.h" 11 #include "chrome/browser/sync/api/sync_change.h"
12 #include "testing/gmock/include/gmock/gmock.h" 12 #include "testing/gmock/include/gmock/gmock.h"
13 13
14 class SyncableServiceMock : public SyncableService { 14 class SyncableServiceMock : public SyncableService {
15 public: 15 public:
16 SyncableServiceMock(); 16 SyncableServiceMock();
17 virtual ~SyncableServiceMock(); 17 virtual ~SyncableServiceMock();
18 18
19 MOCK_METHOD3(MergeDataAndStartSyncing, 19 MOCK_METHOD3(MergeDataAndStartSyncing, bool(
20 SyncError(syncable::ModelType, 20 syncable::ModelType, const SyncDataList&,
21 const SyncDataList&, 21 SyncChangeProcessor* sync_processor));
22 SyncChangeProcessor* sync_processor));
23 MOCK_METHOD1(StopSyncing, void(syncable::ModelType)); 22 MOCK_METHOD1(StopSyncing, void(syncable::ModelType));
24 MOCK_CONST_METHOD1(GetAllSyncData, SyncDataList(syncable::ModelType type)); 23 MOCK_CONST_METHOD1(GetAllSyncData, SyncDataList(syncable::ModelType));
25 MOCK_METHOD2(ProcessSyncChanges, 24 MOCK_METHOD2(ProcessSyncChanges,
26 SyncError(const tracked_objects::Location&, 25 void(const tracked_objects::Location&, const SyncChangeList&));
27 const SyncChangeList&));
28 }; 26 };
29 27
30 #endif // CHROME_BROWSER_SYNC_API_SYNCABLE_SERVICE_MOCK_H_ 28 #endif // CHROME_BROWSER_SYNC_API_SYNCABLE_SERVICE_MOCK_H_
OLDNEW
« no previous file with comments | « chrome/browser/sync/api/syncable_service.h ('k') | chrome/browser/sync/backend_migrator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698