chromium/third_party/angle/src/tests/gl_tests/LineLoopTest.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.
//

#include "test_utils/ANGLETest.h"

#include "test_utils/gl_raii.h"

usingnamespaceangle;

class LineLoopTest : public ANGLETest<>
{};

TEST_P(LineLoopTest, LineLoopUByteIndices)
{}

TEST_P(LineLoopTest, LineLoopUShortIndices)
{}

TEST_P(LineLoopTest, LineLoopUIntIndices)
{}

TEST_P(LineLoopTest, LineLoopUByteIndexBuffer)
{}

TEST_P(LineLoopTest, LineLoopUShortIndexBuffer)
{}

TEST_P(LineLoopTest, LineLoopUIntIndexBuffer)
{}

class LineLoopTestES3 : public LineLoopTest
{};

// Test that uploading data to buffer that's in use then using it for line loop elements works.
TEST_P(LineLoopTestES3, UseAsUBOThenUpdateThenLineLoopUByteIndexBuffer)
{}

// Test that uploading data to buffer that's in use then using it for line loop elements works.
TEST_P(LineLoopTestES3, UseAsUBOThenUpdateThenLineLoopUShortIndexBuffer)
{}

// Test that uploading data to buffer that's in use then using it for line loop elements works.
TEST_P(LineLoopTestES3, UseAsUBOThenUpdateThenLineLoopUIntIndexBuffer)
{}

// Tests an edge case with a very large line loop element count.
// Disabled because it is slow and triggers an internal error.
TEST_P(LineLoopTest, DISABLED_DrawArraysWithLargeCount)
{}

class LineLoopPrimitiveRestartTest : public ANGLETest<>
{};

TEST_P(LineLoopPrimitiveRestartTest, LineLoopWithPrimitiveRestart)
{}

class LineLoopIndirectTest : public LineLoopTest
{};

TEST_P(LineLoopIndirectTest, UByteIndexIndirectBuffer)
{}

TEST_P(LineLoopIndirectTest, UShortIndexIndirectBuffer)
{}

// Test that uploading data to buffer that's in use then using it for line loop elements works.
TEST_P(LineLoopIndirectTest, UseAsUBOThenUpdateThenUByteIndexIndirectBuffer)
{}

// Test that uploading data to buffer that's in use then using it for line loop elements works.
TEST_P(LineLoopIndirectTest, UseAsUBOThenUpdateThenUShortIndexIndirectBuffer)
{}

ANGLE_INSTANTIATE_TEST_ES2();
ANGLE_INSTANTIATE_TEST_ES3();

GTEST_ALLOW_UNINSTANTIATED_PARAMETERIZED_TEST();
ANGLE_INSTANTIATE_TEST_ES3_AND();

GTEST_ALLOW_UNINSTANTIATED_PARAMETERIZED_TEST();
ANGLE_INSTANTIATE_TEST_ES31();