src/third_party/angle/src/tests/compiler_tests/OES_texture_cube_map_array_test.cpp
// Check that if the extension supported and enabled, using the features succeeds.
Check that if the extension supported and enabled, using the features succeeds.
Check that if the extension supported and enabled using the features succeeds .
TEST_F(OESTextureCubeMapArrayTest, ExtensionEnabledOES)
{
    const std::string &shaderString =
        R"(#version 310 es
        #extension GL_OES_texture_cube_map_array : enable
        precision mediump float;
        uniform highp isamplerCubeArray u_sampler;
        void main()
        {
            vec4 color = vec4(texture(u_sampler, vec4(0, 0, 0, 0)));
        })";
    if (!compile(shaderString))
    {
        FAIL() << "Shader compilation failed, expecting success:\n" << mInfoLog;
    }
}
TEST_F ( OESTextureCubeMapArrayTest , ExtensionEnabledOES ) { const std :: string & shaderString = R" ( #version 310 es
        #extension GL_OES_texture_cube_map_array : enable
        precision mediump float;
        uniform highp isamplerCubeArray u_sampler;
        void main()
        {
            vec4 color = vec4(texture(u_sampler, vec4(0, 0, 0, 0)));
        } ) " ; if ( ! compile ( shaderString ) ) { FAIL ( ) << " \n " << mInfoLog ; } }
Check that if the extension supported and enabled, using the features succeeds.
Check that if the extension supported and enabled using the features succeeds .