chromium/media/filters/pipeline_controller_unittest.cc

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

#include "media/filters/pipeline_controller.h"

#include <memory>

#include "base/functional/bind.h"
#include "base/functional/callback_helpers.h"
#include "base/memory/raw_ptr.h"
#include "base/memory/ref_counted.h"
#include "base/notreached.h"
#include "base/run_loop.h"
#include "base/test/gmock_callback_support.h"
#include "base/test/gmock_move_support.h"
#include "base/test/task_environment.h"
#include "base/time/time.h"
#include "media/base/mock_filters.h"
#include "media/base/pipeline.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"

RunOnceClosure;
_;
AnyNumber;
DoAll;
Mock;
NiceMock;
Return;
SaveArg;
StrictMock;

namespace media {

class PipelineControllerTest : public ::testing::Test, public Pipeline::Client {};

TEST_F(PipelineControllerTest, Startup) {}

TEST_F(PipelineControllerTest, StartSuspendedSeekAndResume) {}

TEST_F(PipelineControllerTest, StartSuspendedAndResume) {}

TEST_F(PipelineControllerTest, SuspendResume) {}

TEST_F(PipelineControllerTest, Seek) {}

// Makes sure OnDecoderStateLost() triggers a seek to the current media time.
TEST_F(PipelineControllerTest, DecoderStateLost) {}

// Makes sure OnDecoderStateLost() does not trigger a seek during pending seek.
TEST_F(PipelineControllerTest, DecoderStateLost_DuringPendingSeek) {}

TEST_F(PipelineControllerTest, SuspendResumeTime) {}

TEST_F(PipelineControllerTest, SuspendResumeTime_WithStreamingData) {}

TEST_F(PipelineControllerTest, SeekAborted) {}

TEST_F(PipelineControllerTest, PendingSuspend) {}

TEST_F(PipelineControllerTest, SeekMergesWithResume) {}

TEST_F(PipelineControllerTest, SeekMergesWithSeek) {}

TEST_F(PipelineControllerTest, SeekToSeekTimeElided) {}

TEST_F(PipelineControllerTest, SeekToSeekTimeNotElided) {}

TEST_F(PipelineControllerTest, VideoTrackChangeWhileSuspending) {}

TEST_F(PipelineControllerTest, AudioTrackChangeWhileSuspending) {}

TEST_F(PipelineControllerTest, AudioTrackChangeDuringVideoTrackChange) {}

TEST_F(PipelineControllerTest, SuspendDuringVideoTrackChange) {}

TEST_F(PipelineControllerTest, SuspendDuringAudioTrackChange) {}

TEST_F(PipelineControllerTest, ResumePlaybackDuringSwitchingTracksState) {}

TEST_F(PipelineControllerTest, PreservesPitch) {}

}  // namespace media