| 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" | |
| 7 #include "testing/gtest/include/gtest/gtest.h" | 6 #include "testing/gtest/include/gtest/gtest.h" |
| 7 #include "ui/gl/gl_mock.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() : manager_(NULL) { | 14 BufferManagerTest() : manager_(NULL) { |
| 15 } | 15 } |
| 16 ~BufferManagerTest() { | 16 ~BufferManagerTest() { |
| 17 manager_.Destroy(false); | 17 manager_.Destroy(false); |
| (...skipping 232 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 250 EXPECT_CALL(*gl_, DeleteBuffersARB(1, ::testing::Pointee(kServiceBufferId))) | 250 EXPECT_CALL(*gl_, DeleteBuffersARB(1, ::testing::Pointee(kServiceBufferId))) |
| 251 .Times(1) | 251 .Times(1) |
| 252 .RetiresOnSaturation(); | 252 .RetiresOnSaturation(); |
| 253 info = NULL; | 253 info = NULL; |
| 254 } | 254 } |
| 255 | 255 |
| 256 } // namespace gles2 | 256 } // namespace gles2 |
| 257 } // namespace gpu | 257 } // namespace gpu |
| 258 | 258 |
| 259 | 259 |
| OLD | NEW |