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 CHROME_BROWSER_NOTIFICATIONS_NOTIFICATION_TEST_UTIL_H_ | 5 #ifndef CHROME_BROWSER_NOTIFICATIONS_NOTIFICATION_TEST_UTIL_H_ |
6 #define CHROME_BROWSER_NOTIFICATIONS_NOTIFICATION_TEST_UTIL_H_ | 6 #define CHROME_BROWSER_NOTIFICATIONS_NOTIFICATION_TEST_UTIL_H_ |
7 #pragma once | |
8 | 7 |
9 #include <string> | 8 #include <string> |
10 | 9 |
11 #include "chrome/browser/notifications/notification_object_proxy.h" | 10 #include "chrome/browser/notifications/notification_object_proxy.h" |
12 #include "chrome/browser/notifications/balloon.h" | 11 #include "chrome/browser/notifications/balloon.h" |
13 #include "ui/gfx/size.h" | 12 #include "ui/gfx/size.h" |
14 | 13 |
15 // NotificationDelegate which does nothing, useful for testing when | 14 // NotificationDelegate which does nothing, useful for testing when |
16 // the notification events are not important. | 15 // the notification events are not important. |
17 class MockNotificationDelegate : public NotificationDelegate { | 16 class MockNotificationDelegate : public NotificationDelegate { |
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
91 virtual void Close(bool by_user) OVERRIDE; | 90 virtual void Close(bool by_user) OVERRIDE; |
92 virtual gfx::Size GetSize() const OVERRIDE; | 91 virtual gfx::Size GetSize() const OVERRIDE; |
93 virtual BalloonHost* GetHost() const OVERRIDE; | 92 virtual BalloonHost* GetHost() const OVERRIDE; |
94 | 93 |
95 private: | 94 private: |
96 // Non-owned pointer. | 95 // Non-owned pointer. |
97 Balloon* balloon_; | 96 Balloon* balloon_; |
98 }; | 97 }; |
99 | 98 |
100 #endif // CHROME_BROWSER_NOTIFICATIONS_NOTIFICATION_TEST_UTIL_H_ | 99 #endif // CHROME_BROWSER_NOTIFICATIONS_NOTIFICATION_TEST_UTIL_H_ |
OLD | NEW |