#include "chrome/browser/ui/global_media_controls/cast_media_session_controller.h"
#include <memory>
#include <utility>
#include "base/time/time.h"
#include "components/media_router/common/mojom/media_status.mojom.h"
#include "content/public/browser/browser_task_traits.h"
#include "content/public/browser/browser_thread.h"
#include "content/public/test/browser_task_environment.h"
#include "mojo/public/cpp/bindings/receiver.h"
#include "services/media_session/public/mojom/constants.mojom.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
MediaSessionAction;
namespace {
constexpr base::TimeDelta kDefaultSeekSeconds = …;
}
class MockMediaController : public media_router::mojom::MediaController { … };
class CastMediaSessionControllerTest : public testing::Test { … };
TEST_F(CastMediaSessionControllerTest, SendPlayCommand) { … }
TEST_F(CastMediaSessionControllerTest, SendPauseCommand) { … }
TEST_F(CastMediaSessionControllerTest, SendPreviousTrackCommand) { … }
TEST_F(CastMediaSessionControllerTest, SendNextTrackCommand) { … }
TEST_F(CastMediaSessionControllerTest, SendSeekBackwardCommand) { … }
TEST_F(CastMediaSessionControllerTest, SeekBackwardOutOfRange) { … }
TEST_F(CastMediaSessionControllerTest, SeekBackwardAfterWaiting) { … }
TEST_F(CastMediaSessionControllerTest, SendSeekForwardCommand) { … }
TEST_F(CastMediaSessionControllerTest, SeekForwardOutOfRange) { … }
TEST_F(CastMediaSessionControllerTest, SeekForwardAfterWaiting) { … }
TEST_F(CastMediaSessionControllerTest, SendStopCommand) { … }
TEST_F(CastMediaSessionControllerTest, SeekTo) { … }
TEST_F(CastMediaSessionControllerTest, SetMute) { … }
TEST_F(CastMediaSessionControllerTest, SetVolume) { … }
TEST_F(CastMediaSessionControllerTest, IncrementCurrentTime) { … }