OLD | NEW |
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/content_notification_types.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_METHOD5(ConfigureDataTypes, | 24 MOCK_METHOD5(ConfigureDataTypes, |
25 void(const DataTypeController::TypeMap&, | 25 void(const DataTypeController::TypeMap&, |
26 const std::set<syncable::ModelType>&, | 26 const std::set<syncable::ModelType>&, |
27 sync_api::ConfigureReason, | 27 sync_api::ConfigureReason, |
28 CancelableTask*, | 28 CancelableTask*, |
29 bool)); | 29 bool)); |
30 MOCK_METHOD0(StartSyncingWithServer, void()); | 30 MOCK_METHOD0(StartSyncingWithServer, void()); |
31 }; | 31 }; |
32 | 32 |
33 } // namespace browser_sync | 33 } // namespace browser_sync |
34 | 34 |
35 #endif // CHROME_BROWSER_SYNC_GLUE_SYNC_BACKEND_HOST_MOCK_H__ | 35 #endif // CHROME_BROWSER_SYNC_GLUE_SYNC_BACKEND_HOST_MOCK_H__ |
OLD | NEW |