#include "media/cast/sender/video_bitrate_suggester.h"
#include <memory>
#include <numeric>
#include <optional>
#include <utility>
#include "base/functional/bind.h"
#include "base/test/scoped_feature_list.h"
#include "media/base/media_switches.h"
#include "media/base/video_codecs.h"
#include "media/cast/cast_config.h"
#include "media/cast/cast_environment.h"
#include "media/cast/common/openscreen_conversion_helpers.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace media::cast {
namespace {
constexpr uint32_t kFirstSsrc = …;
constexpr int kRtpTimebase = …;
constexpr char kAesSecretKey[] = …;
constexpr char kAesIvMask[] = …;
static const FrameSenderConfig kVideoConfig{ … };
static const openscreen::cast::SessionConfig kOpenscreenVideoConfig = …;
}
class VideoBitrateSuggesterTest : public ::testing::Test { … };
TEST_F(VideoBitrateSuggesterTest,
SuggestsBitratesCorrectlyWithExponentialAlgorithm) { … }
TEST_F(VideoBitrateSuggesterTest,
SuggestsBitratesCorrectlyWithLinearAlgorithm) { … }
}