chromium/third_party/angle/src/tests/gl_tests/RendererTest.cpp

//
// Copyright 2015 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.
//
// RendererTest:
//   These tests are designed to ensure that the various configurations of the test fixtures work as
//   expected. If one of these tests fails, then it is likely that some of the other tests are being
//   configured incorrectly. For example, they might be using the D3D11 renderer when the test is
//   meant to be using the D3D9 renderer.

#include "common/string_utils.h"
#include "test_utils/ANGLETest.h"
#include "test_utils/gl_raii.h"
#include "util/shader_utils.h"
#include "util/test_utils.h"

usingnamespaceangle;

namespace angle
{

class RendererTest : public ANGLETest<>
{};

// Print vendor, renderer, version and extension strings. Useful for debugging.
TEST_P(RendererTest, Strings)
{}

TEST_P(RendererTest, RequestedRendererCreated)
{}

// Perform a simple operation (clear and read pixels) to verify the device is working
TEST_P(RendererTest, SimpleOperation)
{}

// Perform a simple buffer operation.
TEST_P(RendererTest, BufferData)
{}

// Compile simple vertex and fragment shaders
TEST_P(RendererTest, CompileShader)
{}

// Link a simple program
TEST_P(RendererTest, LinkProgram)
{}

// Draw a triangle using no vertex attributes
TEST_P(RendererTest, Draw)
{}

// Select configurations (e.g. which renderer, which GLES major version) these tests should be run
// against.
// TODO(http://anglebug.com/42266907): move ES2_WEBGPU to the definition of
// ANGLE_ALL_TEST_PLATFORMS_ES2 once webgpu is developed enough to run more tests.
ANGLE_INSTANTIATE_TEST_ES2_AND_ES3_AND_ES31_AND_NULL_AND();
}  // namespace angle