| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 #include "testing/gtest/include/gtest/gtest.h" | 6 #include "testing/gtest/include/gtest/gtest.h" |
| 7 | 7 |
| 8 namespace gpu { | 8 namespace gpu { |
| 9 namespace gles2 { | 9 namespace gles2 { |
| 10 | 10 |
| 11 class ContextGroupTest : public testing::Test { | 11 class ContextGroupTest : public testing::Test { |
| 12 public: | 12 public: |
| 13 ContextGroupTest() { | 13 ContextGroupTest() { |
| 14 } | 14 } |
| 15 | 15 |
| 16 protected: | 16 protected: |
| 17 virtual void SetUp() { | 17 virtual void SetUp() { |
| 18 } | 18 } |
| 19 | 19 |
| 20 virtual void TearDown() { | 20 virtual void TearDown() { |
| 21 } | 21 } |
| 22 | 22 |
| 23 ContextGroup group_; | 23 ContextGroup group_; |
| 24 }; | 24 }; |
| 25 | 25 |
| 26 TEST_F(ContextGroupTest, Basic) { | 26 TEST_F(ContextGroupTest, Basic) { |
| 27 // Test it starts off uninitialized. | 27 // Test it starts off uninitialized. |
| 28 EXPECT_EQ(0u, group_.max_vertex_attribs()); | 28 EXPECT_EQ(0u, group_.max_vertex_attribs()); |
| 29 EXPECT_EQ(0u, group_.max_texture_units()); | 29 EXPECT_EQ(0u, group_.max_texture_units()); |
| 30 EXPECT_TRUE(group_.id_manager() == NULL); | |
| 31 EXPECT_TRUE(group_.buffer_manager() == NULL); | 30 EXPECT_TRUE(group_.buffer_manager() == NULL); |
| 32 EXPECT_TRUE(group_.framebuffer_manager() == NULL); | 31 EXPECT_TRUE(group_.framebuffer_manager() == NULL); |
| 33 EXPECT_TRUE(group_.renderbuffer_manager() == NULL); | 32 EXPECT_TRUE(group_.renderbuffer_manager() == NULL); |
| 34 EXPECT_TRUE(group_.texture_manager() == NULL); | 33 EXPECT_TRUE(group_.texture_manager() == NULL); |
| 35 EXPECT_TRUE(group_.program_manager() == NULL); | 34 EXPECT_TRUE(group_.program_manager() == NULL); |
| 36 EXPECT_TRUE(group_.shader_manager() == NULL); | 35 EXPECT_TRUE(group_.shader_manager() == NULL); |
| 37 } | 36 } |
| 38 | 37 |
| 39 } // namespace gles2 | 38 } // namespace gles2 |
| 40 } // namespace gpu | 39 } // namespace gpu |
| 41 | 40 |
| 42 | 41 |
| OLD | NEW |