chromium/third_party/angle/src/tests/egl_tests/EGLProtectedContentTest.cpp

//
// Copyright 2021 The ANGLE Project Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
//
// EGLProtectedContentTest.cpp:
//   EGL extension EGL_EXT_protected_content
//

#include <gtest/gtest.h>

#include <chrono>
#include <iostream>
#include <thread>
#include "test_utils/ANGLETest.h"
#include "util/EGLWindow.h"
#include "util/OSWindow.h"

constexpr bool kSleepForVisualVerification =;

usingnamespacestd::chrono_literals;

usingnamespaceangle;

GTEST_ALLOW_UNINSTANTIATED_PARAMETERIZED_TEST();

class EGLProtectedContentTest : public ANGLETest<>
{};

void EGLProtectedContentTest::pbufferTest(bool isProtectedContext, bool isProtectedSurface)
{}

// Unprotected context with Unprotected PbufferSurface
TEST_P(EGLProtectedContentTest, UnprotectedContextWithUnprotectedPbufferSurface)
{}

void EGLProtectedContentTest::windowTest(bool isProtectedContext,
                                         bool isProtectedSurface,
                                         bool mutableRenderBuffer)
{}

// Unprotected context with Unprotected WindowSurface
TEST_P(EGLProtectedContentTest, UnprotectedContextWithUnprotectedWindowSurface)
{}

// Protected context with Protected WindowSurface
TEST_P(EGLProtectedContentTest, ProtectedContextWithProtectedWindowSurface)
{}

// Protected context with Protected Mutable Render Buffer WindowSurface.
TEST_P(EGLProtectedContentTest, ProtectedContextWithProtectedMutableRenderBufferWindowSurface)
{}

void EGLProtectedContentTest::textureTest(bool isProtectedContext, bool isProtectedTexture)
{}

// Unprotected context with unprotected texture
TEST_P(EGLProtectedContentTest, UnprotectedContextWithUnprotectedTexture)
{}

// Protected context with protected texture
TEST_P(EGLProtectedContentTest, ProtectedContextWithProtectedTexture)
{}

void EGLProtectedContentTest::textureFromImageTest(bool isProtectedContext, bool isProtectedTexture)
{}

// Unprotected context with unprotected texture from EGL image
TEST_P(EGLProtectedContentTest, UnprotectedContextWithUnprotectedTextureFromImage)
{}

// Protected context with protected texture from EGL image
TEST_P(EGLProtectedContentTest, ProtectedContextWithProtectedTextureFromImage)
{}

void EGLProtectedContentTest::textureFromPbufferTest(bool isProtectedContext,
                                                     bool isProtectedTexture)
{}

// Unprotected context with unprotected texture from BindTex of PBufferSurface
TEST_P(EGLProtectedContentTest, UnprotectedContextWithUnprotectedTextureFromPBuffer)
{}

// Protected context with protected texture from BindTex of PBufferSurface
TEST_P(EGLProtectedContentTest, ProtectedContextWithProtectedTextureFromPbuffer)
{}

void EGLProtectedContentTest::textureFromAndroidNativeBufferTest(bool isProtectedContext,
                                                                 bool isProtectedTexture)
{}

// Unprotected context with unprotected texture from EGL image from Android native buffer
TEST_P(EGLProtectedContentTest, UnprotectedContextWithUnprotectedTextureFromAndroidNativeBuffer)
{}

// Protected context with protected texture from EGL image from Android native buffer
TEST_P(EGLProtectedContentTest, ProtectedContextWithProtectedTextureFromAndroidNativeBuffer)
{}

// Retrieve the EGL_PROTECTED_CONTENT_EXT attribute via eglQueryContext
TEST_P(EGLProtectedContentTest, QueryContext)
{}

ANGLE_INSTANTIATE_TEST();