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

// Copyright 2019 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/convert_to_webrtc_video_frame_buffer.h"

#include "base/memory/scoped_refptr.h"
#include "base/strings/strcat.h"
#include "media/base/video_frame.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/blink/renderer/platform/webrtc/webrtc_video_frame_adapter.h"
#include "third_party/webrtc/api/video/video_frame_buffer.h"
#include "third_party/webrtc/rtc_base/ref_counted_object.h"
#include "ui/gfx/gpu_memory_buffer.h"

_;
Return;

namespace blink {

class ConvertToWebRtcVideoFrameBufferParamTest
    : public ::testing::TestWithParam<
          std::tuple<media::VideoFrame::StorageType, media::VideoPixelFormat>> {};

namespace {
std::vector<ConvertToWebRtcVideoFrameBufferParamTest::ParamType> TestParams() {}
}  // namespace

TEST_P(ConvertToWebRtcVideoFrameBufferParamTest, ToI420) {}

INSTANTIATE_TEST_SUITE_P();

TEST(ConvertToWebRtcVideoFrameBufferTest, ToI420ADownScale) {}

TEST(ConvertToWebRtcVideoFrameBufferTest,
     Nv12WrapsGmbWhenNoScalingNeeededWithFeature) {}

TEST(ConvertToWebRtcVideoFrameBufferTest, Nv12ScalesGmbWithFeature) {}

TEST(ConvertToWebRtcVideoFrameBufferTest, Nv12OwnedMemoryFrame) {}

TEST(ConvertToWebRtcVideoFrameBufferTest, Nv12ScaleOwnedMemoryFrame) {}

TEST(ConvertToWebRtcVideoFrameBufferTest,
     TextureFrameIsBlackWithNoSharedResources) {}

TEST(ConvertToWebRtcVideoFrameBufferTest,
     ConvertsTextureFrameWithSharedResources) {}
}  // namespace blink