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 CONTENT_COMMON_NOTIFICATION_OBSERVER_MOCK_H_ | 5 #ifndef CONTENT_COMMON_NOTIFICATION_OBSERVER_MOCK_H_ |
6 #define CONTENT_COMMON_NOTIFICATION_OBSERVER_MOCK_H_ | 6 #define CONTENT_COMMON_NOTIFICATION_OBSERVER_MOCK_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
| 9 #include "content/common/content_notification_types.h" |
9 #include "content/common/notification_observer.h" | 10 #include "content/common/notification_observer.h" |
10 #include "content/common/notification_type.h" | |
11 #include "testing/gmock/include/gmock/gmock.h" | 11 #include "testing/gmock/include/gmock/gmock.h" |
12 | 12 |
13 class NotificationDetails; | 13 class NotificationDetails; |
14 class NotificationSource; | 14 class NotificationSource; |
15 | 15 |
16 class NotificationObserverMock : public NotificationObserver { | 16 class NotificationObserverMock : public NotificationObserver { |
17 public: | 17 public: |
18 NotificationObserverMock(); | 18 NotificationObserverMock(); |
19 virtual ~NotificationObserverMock(); | 19 virtual ~NotificationObserverMock(); |
20 | 20 |
21 MOCK_METHOD3(Observe, void(NotificationType type, | 21 MOCK_METHOD3(Observe, void(int type, |
22 const NotificationSource& source, | 22 const NotificationSource& source, |
23 const NotificationDetails& details)); | 23 const NotificationDetails& details)); |
24 }; | 24 }; |
25 | 25 |
26 #endif // CONTENT_COMMON_NOTIFICATION_OBSERVER_MOCK_H_ | 26 #endif // CONTENT_COMMON_NOTIFICATION_OBSERVER_MOCK_H_ |
OLD | NEW |