#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)
{ … }
TEST_P(EGLProtectedContentTest, UnprotectedContextWithUnprotectedPbufferSurface)
{ … }
void EGLProtectedContentTest::windowTest(bool isProtectedContext,
bool isProtectedSurface,
bool mutableRenderBuffer)
{ … }
TEST_P(EGLProtectedContentTest, UnprotectedContextWithUnprotectedWindowSurface)
{ … }
TEST_P(EGLProtectedContentTest, ProtectedContextWithProtectedWindowSurface)
{ … }
TEST_P(EGLProtectedContentTest, ProtectedContextWithProtectedMutableRenderBufferWindowSurface)
{ … }
void EGLProtectedContentTest::textureTest(bool isProtectedContext, bool isProtectedTexture)
{ … }
TEST_P(EGLProtectedContentTest, UnprotectedContextWithUnprotectedTexture)
{ … }
TEST_P(EGLProtectedContentTest, ProtectedContextWithProtectedTexture)
{ … }
void EGLProtectedContentTest::textureFromImageTest(bool isProtectedContext, bool isProtectedTexture)
{ … }
TEST_P(EGLProtectedContentTest, UnprotectedContextWithUnprotectedTextureFromImage)
{ … }
TEST_P(EGLProtectedContentTest, ProtectedContextWithProtectedTextureFromImage)
{ … }
void EGLProtectedContentTest::textureFromPbufferTest(bool isProtectedContext,
bool isProtectedTexture)
{ … }
TEST_P(EGLProtectedContentTest, UnprotectedContextWithUnprotectedTextureFromPBuffer)
{ … }
TEST_P(EGLProtectedContentTest, ProtectedContextWithProtectedTextureFromPbuffer)
{ … }
void EGLProtectedContentTest::textureFromAndroidNativeBufferTest(bool isProtectedContext,
bool isProtectedTexture)
{ … }
TEST_P(EGLProtectedContentTest, UnprotectedContextWithUnprotectedTextureFromAndroidNativeBuffer)
{ … }
TEST_P(EGLProtectedContentTest, ProtectedContextWithProtectedTextureFromAndroidNativeBuffer)
{ … }
TEST_P(EGLProtectedContentTest, QueryContext)
{ … }
ANGLE_INSTANTIATE_TEST(…);