chromium/gpu/command_buffer/tests/gl_map_buffer_range_unittest.cc

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

#ifdef UNSAFE_BUFFERS_BUILD
// TODO(crbug.com/40285824): Remove this and convert code to safer constructs.
#pragma allow_unsafe_buffers
#endif

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

#include "build/build_config.h"
#include "gpu/command_buffer/service/context_group.h"
#include "gpu/command_buffer/tests/gl_manager.h"
#include "gpu/command_buffer/tests/gl_test_utils.h"
#include "gpu/config/gpu_test_config.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"

#define SHADER(Src)

namespace gpu {

class ES3MapBufferRangeTest : public testing::Test {};

TEST_F(ES3MapBufferRangeTest, DrawArraysAndInstanced) {}

TEST_F(ES3MapBufferRangeTest, DrawElementsAndInstanced) {}

TEST_F(ES3MapBufferRangeTest, ReadPixels) {}

TEST_F(ES3MapBufferRangeTest, TexImageAndSubImage2D) {}

// TODO(crbug.com/40904610): Fix flakiness and re-enable the test.
#if BUILDFLAG(IS_LINUX) && defined(ADDRESS_SANITIZER) && defined(LEAK_SANITIZER)
#define MAYBE_TexImageAndSubImage3D
#else
#define MAYBE_TexImageAndSubImage3D
#endif
TEST_F(ES3MapBufferRangeTest, MAYBE_TexImageAndSubImage3D) {}

// TODO(zmo): Add tests for CompressedTex* functions.

TEST_F(ES3MapBufferRangeTest, TransformFeedback) {}

TEST_F(ES3MapBufferRangeTest, GetBufferParameteriv) {}

TEST_F(ES3MapBufferRangeTest, CopyBufferSubData) {}

TEST_F(ES3MapBufferRangeTest, Delete) {}

// TODO(zmo): add tests for uniform buffer mapping.

}  // namespace gpu