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 gtest.h out of order because <X11/X.h> #define's Bool & None, which | |
6 // gtest uses as struct names (inside a namespace). This means that | |
7 // #include'ing gtest after anything that pulls in X.h fails to compile. | |
8 // This is http://code.google.com/p/googletest/issues/detail?id=371 | |
9 #include "testing/gtest/include/gtest/gtest.h" | |
10 #include "gpu/command_buffer/common/gl_mock.h" | |
11 #include "gpu/command_buffer/service/framebuffer_manager.h" | 5 #include "gpu/command_buffer/service/framebuffer_manager.h" |
12 #include "gpu/command_buffer/service/feature_info.h" | 6 #include "gpu/command_buffer/service/feature_info.h" |
13 | 7 |
| 8 #include "gpu/command_buffer/common/gl_mock.h" |
| 9 #include "testing/gtest/include/gtest/gtest.h" |
| 10 |
14 namespace gpu { | 11 namespace gpu { |
15 namespace gles2 { | 12 namespace gles2 { |
16 | 13 |
17 class FramebufferManagerTest : public testing::Test { | 14 class FramebufferManagerTest : public testing::Test { |
18 public: | 15 public: |
19 FramebufferManagerTest() { | 16 FramebufferManagerTest() { |
20 } | 17 } |
21 ~FramebufferManagerTest() { | 18 ~FramebufferManagerTest() { |
22 manager_.Destroy(false); | 19 manager_.Destroy(false); |
23 } | 20 } |
(...skipping 336 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
360 // Check removing it. | 357 // Check removing it. |
361 info_->AttachTexture(GL_COLOR_ATTACHMENT0, NULL, 0, 0); | 358 info_->AttachTexture(GL_COLOR_ATTACHMENT0, NULL, 0, 0); |
362 EXPECT_TRUE(info_->GetAttachment(GL_COLOR_ATTACHMENT0) == NULL); | 359 EXPECT_TRUE(info_->GetAttachment(GL_COLOR_ATTACHMENT0) == NULL); |
363 EXPECT_EQ(static_cast<GLenum>(0), info_->GetColorAttachmentFormat()); | 360 EXPECT_EQ(static_cast<GLenum>(0), info_->GetColorAttachmentFormat()); |
364 | 361 |
365 tex_manager.Destroy(false); | 362 tex_manager.Destroy(false); |
366 } | 363 } |
367 | 364 |
368 } // namespace gles2 | 365 } // namespace gles2 |
369 } // namespace gpu | 366 } // namespace gpu |
| 367 |
| 368 |
OLD | NEW |