| OLD | NEW |
| 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 <stdint.h> | 7 #include <stdint.h> |
| 8 | 8 |
| 9 #include <memory> | 9 #include <memory> |
| 10 | 10 |
| (...skipping 26 matching lines...) Expand all Loading... |
| 37 | 37 |
| 38 ContextGroupTest() {} | 38 ContextGroupTest() {} |
| 39 | 39 |
| 40 protected: | 40 protected: |
| 41 void SetUp() override { | 41 void SetUp() override { |
| 42 GpuServiceTest::SetUp(); | 42 GpuServiceTest::SetUp(); |
| 43 decoder_.reset(new MockGLES2Decoder()); | 43 decoder_.reset(new MockGLES2Decoder()); |
| 44 scoped_refptr<FeatureInfo> feature_info = new FeatureInfo; | 44 scoped_refptr<FeatureInfo> feature_info = new FeatureInfo; |
| 45 group_ = scoped_refptr<ContextGroup>( | 45 group_ = scoped_refptr<ContextGroup>( |
| 46 new ContextGroup(gpu_preferences_, NULL, NULL, NULL, NULL, feature_info, | 46 new ContextGroup(gpu_preferences_, NULL, NULL, NULL, NULL, feature_info, |
| 47 kBindGeneratesResource, nullptr)); | 47 kBindGeneratesResource, nullptr, nullptr)); |
| 48 } | 48 } |
| 49 | 49 |
| 50 GpuPreferences gpu_preferences_; | 50 GpuPreferences gpu_preferences_; |
| 51 std::unique_ptr<MockGLES2Decoder> decoder_; | 51 std::unique_ptr<MockGLES2Decoder> decoder_; |
| 52 scoped_refptr<ContextGroup> group_; | 52 scoped_refptr<ContextGroup> group_; |
| 53 }; | 53 }; |
| 54 | 54 |
| 55 TEST_F(ContextGroupTest, Basic) { | 55 TEST_F(ContextGroupTest, Basic) { |
| 56 // Test it starts off uninitialized. | 56 // Test it starts off uninitialized. |
| 57 EXPECT_EQ(0u, group_->max_vertex_attribs()); | 57 EXPECT_EQ(0u, group_->max_vertex_attribs()); |
| (...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 144 EXPECT_TRUE(group_->renderbuffer_manager() == NULL); | 144 EXPECT_TRUE(group_->renderbuffer_manager() == NULL); |
| 145 EXPECT_TRUE(group_->texture_manager() == NULL); | 145 EXPECT_TRUE(group_->texture_manager() == NULL); |
| 146 EXPECT_TRUE(group_->program_manager() == NULL); | 146 EXPECT_TRUE(group_->program_manager() == NULL); |
| 147 EXPECT_TRUE(group_->shader_manager() == NULL); | 147 EXPECT_TRUE(group_->shader_manager() == NULL); |
| 148 } | 148 } |
| 149 | 149 |
| 150 } // namespace gles2 | 150 } // namespace gles2 |
| 151 } // namespace gpu | 151 } // namespace gpu |
| 152 | 152 |
| 153 | 153 |
| OLD | NEW |