#include "test_utils/ANGLETest.h"
#include <vector>
#include "test_utils/gl_raii.h"
#include "util/EGLWindow.h"
#include "util/random_utils.h"
usingnamespaceangle;
namespace
{
constexpr char kBasicVertexShader[] = …;
constexpr char kGreenFragmentShader[] = …;
class SimpleOperationTest : public ANGLETest<>
{ … };
class SimpleOperationTest31 : public SimpleOperationTest
{ … };
void SimpleOperationTest::verifyBuffer(const std::vector<uint8_t> &data, GLenum binding)
{ … }
TEST_P(SimpleOperationTest, CullFaceEnabledState)
{ … }
TEST_P(SimpleOperationTest, CullFaceFrontEnabledState)
{ … }
TEST_P(SimpleOperationTest, BlendingRenderState)
{ … }
TEST_P(SimpleOperationTest, BlendEquationGetInteger)
{ … }
TEST_P(SimpleOperationTest, CompileVertexShader)
{ … }
TEST_P(SimpleOperationTest, CompileFragmentShaderSingleVaryingInput)
{ … }
TEST_P(SimpleOperationTest, ClearAndSwap)
{ … }
TEST_P(SimpleOperationTest, ScissorTest)
{ … }
TEST_P(SimpleOperationTest, LinkProgramShadersNoInputs)
{ … }
TEST_P(SimpleOperationTest, LinkProgramWithUniforms)
{ … }
TEST_P(SimpleOperationTest, LinkProgramWithAttributes)
{ … }
TEST_P(SimpleOperationTest, BufferDataWithData)
{ … }
TEST_P(SimpleOperationTest, BufferDataWithNoData)
{ … }
TEST_P(SimpleOperationTest, BufferSubData)
{ … }
TEST_P(SimpleOperationTest, DrawQuad)
{ … }
TEST_P(SimpleOperationTest, DrawQuadFromClientMemory)
{ … }
TEST_P(SimpleOperationTest, DrawQuadTwice)
{ … }
TEST_P(SimpleOperationTest, DrawLine)
{ … }
TEST_P(SimpleOperationTest, DrawLineWithLargeAttribPointerOffset)
{ … }
TEST_P(SimpleOperationTest, DrawLineStrip)
{ … }
class TriangleFanDrawTest : public SimpleOperationTest
{ … };
TEST_P(TriangleFanDrawTest, DrawTriangleFan)
{ … }
TEST_P(TriangleFanDrawTest, DrawTriangleFanElements)
{ … }
TEST_P(TriangleFanDrawTest, DrawTriangleFanPrimitiveRestartAtMiddle)
{ … }
TEST_P(TriangleFanDrawTest, DrawTriangleFanPrimitiveRestartAtBegin)
{ … }
TEST_P(TriangleFanDrawTest, DrawTriangleFanPrimitiveRestartAtEnd)
{ … }
TEST_P(TriangleFanDrawTest, DrawTriangleFanPrimitiveRestartNonIndexedDraw)
{ … }
TEST_P(SimpleOperationTest, DrawQuadAndSwap)
{ … }
TEST_P(SimpleOperationTest, DrawIndexedQuad)
{ … }
TEST_P(SimpleOperationTest, DrawIndexedQuadAndSwap)
{ … }
TEST_P(SimpleOperationTest, DrawQuadWithFragmentUniform)
{ … }
TEST_P(SimpleOperationTest, DrawQuadWithVertexUniform)
{ … }
TEST_P(SimpleOperationTest, DrawQuadWithTwoUniforms)
{ … }
TEST_P(SimpleOperationTest, ThreeVertexAttributes)
{ … }
TEST_P(SimpleOperationTest, CreateTexture2DNoData)
{ … }
TEST_P(SimpleOperationTest, CreateTexture2DWithData)
{ … }
TEST_P(SimpleOperationTest, CreateTextureCubeNoData)
{ … }
TEST_P(SimpleOperationTest, CreateTextureCubeWithData)
{ … }
TEST_P(SimpleOperationTest, LinkProgramWithTexture)
{ … }
TEST_P(SimpleOperationTest, DrawWith2DTexture)
{ … }
template <typename T>
void SimpleOperationTest::testDrawElementsLineLoopUsingClientSideMemory(GLenum indexType,
int windowWidth,
int windowHeight)
{ … }
TEST_P(SimpleOperationTest, DrawElementsLineLoopUsingUShortClientSideMemory)
{ … }
TEST_P(SimpleOperationTest, DrawElementsLineLoopUsingUByteClientSideMemory)
{ … }
TEST_P(SimpleOperationTest, DrawWithCubeTexture)
{ … }
TEST_P(SimpleOperationTest, RenderToTexture)
{ … }
TEST_P(SimpleOperationTest, CreateRenderbuffer)
{ … }
TEST_P(SimpleOperationTest, RenderbufferAttachment)
{ … }
TEST_P(SimpleOperationTest, PrimitiveModeNegativeTest)
{ … }
TEST_P(SimpleOperationTest, PrimitiveModeLinesAdjacentNegativeTest)
{ … }
TEST_P(SimpleOperationTest, DrawsWithNoAttributeData)
{ … }
TEST_P(SimpleOperationTest31, DrawTrianglesWithoutProgramBound)
{ … }
TEST_P(SimpleOperationTest31, DrawLineStripAdjacencyWithoutProgramBound)
{ … }
TEST_P(SimpleOperationTest, DrawArraysZeroInstanceCountIsNoOp)
{ … }
TEST_P(SimpleOperationTest, DrawElementsZeroInstanceCountIsNoOp)
{ … }
TEST_P(SimpleOperationTest, DrawSingleSampleWithCoverage)
{ … }
TEST_P(SimpleOperationTest, DrawSingleMultiSampleWithCoverage)
{ … }
TEST_P(SimpleOperationTest, DrawSingleSampleWithAlphaToCoverage)
{ … }
TEST_P(SimpleOperationTest, DrawSingleMultiSampleWithAlphaToCoverage)
{ … }
ANGLE_INSTANTIATE_TEST_ES2_AND_ES3_AND(…);
ANGLE_INSTANTIATE_TEST_ES2_AND_ES3_AND(…);
ANGLE_INSTANTIATE_TEST_ES2_AND_ES3_AND_ES31(…);
}