OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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 UI_MESSAGE_CENTER_MESSAGE_CENTER_UTIL_H_ | 5 #ifndef UI_MESSAGE_CENTER_MESSAGE_CENTER_UTIL_H_ |
6 #define UI_MESSAGE_CENTER_MESSAGE_CENTER_UTIL_H_ | 6 #define UI_MESSAGE_CENTER_MESSAGE_CENTER_UTIL_H_ |
7 | 7 |
8 #include "ui/message_center/message_center_export.h" | 8 #include "ui/message_center/message_center_export.h" |
9 | 9 |
10 namespace message_center { | 10 namespace message_center { |
11 | 11 |
12 MESSAGE_CENTER_EXPORT bool IsRichNotificationEnabled(); | 12 MESSAGE_CENTER_EXPORT bool IsRichNotificationEnabled(); |
13 | 13 |
| 14 #define SKIP_THIS_TEST_IF_MESSAGE_CENTER_DISABLED() \ |
| 15 if (!message_center::IsRichNotificationEnabled()) { \ |
| 16 LOG(INFO) << "Test is skiped because Rich Notifications are disabled."; \ |
| 17 return; \ |
| 18 } |
| 19 |
14 } // namespace message_center | 20 } // namespace message_center |
15 | 21 |
16 #endif // UI_MESSAGE_CENTER_MESSAGE_CENTER_UTIL_H_ | 22 #endif // UI_MESSAGE_CENTER_MESSAGE_CENTER_UTIL_H_ |
OLD | NEW |