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

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

Issue 10543125: gpu: Add support for GLX_EXT_texture_from_pixmap extension. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Move CreateGLImage below virtual methods. Created 8 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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/context_group.h" 5 #include "gpu/command_buffer/service/context_group.h"
6 6
7 #include "base/memory/scoped_ptr.h" 7 #include "base/memory/scoped_ptr.h"
8 #include "gpu/command_buffer/common/gl_mock.h" 8 #include "gpu/command_buffer/common/gl_mock.h"
9 #include "gpu/command_buffer/service/test_helper.h" 9 #include "gpu/command_buffer/service/test_helper.h"
10 #include "gpu/command_buffer/service/texture_manager.h" 10 #include "gpu/command_buffer/service/texture_manager.h"
(...skipping 18 matching lines...) Expand all
29 29
30 class ContextGroupTest : public testing::Test { 30 class ContextGroupTest : public testing::Test {
31 public: 31 public:
32 ContextGroupTest() { 32 ContextGroupTest() {
33 } 33 }
34 34
35 protected: 35 protected:
36 virtual void SetUp() { 36 virtual void SetUp() {
37 gl_.reset(new ::testing::StrictMock< ::gfx::MockGLInterface>()); 37 gl_.reset(new ::testing::StrictMock< ::gfx::MockGLInterface>());
38 ::gfx::GLInterface::SetGLInterface(gl_.get()); 38 ::gfx::GLInterface::SetGLInterface(gl_.get());
39 group_ = ContextGroup::Ref(new ContextGroup(NULL, NULL, true)); 39 group_ = ContextGroup::Ref(new ContextGroup(NULL, NULL, NULL, true));
40 } 40 }
41 41
42 virtual void TearDown() { 42 virtual void TearDown() {
43 ::gfx::GLInterface::SetGLInterface(NULL); 43 ::gfx::GLInterface::SetGLInterface(NULL);
44 gl_.reset(); 44 gl_.reset();
45 } 45 }
46 46
47 scoped_ptr< ::testing::StrictMock< ::gfx::MockGLInterface> > gl_; 47 scoped_ptr< ::testing::StrictMock< ::gfx::MockGLInterface> > gl_;
48 ContextGroup::Ref group_; 48 ContextGroup::Ref group_;
49 }; 49 };
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
128 EXPECT_TRUE(group_->renderbuffer_manager() == NULL); 128 EXPECT_TRUE(group_->renderbuffer_manager() == NULL);
129 EXPECT_TRUE(group_->texture_manager() == NULL); 129 EXPECT_TRUE(group_->texture_manager() == NULL);
130 EXPECT_TRUE(group_->program_manager() == NULL); 130 EXPECT_TRUE(group_->program_manager() == NULL);
131 EXPECT_TRUE(group_->shader_manager() == NULL); 131 EXPECT_TRUE(group_->shader_manager() == NULL);
132 } 132 }
133 133
134 } // namespace gles2 134 } // namespace gles2
135 } // namespace gpu 135 } // namespace gpu
136 136
137 137
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698