#include "components/mirroring/service/rtp_stream.h"
#include "base/functional/callback_helpers.h"
#include "base/logging.h"
#include "base/memory/raw_ptr.h"
#include "base/run_loop.h"
#include "base/test/mock_callback.h"
#include "base/test/simple_test_tick_clock.h"
#include "base/test/task_environment.h"
#include "base/time/time.h"
#include "media/base/mock_filters.h"
#include "media/base/video_frame.h"
#include "media/cast/cast_config.h"
#include "media/cast/cast_environment.h"
#include "media/cast/sender/audio_sender.h"
#include "media/cast/sender/video_sender.h"
#include "media/cast/test/utility/audio_utility.h"
#include "media/cast/test/utility/default_config.h"
#include "media/cast/test/utility/video_utility.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
TestAudioBusFactory;
_;
InvokeWithoutArgs;
StrictMock;
namespace mirroring {
namespace {
class StreamClient final : public RtpStreamClient { … };
class MockVideoSender : public media::cast::VideoSender { … };
class MockAudioSender : public media::cast::AudioSender { … };
}
class RtpStreamTest : public ::testing::Test { … };
TEST_F(RtpStreamTest, VideoStreaming) { … }
TEST_F(RtpStreamTest, VideoStreamEmitsFramesWhenNoUpdates) { … }
TEST_F(RtpStreamTest, VideoStreamDoesNotRefreshWithZeroInterval) { … }
TEST_F(RtpStreamTest, VideoStreamTimerNotRunningWhenNoFramesDelivered) { … }
TEST_F(RtpStreamTest, VideoStreamTimerRestartsWhenFramesDeliveredAgain) { … }
TEST_F(RtpStreamTest, AudioStreaming) { … }
}