chromium/components/cast_streaming/browser/control/remoting/rpc_demuxer_stream_handler_unittests.cc

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

#include "components/cast_streaming/browser/control/remoting/rpc_demuxer_stream_handler.h"

#include <memory>
#include <utility>

#include "base/test/task_environment.h"
#include "media/base/audio_codecs.h"
#include "media/base/audio_decoder_config.h"
#include "media/base/buffering_state.h"
#include "media/base/channel_layout.h"
#include "media/base/demuxer_stream.h"
#include "media/base/media_util.h"
#include "media/base/sample_format.h"
#include "media/base/video_codecs.h"
#include "media/base/video_decoder_config.h"
#include "media/base/video_types.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "third_party/openscreen/src/cast/streaming/rpc_messenger.h"

_;
Invoke;
Return;
StrictMock;

namespace cast_streaming::remoting {
namespace {

ACTION_P(CheckInitializeDemuxerStream, remote_handle, local_handle) {}

ACTION_P(CheckReadUntilCall, remote_handle, local_handle, last_total) {}

ACTION_P(CheckOnErrorCall, remote_handle) {}

ACTION_P(CheckEnableBistreamConverterCall, remote_handle) {}

}  // namespace

class RpcDemuxerStreamHandlerTest : public testing::Test {};

TEST_F(RpcDemuxerStreamHandlerTest, InitKnownAudioHandleWithAudioConfig) {}

TEST_F(RpcDemuxerStreamHandlerTest, InitKnownAudioHandleWithVideoConfig) {}

TEST_F(RpcDemuxerStreamHandlerTest, InitKnownVideoHandleWithAudioConfig) {}

TEST_F(RpcDemuxerStreamHandlerTest, InitKnownVideoHandleWithVideoConfig) {}

TEST_F(RpcDemuxerStreamHandlerTest, ReadKnownAudioHandleWithAudioConfig) {}

TEST_F(RpcDemuxerStreamHandlerTest, ReadKnownAudioHandleWithVideoConfig) {}

TEST_F(RpcDemuxerStreamHandlerTest, ReadKnownVideoHandleWithAudioConfig) {}

TEST_F(RpcDemuxerStreamHandlerTest, ReadKnownVideoHandleWithVideoConfig) {}

TEST_F(RpcDemuxerStreamHandlerTest, EnableBitstreamConverterKnownHandle) {}

TEST_F(RpcDemuxerStreamHandlerTest, EnableBitstreamConverterUnknownHandle) {}

TEST_F(RpcDemuxerStreamHandlerTest, RequestMoreAudioBuffers) {}

TEST_F(RpcDemuxerStreamHandlerTest, RequestMoreVideoBuffers) {}

TEST_F(RpcDemuxerStreamHandlerTest, OnAudioError) {}

TEST_F(RpcDemuxerStreamHandlerTest, OnVideoError) {}

TEST_F(RpcDemuxerStreamHandlerTest, OnEnableAudioBitstreamConverter) {}

TEST_F(RpcDemuxerStreamHandlerTest, OnEnableVideoBitstreamConverter) {}

}  // namespace cast_streaming::remoting