| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/common/command_buffer_mock.h" | 5 #include "gpu/command_buffer/common/command_buffer_mock.h" |
| 6 | 6 |
| 7 namespace gpu { | 7 namespace gpu { |
| 8 | 8 |
| 9 MockCommandBuffer::MockCommandBuffer() { | 9 MockCommandBuffer::MockCommandBuffer() { |
| 10 ON_CALL(*this, GetRingBuffer()) | |
| 11 .WillByDefault(testing::Return(Buffer())); | |
| 12 ON_CALL(*this, GetTransferBuffer(testing::_)) | 10 ON_CALL(*this, GetTransferBuffer(testing::_)) |
| 13 .WillByDefault(testing::Return(Buffer())); | 11 .WillByDefault(testing::Return(Buffer())); |
| 14 } | 12 } |
| 15 | 13 |
| 16 MockCommandBuffer::~MockCommandBuffer() {} | 14 MockCommandBuffer::~MockCommandBuffer() {} |
| 17 | 15 |
| 18 } // namespace gpu | 16 } // namespace gpu |
| OLD | NEW |