OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 SYNC_NOTIFIER_MOCK_SYNC_NOTIFIER_OBSERVER_H_ | 5 #ifndef SYNC_NOTIFIER_MOCK_SYNC_NOTIFIER_OBSERVER_H_ |
6 #define SYNC_NOTIFIER_MOCK_SYNC_NOTIFIER_OBSERVER_H_ | 6 #define SYNC_NOTIFIER_MOCK_SYNC_NOTIFIER_OBSERVER_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 | 10 |
11 #include "sync/notifier/sync_notifier_observer.h" | 11 #include "sync/notifier/sync_notifier_observer.h" |
12 #include "testing/gmock/include/gmock/gmock.h" | 12 #include "testing/gmock/include/gmock/gmock.h" |
13 | 13 |
14 namespace syncer { | 14 namespace syncer { |
15 | 15 |
16 class MockSyncNotifierObserver : public SyncNotifierObserver { | 16 class MockSyncNotifierObserver : public SyncNotifierObserver { |
17 public: | 17 public: |
18 MockSyncNotifierObserver(); | 18 MockSyncNotifierObserver(); |
19 virtual ~MockSyncNotifierObserver(); | 19 virtual ~MockSyncNotifierObserver(); |
20 | 20 |
| 21 MOCK_METHOD0(GetHandledIds, ObjectIdSet()); |
21 MOCK_METHOD0(OnNotificationsEnabled, void()); | 22 MOCK_METHOD0(OnNotificationsEnabled, void()); |
22 MOCK_METHOD1(OnNotificationsDisabled, void(NotificationsDisabledReason)); | 23 MOCK_METHOD1(OnNotificationsDisabled, void(NotificationsDisabledReason)); |
23 MOCK_METHOD2(OnIncomingNotification, | 24 MOCK_METHOD2(OnIncomingNotification, |
24 void(const syncer::ModelTypePayloadMap&, | 25 void(const ObjectIdPayloadMap&, IncomingNotificationSource)); |
25 IncomingNotificationSource)); | |
26 }; | 26 }; |
27 | 27 |
28 } // namespace syncer | 28 } // namespace syncer |
29 | 29 |
30 #endif // SYNC_NOTIFIER_MOCK_SYNC_NOTIFIER_OBSERVER_H_ | 30 #endif // SYNC_NOTIFIER_MOCK_SYNC_NOTIFIER_OBSERVER_H_ |
OLD | NEW |