| 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 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "sync/notifier/sync_notifier_observer.h" | 10 #include "sync/notifier/sync_notifier_observer.h" |
| 11 #include "testing/gmock/include/gmock/gmock.h" | 11 #include "testing/gmock/include/gmock/gmock.h" |
| 12 | 12 |
| 13 namespace syncer { | 13 namespace syncer { |
| 14 | 14 |
| 15 class MockSyncNotifierObserver : public SyncNotifierObserver { | 15 class MockSyncNotifierObserver : public SyncNotifierObserver { |
| 16 public: | 16 public: |
| 17 MockSyncNotifierObserver(); | 17 MockSyncNotifierObserver(); |
| 18 virtual ~MockSyncNotifierObserver(); | 18 virtual ~MockSyncNotifierObserver(); |
| 19 | 19 |
| 20 MOCK_METHOD0(OnNotificationsEnabled, void()); | 20 MOCK_METHOD0(OnNotificationsEnabled, void()); |
| 21 MOCK_METHOD1(OnNotificationsDisabled, void(NotificationsDisabledReason)); | 21 MOCK_METHOD1(OnNotificationsDisabled, void(NotificationsDisabledReason)); |
| 22 MOCK_METHOD2(OnIncomingNotification, | 22 MOCK_METHOD2(OnIncomingNotification, |
| 23 void(const ObjectIdPayloadMap&, IncomingNotificationSource)); | 23 void(const ObjectIdStateMap&, IncomingNotificationSource)); |
| 24 }; | 24 }; |
| 25 | 25 |
| 26 } // namespace syncer | 26 } // namespace syncer |
| 27 | 27 |
| 28 #endif // SYNC_NOTIFIER_MOCK_SYNC_NOTIFIER_OBSERVER_H_ | 28 #endif // SYNC_NOTIFIER_MOCK_SYNC_NOTIFIER_OBSERVER_H_ |
| OLD | NEW |