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