chromium/gpu/command_buffer/tests/gl_bind_uniform_location_unittest.cc

// Copyright 2012 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include <GLES2/gl2.h>
#include <GLES2/gl2ext.h>
#include <GLES2/gl2extchromium.h>
#include <stdint.h>

#include "gpu/command_buffer/tests/gl_manager.h"
#include "gpu/command_buffer/tests/gl_test_utils.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"

#define SHADER(Src)

namespace gpu {

class BindUniformLocationTest : public testing::TestWithParam<bool> {};

TEST_P(BindUniformLocationTest, Basic) {}

TEST_P(BindUniformLocationTest, ConflictsDetection) {}

// TODO(crbug.com/40246425): Flaky on Asan/Lsan builds.
#if defined(ADDRESS_SANITIZER) && defined(LEAK_SANITIZER)
#define MAYBE_Compositor
#else
#define MAYBE_Compositor
#endif
TEST_P(BindUniformLocationTest, MAYBE_Compositor) {}

TEST_P(BindUniformLocationTest, UnusedUniformUpdate) {}

// Test for a bug where using a sampler caused GL error if the program had
// uniforms that were optimized away by the driver. This was only a problem with
// glBindUniformLocationCHROMIUM implementation. This could be reproed by
// binding the sampler to a location higher than the amount of active uniforms.
TEST_P(BindUniformLocationTest, UseSamplerWhenUnusedUniforms) {}

INSTANTIATE_TEST_SUITE_P();

}  // namespace gpu