| 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/callback_forward.h" | 11 #include "base/callback_forward.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/public/browser/notification_types.h" | 14 #include "content/public/browser/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_METHOD6(ConfigureDataTypes, |
| 25 void(syncable::ModelTypeSet, | 25 void(syncable::ModelTypeSet, |
| 26 syncable::ModelTypeSet, | 26 syncable::ModelTypeSet, |
| 27 sync_api::ConfigureReason, | 27 sync_api::ConfigureReason, |
| 28 base::Callback<void(syncable::ModelTypeSet)>, | 28 base::Callback<void(syncable::ModelTypeSet)>, |
| 29 base::Callback<void()>, |
| 29 bool)); | 30 bool)); |
| 30 MOCK_METHOD0(StartSyncingWithServer, void()); | 31 MOCK_METHOD0(StartSyncingWithServer, void()); |
| 31 }; | 32 }; |
| 32 | 33 |
| 33 } // namespace browser_sync | 34 } // namespace browser_sync |
| 34 | 35 |
| 35 #endif // CHROME_BROWSER_SYNC_GLUE_SYNC_BACKEND_HOST_MOCK_H__ | 36 #endif // CHROME_BROWSER_SYNC_GLUE_SYNC_BACKEND_HOST_MOCK_H__ |
| OLD | NEW |