#include "services/media_session/public/cpp/test/test_media_controller.h"
namespace media_session {
namespace test {
TestMediaControllerImageObserver::TestMediaControllerImageObserver(
mojo::Remote<mojom::MediaController>& controller,
int minimum_size_px,
int desired_size_px) { … }
TestMediaControllerImageObserver::~TestMediaControllerImageObserver() = default;
void TestMediaControllerImageObserver::MediaControllerImageChanged(
mojom::MediaSessionImageType type,
const SkBitmap& bitmap) { … }
void TestMediaControllerImageObserver::MediaControllerChapterImageChanged(
int chapter_index,
const SkBitmap& bitmap) { … }
void TestMediaControllerImageObserver::WaitForExpectedImageOfType(
mojom::MediaSessionImageType type,
bool expect_null_image) { … }
void TestMediaControllerImageObserver::WaitForExpectedChapterImage(
int chapter_index,
bool expect_null_image) { … }
TestMediaControllerObserver::TestMediaControllerObserver(
mojo::Remote<mojom::MediaController>& media_controller) { … }
TestMediaControllerObserver::~TestMediaControllerObserver() = default;
void TestMediaControllerObserver::MediaSessionInfoChanged(
mojom::MediaSessionInfoPtr session) { … }
void TestMediaControllerObserver::MediaSessionMetadataChanged(
const std::optional<MediaMetadata>& metadata) { … }
void TestMediaControllerObserver::MediaSessionActionsChanged(
const std::vector<mojom::MediaSessionAction>& actions) { … }
void TestMediaControllerObserver::MediaSessionChanged(
const std::optional<base::UnguessableToken>& request_id) { … }
void TestMediaControllerObserver::MediaSessionPositionChanged(
const std::optional<media_session::MediaPosition>& position) { … }
void TestMediaControllerObserver::WaitForState(
mojom::MediaSessionInfo::SessionState wanted_state) { … }
void TestMediaControllerObserver::WaitForPlaybackState(
mojom::MediaPlaybackState wanted_state) { … }
void TestMediaControllerObserver::WaitForEmptyInfo() { … }
void TestMediaControllerObserver::WaitForEmptyMetadata() { … }
void TestMediaControllerObserver::WaitForExpectedMetadata(
const MediaMetadata& metadata) { … }
void TestMediaControllerObserver::WaitForEmptyActions() { … }
void TestMediaControllerObserver::WaitForExpectedActions(
const std::set<mojom::MediaSessionAction>& actions) { … }
void TestMediaControllerObserver::WaitForEmptyPosition() { … }
void TestMediaControllerObserver::WaitForNonEmptyPosition() { … }
void TestMediaControllerObserver::WaitForSession(
const std::optional<base::UnguessableToken>& request_id) { … }
void TestMediaControllerObserver::StartWaiting() { … }
TestMediaController::TestMediaController() = default;
TestMediaController::~TestMediaController() = default;
mojo::Remote<mojom::MediaController>
TestMediaController::CreateMediaControllerRemote() { … }
void TestMediaController::BindMediaControllerReceiver(
mojo::PendingReceiver<mojom::MediaController> receiver) { … }
void TestMediaController::Suspend() { … }
void TestMediaController::Resume() { … }
void TestMediaController::Stop() { … }
void TestMediaController::ToggleSuspendResume() { … }
void TestMediaController::AddObserver(
mojo::PendingRemote<mojom::MediaControllerObserver> observer) { … }
void TestMediaController::PreviousTrack() { … }
void TestMediaController::NextTrack() { … }
void TestMediaController::Seek(base::TimeDelta seek_time) { … }
void TestMediaController::SeekTo(base::TimeDelta seek_time) { … }
void TestMediaController::SkipAd() { … }
void TestMediaController::EnterPictureInPicture() { … }
void TestMediaController::ExitPictureInPicture() { … }
void TestMediaController::Raise() { … }
void TestMediaController::RequestMediaRemoting() { … }
void TestMediaController::SimulateMediaSessionInfoChanged(
mojom::MediaSessionInfoPtr session_info) { … }
void TestMediaController::SimulateMediaSessionActionsChanged(
const std::vector<mojom::MediaSessionAction>& actions) { … }
void TestMediaController::SimulateMediaSessionChanged(
base::UnguessableToken token) { … }
void TestMediaController::SimulateMediaSessionMetadataChanged(
const media_session::MediaMetadata& meta_data) { … }
void TestMediaController::Flush() { … }
int TestMediaController::GetActiveObserverCount() { … }
}
}