#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) …
#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) { … }
}
TEST_F(RenderbufferManagerTest, AddToSignature) { … }
class RenderbufferManagerFormatGLESTest : public RenderbufferManagerTestBase { … };
TEST_F(RenderbufferManagerFormatGLESTest, UpgradeDepthFormatOnGLES) { … }
}
}