chromium/services/media_session/media_controller_unittest.cc

// Copyright 2018 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "services/media_session/media_controller.h"

#include <memory>
#include <optional>
#include <utility>
#include <vector>

#include "base/run_loop.h"
#include "base/strings/utf_string_conversions.h"
#include "base/test/task_environment.h"
#include "base/time/time.h"
#include "base/unguessable_token.h"
#include "mojo/public/cpp/bindings/remote.h"
#include "services/media_session/media_session_service_impl.h"
#include "services/media_session/public/cpp/media_metadata.h"
#include "services/media_session/public/cpp/test/mock_media_session.h"
#include "services/media_session/public/cpp/test/test_media_controller.h"
#include "services/media_session/public/mojom/constants.mojom.h"
#include "services/media_session/public/mojom/media_session.mojom.h"
#include "testing/gtest/include/gtest/gtest.h"

namespace media_session {

class MediaControllerTest : public testing::Test {};

TEST_F(MediaControllerTest, ActiveController_Suspend) {}

TEST_F(MediaControllerTest, ActiveController_Multiple_Abandon_Top) {}

TEST_F(MediaControllerTest,
       ActiveController_Multiple_Abandon_UnderNonControllable) {}

TEST_F(MediaControllerTest, ActiveController_Multiple_Controllable) {}

TEST_F(MediaControllerTest, ActiveController_Multiple_NonControllable) {}

TEST_F(MediaControllerTest, ActiveController_Multiple_UpdateControllable) {}

TEST_F(MediaControllerTest, ActiveController_Suspend_Noop) {}

TEST_F(MediaControllerTest, ActiveController_Suspend_Noop_Abandoned) {}

TEST_F(MediaControllerTest, ActiveController_SuspendResume) {}

TEST_F(MediaControllerTest, ActiveController_ToggleSuspendResume_Playing) {}

TEST_F(MediaControllerTest, ActiveController_ToggleSuspendResume_Ducked) {}

TEST_F(MediaControllerTest, ActiveController_ToggleSuspendResume_Inactive) {}

TEST_F(MediaControllerTest, ActiveController_ToggleSuspendResume_Paused) {}

TEST_F(MediaControllerTest, ActiveController_Observer_StateTransition) {}

TEST_F(MediaControllerTest, ActiveController_PreviousTrack) {}

TEST_F(MediaControllerTest, ActiveController_NextTrack) {}

TEST_F(MediaControllerTest, ActiveController_Seek) {}

TEST_F(MediaControllerTest, ActiveController_SkipAd) {}

TEST_F(MediaControllerTest, ActiveController_SeekTo) {}

TEST_F(MediaControllerTest, ActiveController_ScrubTo) {}

TEST_F(MediaControllerTest, ActiveController_Metadata_Observer_Abandoned) {}

TEST_F(MediaControllerTest, ActiveController_Metadata_Observer_Empty) {}

TEST_F(MediaControllerTest, ActiveController_Metadata_Observer_WithInfo) {}

TEST_F(MediaControllerTest, ActiveController_Metadata_AddObserver_Empty) {}

TEST_F(MediaControllerTest, ActiveController_Metadata_AddObserver_WithInfo) {}

TEST_F(MediaControllerTest, ActiveController_Stop) {}

TEST_F(MediaControllerTest, BoundController_Routing) {}

TEST_F(MediaControllerTest, BoundController_BadRequestId) {}

TEST_F(MediaControllerTest, BoundController_DropOnAbandon) {}

TEST_F(MediaControllerTest, ActiveController_Actions_AddObserver_Empty) {}

TEST_F(MediaControllerTest, ActiveController_Actions_AddObserver_WithInfo) {}

TEST_F(MediaControllerTest, ActiveController_Actions_Observer_Empty) {}

TEST_F(MediaControllerTest, ActiveController_Actions_Observer_WithInfo) {}

TEST_F(MediaControllerTest, ActiveController_Actions_Observer_Abandoned) {}

TEST_F(MediaControllerTest, ActiveController_Position_Observer_Empty) {}

TEST_F(MediaControllerTest, ActiveController_Position_Observer_WithInfo) {}

TEST_F(MediaControllerTest, ActiveController_Position_AddObserver_Empty) {}

TEST_F(MediaControllerTest, ActiveController_Position_AddObserver_WithInfo) {}

TEST_F(MediaControllerTest, ActiveController_Position_Observer_Abandoned) {}

TEST_F(MediaControllerTest, ActiveController_Observer_Abandoned) {}

TEST_F(MediaControllerTest, ActiveController_AddObserver_Abandoned) {}

TEST_F(MediaControllerTest, ClearImageObserverOnError) {}

TEST_F(MediaControllerTest, ActiveController_SimulateImagesChanged) {}

TEST_F(MediaControllerTest,
       ActiveController_SimulateImagesChanged_ToggleControllable) {}

TEST_F(MediaControllerTest,
       ActiveController_SimulateImagesChanged_TypeChanged) {}

TEST_F(MediaControllerTest,
       ActiveController_SimulateImagesChanged_MinSizeCutoff) {}

TEST_F(MediaControllerTest,
       ActiveController_SimulateImagesChanged_DesiredSize) {}

TEST_F(MediaControllerTest, ActiveController_Observer_SessionChanged) {}

TEST_F(MediaControllerTest, BoundController_Observer_SessionChanged) {}

TEST_F(MediaControllerTest, Manager_SuspendAllSessions) {}

TEST_F(MediaControllerTest, ActiveController_SimulateChapterChanged) {}

}  // namespace media_session