#include "services/media_session/public/cpp/test/audio_focus_test_util.h"
#include "base/functional/bind.h"
namespace media_session {
namespace test {
namespace {
void ReceivedSessionInfo(media_session::mojom::MediaSessionInfoPtr* info_out,
base::RepeatingClosure callback,
media_session::mojom::MediaSessionInfoPtr result) { … }
}
TestAudioFocusObserver::TestAudioFocusObserver() { … }
TestAudioFocusObserver::~TestAudioFocusObserver() = default;
void TestAudioFocusObserver::OnFocusGained(
media_session::mojom::AudioFocusRequestStatePtr session) { … }
void TestAudioFocusObserver::OnFocusLost(
media_session::mojom::AudioFocusRequestStatePtr session) { … }
void TestAudioFocusObserver::WaitForGainedEvent() { … }
void TestAudioFocusObserver::WaitForLostEvent() { … }
mojo::PendingRemote<media_session::mojom::AudioFocusObserver>
TestAudioFocusObserver::BindNewPipeAndPassRemote() { … }
media_session::mojom::MediaSessionInfoPtr GetMediaSessionInfoSync(
media_session::mojom::MediaSession* session) { … }
}
}