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

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

Issue 331723003: gpu: Remove Create/DeleteImage IPC by adding an X11_PIXMAP_BUFFER GpuMemoryBuffer type. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 6 years, 5 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/service/gles2_cmd_decoder_mock.h" 8 #include "gpu/command_buffer/service/gles2_cmd_decoder_mock.h"
9 #include "gpu/command_buffer/service/gpu_service_test.h" 9 #include "gpu/command_buffer/service/gpu_service_test.h"
10 #include "gpu/command_buffer/service/test_helper.h" 10 #include "gpu/command_buffer/service/test_helper.h"
(...skipping 20 matching lines...) Expand all
31 public: 31 public:
32 static const bool kBindGeneratesResource = false; 32 static const bool kBindGeneratesResource = false;
33 33
34 ContextGroupTest() {} 34 ContextGroupTest() {}
35 35
36 protected: 36 protected:
37 virtual void SetUp() { 37 virtual void SetUp() {
38 GpuServiceTest::SetUp(); 38 GpuServiceTest::SetUp();
39 decoder_.reset(new MockGLES2Decoder()); 39 decoder_.reset(new MockGLES2Decoder());
40 group_ = scoped_refptr<ContextGroup>( 40 group_ = scoped_refptr<ContextGroup>(
41 new ContextGroup(NULL, NULL, NULL, NULL, NULL, kBindGeneratesResource)); 41 new ContextGroup(NULL, NULL, NULL, NULL, kBindGeneratesResource));
42 } 42 }
43 43
44 scoped_ptr<MockGLES2Decoder> decoder_; 44 scoped_ptr<MockGLES2Decoder> decoder_;
45 scoped_refptr<ContextGroup> group_; 45 scoped_refptr<ContextGroup> group_;
46 }; 46 };
47 47
48 TEST_F(ContextGroupTest, Basic) { 48 TEST_F(ContextGroupTest, Basic) {
49 // Test it starts off uninitialized. 49 // Test it starts off uninitialized.
50 EXPECT_EQ(0u, group_->max_vertex_attribs()); 50 EXPECT_EQ(0u, group_->max_vertex_attribs());
51 EXPECT_EQ(0u, group_->max_texture_units()); 51 EXPECT_EQ(0u, group_->max_texture_units());
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
126 EXPECT_TRUE(group_->renderbuffer_manager() == NULL); 126 EXPECT_TRUE(group_->renderbuffer_manager() == NULL);
127 EXPECT_TRUE(group_->texture_manager() == NULL); 127 EXPECT_TRUE(group_->texture_manager() == NULL);
128 EXPECT_TRUE(group_->program_manager() == NULL); 128 EXPECT_TRUE(group_->program_manager() == NULL);
129 EXPECT_TRUE(group_->shader_manager() == NULL); 129 EXPECT_TRUE(group_->shader_manager() == NULL);
130 } 130 }
131 131
132 } // namespace gles2 132 } // namespace gles2
133 } // namespace gpu 133 } // namespace gpu
134 134
135 135
OLDNEW
« no previous file with comments | « gpu/command_buffer/service/context_group.cc ('k') | gpu/command_buffer/service/gles2_cmd_decoder.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698