summaryrefslogtreecommitdiffstats
path: root/gpu/command_buffer/service/renderbuffer_manager_unittest.cc
diff options
context:
space:
mode:
Diffstat (limited to 'gpu/command_buffer/service/renderbuffer_manager_unittest.cc')
-rw-r--r--gpu/command_buffer/service/renderbuffer_manager_unittest.cc11
1 files changed, 10 insertions, 1 deletions
diff --git a/gpu/command_buffer/service/renderbuffer_manager_unittest.cc b/gpu/command_buffer/service/renderbuffer_manager_unittest.cc
index 563b0fb..da1849c 100644
--- a/gpu/command_buffer/service/renderbuffer_manager_unittest.cc
+++ b/gpu/command_buffer/service/renderbuffer_manager_unittest.cc
@@ -12,7 +12,10 @@ namespace gles2 {
class RenderbufferManagerTest : public testing::Test {
public:
- RenderbufferManagerTest() {
+ static const GLint kMaxSize = 128;
+
+ RenderbufferManagerTest()
+ : manager_(kMaxSize) {
}
~RenderbufferManagerTest() {
manager_.Destroy(false);
@@ -34,10 +37,16 @@ class RenderbufferManagerTest : public testing::Test {
RenderbufferManager manager_;
};
+// GCC requires these declarations, but MSVC requires they not be present
+#ifndef COMPILER_MSVC
+const GLint RenderbufferManagerTest::kMaxSize;
+#endif
+
TEST_F(RenderbufferManagerTest, Basic) {
const GLuint kClient1Id = 1;
const GLuint kService1Id = 11;
const GLuint kClient2Id = 2;
+ EXPECT_EQ(kMaxSize, manager_.max_renderbuffer_size());
// Check we can create renderbuffer.
manager_.CreateRenderbufferInfo(kClient1Id, kService1Id);
// Check renderbuffer got created.