chromium/third_party/angle/src/tests/egl_tests/EGLBufferAgeTest.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.
//
// EGLBufferAgeTest.cpp:
//   EGL extension EGL_EXT_buffer_age
//

#include <gtest/gtest.h>

#include "test_utils/ANGLETest.h"
#include "util/EGLWindow.h"
#include "util/OSWindow.h"

usingnamespaceangle;

class EGLBufferAgeTest : public ANGLETest<>
{};

class EGLBufferAgeTest_MSAA : public EGLBufferAgeTest
{};

class EGLBufferAgeTest_MSAA_DS : public EGLBufferAgeTest
{};

// Query for buffer age
TEST_P(EGLBufferAgeTest, QueryBufferAge)
{}

// Verify contents of buffer are as expected
TEST_P(EGLBufferAgeTest, VerifyContents)
{}

// Verify contents of buffer are as expected for a multisample image
TEST_P(EGLBufferAgeTest_MSAA, VerifyContentsForMultisampled)
{}

// Verify contents of buffer are as expected for a multisample image with depth/stencil enabled
TEST_P(EGLBufferAgeTest_MSAA_DS, VerifyContentsForMultisampledWithDepthStencil)
{}

// Verify EGL_BAD_SURFACE when not current
TEST_P(EGLBufferAgeTest, UncurrentContextBadSurface)
{}

// Expect age always == 1 when EGL_BUFFER_PRESERVED is chosen
TEST_P(EGLBufferAgeTest, BufferPreserved)
{}

// Expect age always == 0 when EGL_SINGLE_BUFFER is chosen
TEST_P(EGLBufferAgeTest, SingleBuffer)
{}

ANGLE_INSTANTIATE_TEST();
ANGLE_INSTANTIATE_TEST();
ANGLE_INSTANTIATE_TEST();