#include "chrome/browser/ui/global_media_controls/media_toolbar_button_controller.h"
#include "base/unguessable_token.h"
#include "chrome/browser/ui/global_media_controls/media_toolbar_button_controller_delegate.h"
#include "components/global_media_controls/public/test/mock_media_item_manager.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
NiceMock;
ReturnPointee;
namespace {
class MockMediaToolbarButtonControllerDelegate
: public MediaToolbarButtonControllerDelegate { … };
}
class MediaToolbarButtonControllerTest : public testing::Test { … };
TEST_F(MediaToolbarButtonControllerTest, HidesAfterTimeoutAndShowsAgainOnPlay) { … }
TEST_F(MediaToolbarButtonControllerTest, DoesNotDisableButtonIfDialogIsOpen) { … }
TEST_F(MediaToolbarButtonControllerTest,
DoesNotHideIfMediaStartsPlayingWithinTimeout) { … }