OLD | NEW |
---|---|
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "gpu/command_buffer/service/framebuffer_manager.h" | 5 #include "gpu/command_buffer/service/framebuffer_manager.h" |
6 #include "gpu/command_buffer/service/feature_info.h" | 6 #include "gpu/command_buffer/service/feature_info.h" |
7 | 7 |
8 #include "gpu/command_buffer/common/gl_mock.h" | 8 #include "gpu/command_buffer/common/gl_mock.h" |
9 | |
10 #if defined(USE_X11) | |
Ami GONE FROM CHROMIUM
2011/09/21 22:21:42
Ditto comment on id_manager_unittest.cc.
dominich
2011/09/22 17:00:15
Done.
| |
11 // This is defined by both gtest and Xlib so we need to undefine it before | |
12 // including the gtest header. Obviously the gtest definition will replace the | |
13 // Xlib one for the remainder of this file. | |
14 #undef Bool | |
15 #endif | |
9 #include "testing/gtest/include/gtest/gtest.h" | 16 #include "testing/gtest/include/gtest/gtest.h" |
10 | 17 |
11 namespace gpu { | 18 namespace gpu { |
12 namespace gles2 { | 19 namespace gles2 { |
13 | 20 |
14 class FramebufferManagerTest : public testing::Test { | 21 class FramebufferManagerTest : public testing::Test { |
15 public: | 22 public: |
16 FramebufferManagerTest() { | 23 FramebufferManagerTest() { |
17 } | 24 } |
18 ~FramebufferManagerTest() { | 25 ~FramebufferManagerTest() { |
(...skipping 338 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
357 // Check removing it. | 364 // Check removing it. |
358 info_->AttachTexture(GL_COLOR_ATTACHMENT0, NULL, 0, 0); | 365 info_->AttachTexture(GL_COLOR_ATTACHMENT0, NULL, 0, 0); |
359 EXPECT_TRUE(info_->GetAttachment(GL_COLOR_ATTACHMENT0) == NULL); | 366 EXPECT_TRUE(info_->GetAttachment(GL_COLOR_ATTACHMENT0) == NULL); |
360 EXPECT_EQ(static_cast<GLenum>(0), info_->GetColorAttachmentFormat()); | 367 EXPECT_EQ(static_cast<GLenum>(0), info_->GetColorAttachmentFormat()); |
361 | 368 |
362 tex_manager.Destroy(false); | 369 tex_manager.Destroy(false); |
363 } | 370 } |
364 | 371 |
365 } // namespace gles2 | 372 } // namespace gles2 |
366 } // namespace gpu | 373 } // namespace gpu |
367 | |
368 | |
OLD | NEW |