Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(229)

Side by Side Diff: gpu/command_buffer/service/framebuffer_manager_unittest.cc

Issue 7889040: Change X11 error handler override to allow easy X11 error checking. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 9 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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"
5 #include "gpu/command_buffer/service/framebuffer_manager.h" 11 #include "gpu/command_buffer/service/framebuffer_manager.h"
6 #include "gpu/command_buffer/service/feature_info.h" 12 #include "gpu/command_buffer/service/feature_info.h"
7 13
8 #include "gpu/command_buffer/common/gl_mock.h"
9 #include "testing/gtest/include/gtest/gtest.h"
10
11 namespace gpu { 14 namespace gpu {
12 namespace gles2 { 15 namespace gles2 {
13 16
14 class FramebufferManagerTest : public testing::Test { 17 class FramebufferManagerTest : public testing::Test {
15 public: 18 public:
16 FramebufferManagerTest() { 19 FramebufferManagerTest() {
17 } 20 }
18 ~FramebufferManagerTest() { 21 ~FramebufferManagerTest() {
19 manager_.Destroy(false); 22 manager_.Destroy(false);
20 } 23 }
(...skipping 336 matching lines...) Expand 10 before | Expand all | Expand 10 after
357 // Check removing it. 360 // Check removing it.
358 info_->AttachTexture(GL_COLOR_ATTACHMENT0, NULL, 0, 0); 361 info_->AttachTexture(GL_COLOR_ATTACHMENT0, NULL, 0, 0);
359 EXPECT_TRUE(info_->GetAttachment(GL_COLOR_ATTACHMENT0) == NULL); 362 EXPECT_TRUE(info_->GetAttachment(GL_COLOR_ATTACHMENT0) == NULL);
360 EXPECT_EQ(static_cast<GLenum>(0), info_->GetColorAttachmentFormat()); 363 EXPECT_EQ(static_cast<GLenum>(0), info_->GetColorAttachmentFormat());
361 364
362 tex_manager.Destroy(false); 365 tex_manager.Destroy(false);
363 } 366 }
364 367
365 } // namespace gles2 368 } // namespace gles2
366 } // namespace gpu 369 } // namespace gpu
367
368
OLDNEW
« no previous file with comments | « gpu/command_buffer/service/buffer_manager_unittest.cc ('k') | gpu/command_buffer/service/gles2_cmd_decoder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698