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

Unified Diff: chrome/browser/sync/syncable_service_mock.h

Issue 6905044: Refactor preference syncing. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Really fix. And rebase 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 side-by-side diff with in-line comments
Download patch
« 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 »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/sync/syncable_service_mock.h
diff --git a/chrome/browser/sync/syncable_service_mock.h b/chrome/browser/sync/syncable_service_mock.h
new file mode 100644
index 0000000000000000000000000000000000000000..b1ea235cffd4bb73d83be7312a568ca15b827b14
--- /dev/null
+++ b/chrome/browser/sync/syncable_service_mock.h
@@ -0,0 +1,31 @@
+// Copyright (c) 2011 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CHROME_BROWSER_SYNC_SYNCABLE_SERVICE_MOCK_H_
+#define CHROME_BROWSER_SYNC_SYNCABLE_SERVICE_MOCK_H_
+#pragma once
+
+#include "chrome/browser/sync/syncable_service.h"
+#include "testing/gmock/include/gmock/gmock.h"
+
+class SyncableServiceMock : public SyncableService {
+ public:
+ SyncableServiceMock();
+ virtual ~SyncableServiceMock();
+
+ MOCK_METHOD0(AssociateModels, bool());
+ MOCK_METHOD0(DisassociateModels, bool());
+ MOCK_METHOD1(SyncModelHasUserCreatedNodes, bool(bool* has_nodes));
+ MOCK_METHOD0(AbortAssociation, void());
+ MOCK_METHOD0(CryptoReadyIfNecessary, bool());
+ MOCK_METHOD3(ApplyChangesFromSync, void(
+ const sync_api::BaseTransaction* trans,
+ const sync_api::SyncManager::ChangeRecord* changes,
+ int change_count));
+ MOCK_METHOD2(SetupSync, void(
+ ProfileSyncService* sync_service,
+ browser_sync::GenericChangeProcessor* change_processor));
+};
+
+#endif // CHROME_BROWSER_SYNC_SYNCABLE_SERVICE_MOCK_H_
« 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