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

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

Issue 6995008: Implement new SyncAPI and convert Preferences to it. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase and fix compile Created 9 years, 7 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/syncable_service.cc ('k') | chrome/browser/sync/syncable_service_mock.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(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_
OLDNEW
« no previous file with comments | « chrome/browser/sync/syncable_service.cc ('k') | chrome/browser/sync/syncable_service_mock.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698