#include "components/global_media_controls/public/views/media_item_ui_updated_view.h"
#include "base/test/metrics/histogram_tester.h"
#include "base/timer/mock_timer.h"
#include "components/global_media_controls/public/test/mock_media_item_ui_device_selector.h"
#include "components/global_media_controls/public/test/mock_media_item_ui_footer.h"
#include "components/global_media_controls/public/test/mock_media_item_ui_observer.h"
#include "components/global_media_controls/public/views/media_progress_view.h"
#include "components/media_message_center/mock_media_notification_item.h"
#include "components/strings/grit/components_strings.h"
#include "ui/base/l10n/l10n_util.h"
#include "ui/events/base_event_utils.h"
#include "ui/events/keycodes/dom/dom_code.h"
#include "ui/gfx/image/image_unittest_util.h"
#include "ui/views/accessibility/view_accessibility.h"
#include "ui/views/animation/ink_drop.h"
#include "ui/views/controls/image_view.h"
#include "ui/views/controls/label.h"
#include "ui/views/test/button_test_api.h"
#include "ui/views/test/views_test_base.h"
namespace global_media_controls {
MockMediaItemUIDeviceSelector;
MockMediaItemUIFooter;
MockMediaItemUIObserver;
MockMediaNotificationItem;
MediaSessionAction;
NiceMock;
Return;
namespace {
const char kTestId[] = …;
}
class MediaItemUIUpdatedViewTest : public views::ViewsTestBase { … };
TEST_F(MediaItemUIUpdatedViewTest, AccessibleProperties) { … }
TEST_F(MediaItemUIUpdatedViewTest, ProgressRowCheck) { … }
TEST_F(MediaItemUIUpdatedViewTest, OnMousePressed) { … }
TEST_F(MediaItemUIUpdatedViewTest,
UpdateWithMediaSessionInfoForPlayPauseButton) { … }
TEST_F(MediaItemUIUpdatedViewTest, UpdateWithMediaSessionInfoForPiPButton) { … }
TEST_F(MediaItemUIUpdatedViewTest, UpdateWithMediaMetadata) { … }
TEST_F(MediaItemUIUpdatedViewTest, UpdateWithMediaActions) { … }
TEST_F(MediaItemUIUpdatedViewTest, UpdateWithMediaArtwork) { … }
TEST_F(MediaItemUIUpdatedViewTest, UpdateWithFavicon) { … }
TEST_F(MediaItemUIUpdatedViewTest, MediaActionButtonPressed) { … }
TEST_F(MediaItemUIUpdatedViewTest, DeviceSelectorViewCheck) { … }
TEST_F(MediaItemUIUpdatedViewTest, DeviceSelectorViewIssueCheck) { … }
TEST_F(MediaItemUIUpdatedViewTest, FooterViewCheck) { … }
TEST_F(MediaItemUIUpdatedViewTest, DragProgressBackwardForPlayingMedia) { … }
TEST_F(MediaItemUIUpdatedViewTest, DragProgressForwardForPausedMedia) { … }
TEST_F(MediaItemUIUpdatedViewTest, TimestampLabelsCheck) { … }
TEST_F(MediaItemUIUpdatedViewTest, LiveMediaViewCheck) { … }
TEST_F(MediaItemUIUpdatedViewTest, LiveMediaViewWithMediaActionButtons) { … }
}