chromium/gpu/command_buffer/service/renderbuffer_manager_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 "gpu/command_buffer/service/renderbuffer_manager.h"

#include <stdint.h>

#include <memory>
#include <set>

#include "gpu/command_buffer/common/gles2_cmd_utils.h"
#include "gpu/command_buffer/service/feature_info.h"
#include "gpu/command_buffer/service/gpu_service_test.h"
#include "gpu/command_buffer/service/mocks.h"
#include "gpu/command_buffer/service/test_helper.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "ui/gl/gl_implementation.h"
#include "ui/gl/gl_mock.h"

StrictMock;

namespace gpu {
namespace gles2 {

class RenderbufferManagerTestBase : public GpuServiceTest {};

class RenderbufferManagerTest : public RenderbufferManagerTestBase {};

class RenderbufferManagerMemoryTrackerTest
    : public RenderbufferManagerTestBase {};

#define EXPECT_MEMORY_ALLOCATION_CHANGE(old_size, new_size)

// GCC requires these declarations, but MSVC requires they not be present
#ifndef COMPILER_MSVC
const GLint RenderbufferManagerTestBase::kMaxSize;
const GLint RenderbufferManagerTestBase::kMaxSamples;
#endif

TEST_F(RenderbufferManagerTest, Basic) {}

TEST_F(RenderbufferManagerTest, Destroy) {}

TEST_F(RenderbufferManagerTest, Renderbuffer) {}

TEST_F(RenderbufferManagerMemoryTrackerTest, Basic) {}

TEST_F(RenderbufferManagerTest, UseDeletedRenderbufferInfo) {}

namespace {

bool InSet(std::set<std::string>* string_set, const std::string& str) {}

}  // anonymous namespace

TEST_F(RenderbufferManagerTest, AddToSignature) {}

class RenderbufferManagerFormatGLESTest : public RenderbufferManagerTestBase {};

TEST_F(RenderbufferManagerFormatGLESTest, UpgradeDepthFormatOnGLES) {}

}  // namespace gles2
}  // namespace gpu