#include <sstream>
#include <string>
#include <vector>
#include "GLSLANG/ShaderLang.h"
#include "angle_gl.h"
#include "gtest/gtest.h"
class ExpressionLimitTest : public testing::Test
{ … };
constexpr char kExpressionTooComplex[] = …;
constexpr char kCallStackTooDeep[] = …;
constexpr char kHasRecursion[] = …;
constexpr char kTooManyParameters[] = …;
constexpr char kTooComplexSwitch[] = …;
constexpr char kGlobalVariableInit[] = …;
constexpr char kTooManyFields[] = …;
TEST_F(ExpressionLimitTest, ExpressionComplexity)
{ … }
TEST_F(ExpressionLimitTest, UnusedExpressionComplexity)
{ … }
TEST_F(ExpressionLimitTest, CallStackDepth)
{ … }
TEST_F(ExpressionLimitTest, UnusedCallStackDepth)
{ … }
TEST_F(ExpressionLimitTest, Recursion)
{ … }
TEST_F(ExpressionLimitTest, FunctionParameterCount)
{ … }
TEST_F(ExpressionLimitTest, NestingInsideSwitch)
{ … }
TEST_F(ExpressionLimitTest, NestingInsideGlobalInitializer)
{ … }
TEST_F(ExpressionLimitTest, TooManyStructFields)
{ … }