| 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/buffer_manager.h" | 5 #include "gpu/command_buffer/service/buffer_manager.h" |
| 6 #include "gpu/command_buffer/common/gl_mock.h" | 6 #include "gpu/command_buffer/common/gl_mock.h" |
| 7 #include "testing/gtest/include/gtest/gtest.h" | 7 #include "testing/gtest/include/gtest/gtest.h" |
| 8 | 8 |
| 9 namespace gpu { | 9 namespace gpu { |
| 10 namespace gles2 { | 10 namespace gles2 { |
| 11 | 11 |
| 12 class BufferManagerTest : public testing::Test { | 12 class BufferManagerTest : public testing::Test { |
| 13 public: | 13 public: |
| 14 BufferManagerTest() { | 14 BufferManagerTest() : manager_(NULL) { |
| 15 } | 15 } |
| 16 ~BufferManagerTest() { | 16 ~BufferManagerTest() { |
| 17 manager_.Destroy(false); | 17 manager_.Destroy(false); |
| 18 } | 18 } |
| 19 | 19 |
| 20 protected: | 20 protected: |
| 21 virtual void SetUp() { | 21 virtual void SetUp() { |
| 22 gl_.reset(new ::testing::StrictMock< ::gfx::MockGLInterface>()); | 22 gl_.reset(new ::testing::StrictMock< ::gfx::MockGLInterface>()); |
| 23 ::gfx::GLInterface::SetGLInterface(gl_.get()); | 23 ::gfx::GLInterface::SetGLInterface(gl_.get()); |
| 24 } | 24 } |
| (...skipping 216 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 241 EXPECT_CALL(*gl_, DeleteBuffersARB(1, ::testing::Pointee(kServiceBufferId))) | 241 EXPECT_CALL(*gl_, DeleteBuffersARB(1, ::testing::Pointee(kServiceBufferId))) |
| 242 .Times(1) | 242 .Times(1) |
| 243 .RetiresOnSaturation(); | 243 .RetiresOnSaturation(); |
| 244 info = NULL; | 244 info = NULL; |
| 245 } | 245 } |
| 246 | 246 |
| 247 } // namespace gles2 | 247 } // namespace gles2 |
| 248 } // namespace gpu | 248 } // namespace gpu |
| 249 | 249 |
| 250 | 250 |
| OLD | NEW |