• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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_GLUE_SYNC_BACKEND_HOST_MOCK_H__
6 #define CHROME_BROWSER_SYNC_GLUE_SYNC_BACKEND_HOST_MOCK_H__
7 #pragma once
8 
9 #include <set>
10 
11 #include "base/task.h"
12 #include "chrome/browser/sync/glue/sync_backend_host.h"
13 #include "chrome/browser/sync/profile_sync_test_util.h"
14 #include "content/common/notification_type.h"
15 #include "testing/gmock/include/gmock/gmock.h"
16 
17 namespace browser_sync {
18 
19 class SyncBackendHostMock : public SyncBackendHost {
20  public:
21   SyncBackendHostMock();
22   virtual ~SyncBackendHostMock();
23 
24   MOCK_METHOD3(ConfigureDataTypes,
25                void(const DataTypeController::TypeMap&,
26                     const std::set<syncable::ModelType>&, CancelableTask*));
27   MOCK_METHOD0(StartSyncingWithServer, void());
28 };
29 
30 }  // namespace browser_sync
31 
32 #endif  // CHROME_BROWSER_SYNC_GLUE_SYNC_BACKEND_HOST_MOCK_H__
33