| 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 "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/mailbox_manager.h" | 10 #include "gpu/command_buffer/service/mailbox_manager.h" |
| (...skipping 17 matching lines...) Expand all Loading... |
| 28 namespace gpu { | 28 namespace gpu { |
| 29 namespace gles2 { | 29 namespace gles2 { |
| 30 | 30 |
| 31 class ContextGroupTest : public GpuServiceTest { | 31 class ContextGroupTest : public GpuServiceTest { |
| 32 public: | 32 public: |
| 33 static const bool kBindGeneratesResource = false; | 33 static const bool kBindGeneratesResource = false; |
| 34 | 34 |
| 35 ContextGroupTest() {} | 35 ContextGroupTest() {} |
| 36 | 36 |
| 37 protected: | 37 protected: |
| 38 virtual void SetUp() { | 38 void SetUp() override { |
| 39 GpuServiceTest::SetUp(); | 39 GpuServiceTest::SetUp(); |
| 40 decoder_.reset(new MockGLES2Decoder()); | 40 decoder_.reset(new MockGLES2Decoder()); |
| 41 group_ = scoped_refptr<ContextGroup>( | 41 group_ = scoped_refptr<ContextGroup>( |
| 42 new ContextGroup(NULL, NULL, NULL, NULL, kBindGeneratesResource)); | 42 new ContextGroup(NULL, NULL, NULL, NULL, kBindGeneratesResource)); |
| 43 } | 43 } |
| 44 | 44 |
| 45 scoped_ptr<MockGLES2Decoder> decoder_; | 45 scoped_ptr<MockGLES2Decoder> decoder_; |
| 46 scoped_refptr<ContextGroup> group_; | 46 scoped_refptr<ContextGroup> group_; |
| 47 }; | 47 }; |
| 48 | 48 |
| (...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 127 EXPECT_TRUE(group_->renderbuffer_manager() == NULL); | 127 EXPECT_TRUE(group_->renderbuffer_manager() == NULL); |
| 128 EXPECT_TRUE(group_->texture_manager() == NULL); | 128 EXPECT_TRUE(group_->texture_manager() == NULL); |
| 129 EXPECT_TRUE(group_->program_manager() == NULL); | 129 EXPECT_TRUE(group_->program_manager() == NULL); |
| 130 EXPECT_TRUE(group_->shader_manager() == NULL); | 130 EXPECT_TRUE(group_->shader_manager() == NULL); |
| 131 } | 131 } |
| 132 | 132 |
| 133 } // namespace gles2 | 133 } // namespace gles2 |
| 134 } // namespace gpu | 134 } // namespace gpu |
| 135 | 135 |
| 136 | 136 |
| OLD | NEW |