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/vertex_array_manager.h" | 5 #include "gpu/command_buffer/service/vertex_array_manager.h" |
6 #include "gpu/command_buffer/service/vertex_attrib_manager.h" | 6 #include "gpu/command_buffer/service/vertex_attrib_manager.h" |
7 | 7 |
8 #include "base/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
9 #include "gpu/command_buffer/common/gl_mock.h" | |
10 #include "gpu/command_buffer/service/feature_info.h" | 9 #include "gpu/command_buffer/service/feature_info.h" |
11 #include "gpu/command_buffer/service/test_helper.h" | 10 #include "gpu/command_buffer/service/test_helper.h" |
12 #include "testing/gtest/include/gtest/gtest.h" | 11 #include "testing/gtest/include/gtest/gtest.h" |
| 12 #include "ui/gl/gl_mock.h" |
13 | 13 |
14 using ::testing::Pointee; | 14 using ::testing::Pointee; |
15 using ::testing::_; | 15 using ::testing::_; |
16 | 16 |
17 namespace gpu { | 17 namespace gpu { |
18 namespace gles2 { | 18 namespace gles2 { |
19 | 19 |
20 class VertexArrayManagerTest : public testing::Test { | 20 class VertexArrayManagerTest : public testing::Test { |
21 public: | 21 public: |
22 static const uint32 kNumVertexAttribs = 8; | 22 static const uint32 kNumVertexAttribs = 8; |
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
94 manager.Destroy(true); | 94 manager.Destroy(true); |
95 // Check that resources got freed. | 95 // Check that resources got freed. |
96 info1 = manager.GetVertexAttribManager(kClient1Id); | 96 info1 = manager.GetVertexAttribManager(kClient1Id); |
97 ASSERT_TRUE(info1 == NULL); | 97 ASSERT_TRUE(info1 == NULL); |
98 } | 98 } |
99 | 99 |
100 } // namespace gles2 | 100 } // namespace gles2 |
101 } // namespace gpu | 101 } // namespace gpu |
102 | 102 |
103 | 103 |
OLD | NEW |