chromium/third_party/angle/src/tests/test_utils/ShaderCompileTreeTest.cpp

//
// Copyright 2016 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.
//
// ShaderCompileTreeTest.cpp:
//   Test that shader validation results in the correct compile status.
//

#include "tests/test_utils/ShaderCompileTreeTest.h"

#include "compiler/translator/glsl/TranslatorESSL.h"
#include "compiler/translator/tree_util/IntermTraverse.h"

namespace sh
{

namespace
{

// Checks that the node traversed is a zero node. It can be made out of multiple constructors and
// constant union nodes as long as there's no arithmetic involved and all constants are zero.
class OnlyContainsZeroConstantsTraverser final : public TIntermTraverser
{};

}  // anonymous namespace

void ShaderCompileTreeTest::SetUp()
{}

void ShaderCompileTreeTest::TearDown()
{}

bool ShaderCompileTreeTest::compile(const std::string &shaderString)
{}

void ShaderCompileTreeTest::compileAssumeSuccess(const std::string &shaderString)
{}

bool ShaderCompileTreeTest::hasWarning() const
{}

const std::vector<sh::ShaderVariable> &ShaderCompileTreeTest::getUniforms() const
{}

const std::vector<sh::ShaderVariable> &ShaderCompileTreeTest::getAttributes() const
{}

bool IsZero(TIntermNode *node)
{}

}  // namespace sh