chromium/third_party/blink/renderer/platform/peerconnection/instrumented_video_encoder_wrapper_test.cc

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

#include "third_party/blink/renderer/platform/peerconnection/instrumented_video_encoder_wrapper.h"

#include "base/memory/scoped_refptr.h"
#include "base/test/task_environment.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "third_party/blink/renderer/platform/peerconnection/video_encoder_state_observer.h"
#include "third_party/blink/renderer/platform/webrtc/webrtc_video_frame_adapter.h"
#include "third_party/webrtc/api/scoped_refptr.h"
#include "third_party/webrtc/api/video_codecs/video_codec.h"
#include "third_party/webrtc/api/video_codecs/video_encoder.h"
#include "third_party/webrtc/modules/video_coding/include/video_error_codes.h"

_;
AllOf;
Field;
Return;

namespace blink {
namespace {
class MockVideoEncoderStateObserver : public VideoEncoderStateObserver {};

class MockEncodedImageCallback : public webrtc::EncodedImageCallback {};

class FakeVideoEncoder : public webrtc::VideoEncoder {};

constexpr int kWidth =;
constexpr int kHeight =;
constexpr uint64_t kTimestamp =;

webrtc::VideoFrame CreateFrame(int width = kWidth,
                               int height = kHeight,
                               uint64_t timestamp_us = kTimestamp) {}

webrtc::VideoCodec CreateVideoCodec(
    int width = kWidth,
    int height = kHeight,
    webrtc::VideoCodecType codec_type = webrtc::kVideoCodecVP8) {}
}  // namespace

constexpr int kEncoderId =;
const webrtc::VideoCodec kVideoCodec =;
const webrtc::VideoEncoder::Settings kEncoderSettings(
    webrtc::VideoEncoder::Capabilities(/*loss_notification=*/false),
    /*number_of_cores=*/1,
    /*max_payload_size=*/12345);

class InstrumentedVideoEncoderWrapperTest : public ::testing::Test {};

TEST_F(InstrumentedVideoEncoderWrapperTest, InitEncodeAndRelease) {}

TEST_F(InstrumentedVideoEncoderWrapperTest, Encode) {}

TEST_F(InstrumentedVideoEncoderWrapperTest, SetRates) {}
}  // namespace blink