chromium/third_party/angle/src/tests/compiler_tests/ShaderVariable_test.cpp

//
// Copyright 2014 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.
//
// CollectVariables_test.cpp:
//   Some tests for shader inspection
//

#include "GLSLANG/ShaderLang.h"
#include "angle_gl.h"
#include "compiler/translator/Compiler.h"
#include "gtest/gtest.h"

namespace sh
{

class ShaderVariableTest : public testing::Test
{};

TEST_F(ShaderVariableTest, FindInfoByMappedName)
{}

TEST_F(ShaderVariableTest, IsSameUniformWithDifferentFieldOrder)
{}

TEST_F(ShaderVariableTest, IsSameUniformWithDifferentStructNames)
{}

TEST_F(ShaderVariableTest, IsSameVaryingWithDifferentInvariance)
{}

// Test that using invariant varyings doesn't trigger a double delete.
TEST_F(ShaderVariableTest, InvariantDoubleDeleteBug)
{}

TEST_F(ShaderVariableTest, IllegalInvariantVarying)
{}

TEST_F(ShaderVariableTest, InvariantLeakAcrossShaders)
{}

TEST_F(ShaderVariableTest, GlobalInvariantLeakAcrossShaders)
{}

TEST_F(ShaderVariableTest, BuiltinInvariantVarying)
{}

// Verify in ES3.1 two varyings with either same name or same declared location can match.
TEST_F(ShaderVariableTest, IsSameVaryingWithDifferentName)
{}

// Test that using two consecutive underscores (__) can be used for declaring an identifier
TEST_F(ShaderVariableTest, DoubleUnderscoresForIdentifier)
{}

}  // namespace sh