#include "media/cast/encoding/video_encoder.h"
#include <stdint.h>
#include <memory>
#include <utility>
#include <vector>
#include "base/functional/bind.h"
#include "base/functional/callback_helpers.h"
#include "base/logging.h"
#include "base/memory/raw_ref.h"
#include "base/memory/ref_counted.h"
#include "base/memory/weak_ptr.h"
#include "base/task/single_thread_task_runner.h"
#include "base/time/time.h"
#include "build/build_config.h"
#include "media/base/fake_single_thread_task_runner.h"
#include "media/base/mock_filters.h"
#include "media/base/video_codecs.h"
#include "media/base/video_frame.h"
#include "media/cast/cast_environment.h"
#include "media/cast/common/openscreen_conversion_helpers.h"
#include "media/cast/common/rtp_time.h"
#include "media/cast/common/sender_encoded_frame.h"
#include "media/cast/common/video_frame_factory.h"
#include "media/cast/test/fake_video_encode_accelerator_factory.h"
#include "media/cast/test/utility/default_config.h"
#include "media/cast/test/utility/video_utility.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "third_party/openscreen/src/cast/streaming/encoded_frame.h"
namespace media {
namespace cast {
class VideoEncoderTest
: public ::testing::TestWithParam<std::pair<VideoCodec, bool>> { … };
TEST_P(VideoEncoderTest, EncodesVariedFrameSizes) { … }
TEST_P(VideoEncoderTest, CanBeDestroyedBeforeVEAIsCreated) { … }
namespace {
std::vector<std::pair<VideoCodec, bool>> DetermineEncodersToTest() { … }
}
INSTANTIATE_TEST_SUITE_P(…);
}
}