chromium/third_party/blink/renderer/platform/webrtc/webrtc_video_frame_adapter_test.cc

// Copyright 2020 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/webrtc/webrtc_video_frame_adapter.h"

#include "base/memory/scoped_refptr.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "third_party/blink/renderer/platform/testing/video_frame_utils.h"
#include "third_party/blink/renderer/platform/webrtc/testing/mock_webrtc_video_frame_adapter_shared_resources.h"
#include "third_party/webrtc/api/scoped_refptr.h"
#include "third_party/webrtc/rtc_base/ref_counted_object.h"

namespace blink {

ElementsAre;
IsEmpty;

TEST(ScaledBufferSizeTest, CroppingIsRelative) {}

TEST(ScaledBufferSizeTest, ScalingIsRelative) {}

TEST(ScaledBufferSizeTest, CroppingAndScalingIsRelative) {}

TEST(WebRtcVideoFrameAdapterTest, MapFullFrameIsZeroCopy) {}

TEST(WebRtcVideoFrameAdapterTest, MapScaledFrameCreatesNewFrame) {}

// When pre-scaled frames are not available we should scale from previously
// scaled frames. E.g. scaling 720p to 480p and then to 360p should perform
// scales "720p -> 480p" and "480p -> 360p" (NOT "720p -> 360p").
TEST(WebRtcVideoFrameAdapterTest,
     MapScaledFrameScalesFromClosestPreviouslyScaledFrameWithoutCropping) {}

TEST(WebRtcVideoFrameAdapterTest,
     MapScaledFrameScalesFromClosestPreviouslyScaledFrameWithCropping) {}

TEST(WebRtcVideoFrameAdapterTest,
     MapScaledFrameDoesNotScaleFromPreviouslyScaledFrameWithOtherCrop) {}

TEST(WebRtcVideoFrameAdapterTest, FrameFeedbackSetsRequireMappedFrame) {}

}  // namespace blink