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

Side by Side Diff: chrome/browser/sync/glue/sync_backend_host_mock.h

Issue 6874018: make new syncer thread the default. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Upload before submit. Created 9 years, 8 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
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_GLUE_SYNC_BACKEND_HOST_MOCK_H__ 5 #ifndef CHROME_BROWSER_SYNC_GLUE_SYNC_BACKEND_HOST_MOCK_H__
6 #define CHROME_BROWSER_SYNC_GLUE_SYNC_BACKEND_HOST_MOCK_H__ 6 #define CHROME_BROWSER_SYNC_GLUE_SYNC_BACKEND_HOST_MOCK_H__
7 #pragma once 7 #pragma once
8 8
9 #include <set> 9 #include <set>
10 10
11 #include "base/task.h" 11 #include "base/task.h"
12 #include "chrome/browser/sync/glue/sync_backend_host.h" 12 #include "chrome/browser/sync/glue/sync_backend_host.h"
13 #include "chrome/browser/sync/profile_sync_test_util.h" 13 #include "chrome/browser/sync/profile_sync_test_util.h"
14 #include "content/common/notification_type.h" 14 #include "content/common/notification_type.h"
15 #include "testing/gmock/include/gmock/gmock.h" 15 #include "testing/gmock/include/gmock/gmock.h"
16 16
17 namespace browser_sync { 17 namespace browser_sync {
18 18
19 class SyncBackendHostMock : public SyncBackendHost { 19 class SyncBackendHostMock : public SyncBackendHost {
20 public: 20 public:
21 SyncBackendHostMock(); 21 SyncBackendHostMock();
22 virtual ~SyncBackendHostMock(); 22 virtual ~SyncBackendHostMock();
23 23
24 MOCK_METHOD3(ConfigureDataTypes, 24 MOCK_METHOD3(ConfigureDataTypes,
25 void(const DataTypeController::TypeMap&, 25 void(const DataTypeController::TypeMap&,
26 const std::set<syncable::ModelType>&, CancelableTask*)); 26 const std::set<syncable::ModelType>&, CancelableTask*));
27 MOCK_METHOD0(RequestPause, bool());
28 MOCK_METHOD0(RequestResume, bool());
29 MOCK_METHOD0(StartSyncingWithServer, void()); 27 MOCK_METHOD0(StartSyncingWithServer, void());
30 }; 28 };
31 29
32 } // namespace browser_sync 30 } // namespace browser_sync
33 31
34 #endif // CHROME_BROWSER_SYNC_GLUE_SYNC_BACKEND_HOST_MOCK_H__ 32 #endif // CHROME_BROWSER_SYNC_GLUE_SYNC_BACKEND_HOST_MOCK_H__
OLDNEW
« no previous file with comments | « chrome/browser/sync/glue/sync_backend_host.cc ('k') | chrome/browser/sync/glue/sync_backend_host_mock.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698