Index: ui/message_center/message_center_util.h |
diff --git a/ui/message_center/message_center_util.h b/ui/message_center/message_center_util.h |
index 512cb1a6f6ea1f63093c1dc30bb38303a67c2cbe..fb21ce92bc41a6a68a5780d98494fc3be84d2507 100644 |
--- a/ui/message_center/message_center_util.h |
+++ b/ui/message_center/message_center_util.h |
@@ -11,6 +11,12 @@ namespace message_center { |
MESSAGE_CENTER_EXPORT bool IsRichNotificationEnabled(); |
+#define SKIP_THIS_TEST_IF_MESSAGE_CENTER_DISABLED() \ |
+ if (!message_center::IsRichNotificationEnabled()) { \ |
+ LOG(INFO) << "Test is skiped because Rich Notifications are disabled."; \ |
+ return; \ |
+ } |
+ |
} // namespace message_center |
#endif // UI_MESSAGE_CENTER_MESSAGE_CENTER_UTIL_H_ |