#include "ui/message_center/views/message_popup_collection.h"
#include <vector>
#include "base/memory/raw_ptr.h"
#include "base/strings/string_number_conversions.h"
#include "base/strings/utf_string_conversions.h"
#include "build/build_config.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "ui/accessibility/ax_node.h"
#include "ui/display/display.h"
#include "ui/events/base_event_utils.h"
#include "ui/gfx/animation/linear_animation.h"
#include "ui/message_center/message_center.h"
#include "ui/message_center/public/cpp/message_center_constants.h"
#include "ui/message_center/public/cpp/notification_types.h"
#include "ui/message_center/views/desktop_message_popup_collection.h"
#include "ui/message_center/views/message_popup_view.h"
#include "ui/message_center/views/notification_view.h"
#include "ui/views/accessibility/view_accessibility.h"
#include "ui/views/test/views_test_base.h"
MessageCenter;
Notification;
namespace message_center {
namespace {
class MockMessagePopupView;
class MockMessagePopupCollection : public DesktopMessagePopupCollection { … };
class MockMessagePopupView : public MessagePopupView { … };
MessagePopupView* MockMessagePopupCollection::CreatePopup(
const Notification& notification) { … }
}
class MessagePopupCollectionTest : public views::ViewsTestBase,
public MessageCenterObserver { … };
TEST_F(MessagePopupCollectionTest, Nothing) { … }
TEST_F(MessagePopupCollectionTest, FadeInFadeOutNotification) { … }
TEST_F(MessagePopupCollectionTest, FadeInMultipleNotifications) { … }
TEST_F(MessagePopupCollectionTest, UpdateContents) { … }
TEST_F(MessagePopupCollectionTest, DISABLED_UpdateContentsCausesPopupClose) { … }
TEST_F(MessagePopupCollectionTest, OnChildNotificationViewUpdated) { … }
TEST_F(MessagePopupCollectionTest, MessageCenterVisibility) { … }
TEST_F(MessagePopupCollectionTest, ShowCustomOnPrimaryDisplay) { … }
TEST_F(MessagePopupCollectionTest, NotShowCustomOnSubDisplay) { … }
TEST_F(MessagePopupCollectionTest, MixedFullscreenShow) { … }
TEST_F(MessagePopupCollectionTest, MixedFullscreenBlock) { … }
TEST_F(MessagePopupCollectionTest, NotificationsMoveDown) { … }
TEST_F(MessagePopupCollectionTest, PopupResized) { … }
TEST_F(MessagePopupCollectionTest, ExpandLatest) { … }
TEST_F(MessagePopupCollectionTest, ExpandLatestWithMoveDown) { … }
TEST_F(MessagePopupCollectionTest, HoverClose) { … }
TEST_F(MessagePopupCollectionTest, FocusedClose) { … }
TEST_F(MessagePopupCollectionTest, SlideOutClose) { … }
TEST_F(MessagePopupCollectionTest, TooTallNotification) { … }
TEST_F(MessagePopupCollectionTest, DisplaySizeChanged) { … }
TEST_F(MessagePopupCollectionTest, PopupResizedAndOverflown) { … }
TEST_F(MessagePopupCollectionTest, DismissOnClick) { … }
TEST_F(MessagePopupCollectionTest, NotDismissedOnClick) { … }
TEST_F(MessagePopupCollectionTest, PopupCollectionBounds) { … }
TEST_F(MessagePopupCollectionTest, PopupCollectionHeightChanged) { … }
TEST_F(MessagePopupCollectionTest, NotifySilentNotification) { … }
TEST_F(MessagePopupCollectionTest, DefaultPositioning) { … }
TEST_F(MessagePopupCollectionTest, DefaultPositioningWithRightTaskbar) { … }
TEST_F(MessagePopupCollectionTest, TopDownPositioningWithTopTaskbar) { … }
TEST_F(MessagePopupCollectionTest, TopDownPositioningWithLeftAndTopTaskbar) { … }
TEST_F(MessagePopupCollectionTest, TopDownPositioningWithBottomAndTopTaskbar) { … }
TEST_F(MessagePopupCollectionTest, LeftPositioningWithLeftTaskbar) { … }
TEST_F(MessagePopupCollectionTest, PopupWidgetClosedOutsideDuringFadeOut) { … }
TEST_F(MessagePopupCollectionTest, NotifyPopupClosedThenCloseAllPopups) { … }
TEST_F(MessagePopupCollectionTest, RemoveNotificationWhileAnimating) { … }
TEST_F(MessagePopupCollectionTest, AccessibileAttributes) { … }
}