#include "gpu/command_buffer/service/shader_translator.h"
#include "base/containers/contains.h"
#include "build/build_config.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "ui/gl/gl_bindings.h"
namespace gpu {
namespace gles2 {
class ShaderTranslatorTest : public testing::Test { … };
class ES3ShaderTranslatorTest : public testing::Test { … };
TEST_F(ShaderTranslatorTest, ValidVertexShader) { … }
TEST_F(ShaderTranslatorTest, InvalidVertexShader) { … }
TEST_F(ShaderTranslatorTest, ValidFragmentShader) { … }
TEST_F(ShaderTranslatorTest, InvalidFragmentShader) { … }
TEST_F(ShaderTranslatorTest, GetAttributes) { … }
TEST_F(ShaderTranslatorTest, GetUniforms) { … }
TEST_F(ES3ShaderTranslatorTest, InvalidInterfaceBlocks) { … }
TEST_F(ES3ShaderTranslatorTest, GetInterfaceBlocks) { … }
TEST_F(ShaderTranslatorTest, OptionsString) { … }
class ShaderTranslatorOutputVersionTest
: public testing::TestWithParam<testing::tuple<const char*, const char*>> { … };
TEST_F(ShaderTranslatorOutputVersionTest, DISABLED_CompatibilityOutput) { … }
TEST_P(ShaderTranslatorOutputVersionTest, HasCorrectOutputGLSLVersion) { … }
namespace {
testing::tuple<const char*, const char*> make_gl_glsl_tuple(
const char* gl_version,
const char* glsl_version_directive) { … }
}
INSTANTIATE_TEST_SUITE_P(…);
}
}