#include "third_party/blink/renderer/modules/mediasession/media_session.h"
#include "base/test/simple_test_tick_clock.h"
#include "mojo/public/cpp/bindings/receiver.h"
#include "mojo/public/cpp/bindings/remote.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "third_party/blink/renderer/bindings/modules/v8/v8_media_position_state.h"
#include "third_party/blink/renderer/core/frame/local_dom_window.h"
#include "third_party/blink/renderer/core/frame/local_frame.h"
#include "third_party/blink/renderer/core/testing/page_test_base.h"
#include "third_party/blink/renderer/platform/bindings/exception_state.h"
namespace blink {
_;
namespace {
class MockMediaSessionService : public mojom::blink::MediaSessionService { … };
}
class MediaSessionTest : public PageTestBase { … };
TEST_F(MediaSessionTest, PlaybackPositionState_None) { … }
TEST_F(MediaSessionTest, PlaybackPositionState_Paused) { … }
TEST_F(MediaSessionTest, PlaybackPositionState_Playing) { … }
TEST_F(MediaSessionTest, PlaybackPositionState_InfiniteDuration) { … }
TEST_F(MediaSessionTest, PlaybackPositionState_NaNDuration) { … }
TEST_F(MediaSessionTest, PlaybackPositionState_Paused_Clear) { … }
TEST_F(MediaSessionTest, PositionPlaybackState_None) { … }
TEST_F(MediaSessionTest, PositionPlaybackState_Paused_None) { … }
TEST_F(MediaSessionTest, PositionPlaybackState_Paused_Playing) { … }
TEST_F(MediaSessionTest, PositionPlaybackState_Playing) { … }
}