| 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 // Tests for GLES2Implementation. | 5 // Tests for GLES2Implementation. |
| 6 | 6 |
| 7 #include "gpu/command_buffer/client/client_test_helper.h" | 7 #include "gpu/command_buffer/client/client_test_helper.h" |
| 8 | 8 |
| 9 #include "gpu/command_buffer/common/command_buffer.h" | 9 #include "gpu/command_buffer/common/command_buffer.h" |
| 10 #include "gpu/command_buffer/client/cmd_buffer_helper.h" | 10 #include "gpu/command_buffer/client/cmd_buffer_helper.h" |
| (...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 123 DelegateToFake(); | 123 DelegateToFake(); |
| 124 } | 124 } |
| 125 | 125 |
| 126 MockClientCommandBuffer::~MockClientCommandBuffer() { | 126 MockClientCommandBuffer::~MockClientCommandBuffer() { |
| 127 } | 127 } |
| 128 | 128 |
| 129 void MockClientCommandBuffer::Flush(int32 put_offset) { | 129 void MockClientCommandBuffer::Flush(int32 put_offset) { |
| 130 FlushHelper(put_offset); | 130 FlushHelper(put_offset); |
| 131 } | 131 } |
| 132 | 132 |
| 133 void MockClientCommandBuffer::ShallowFlush(int32 put_offset) { |
| 134 FlushHelper(put_offset); |
| 135 } |
| 136 |
| 133 void MockClientCommandBuffer::DelegateToFake() { | 137 void MockClientCommandBuffer::DelegateToFake() { |
| 134 ON_CALL(*this, DestroyTransferBuffer(_)) | 138 ON_CALL(*this, DestroyTransferBuffer(_)) |
| 135 .WillByDefault(Invoke( | 139 .WillByDefault(Invoke( |
| 136 this, &MockCommandBufferBase::DestroyTransferBufferHelper)); | 140 this, &MockCommandBufferBase::DestroyTransferBufferHelper)); |
| 137 } | 141 } |
| 138 | 142 |
| 139 MockClientCommandBufferMockFlush::MockClientCommandBufferMockFlush() { | 143 MockClientCommandBufferMockFlush::MockClientCommandBufferMockFlush() { |
| 140 DelegateToFake(); | 144 DelegateToFake(); |
| 141 } | 145 } |
| 142 | 146 |
| 143 MockClientCommandBufferMockFlush::~MockClientCommandBufferMockFlush() { | 147 MockClientCommandBufferMockFlush::~MockClientCommandBufferMockFlush() { |
| 144 } | 148 } |
| 145 | 149 |
| 146 void MockClientCommandBufferMockFlush::DelegateToFake() { | 150 void MockClientCommandBufferMockFlush::DelegateToFake() { |
| 147 MockClientCommandBuffer::DelegateToFake(); | 151 MockClientCommandBuffer::DelegateToFake(); |
| 148 ON_CALL(*this, Flush(_)) | 152 ON_CALL(*this, Flush(_)) |
| 149 .WillByDefault(Invoke( | 153 .WillByDefault(Invoke( |
| 150 this, &MockCommandBufferBase::FlushHelper)); | 154 this, &MockCommandBufferBase::FlushHelper)); |
| 151 } | 155 } |
| 152 | 156 |
| 153 MockClientGpuControl::MockClientGpuControl() { | 157 MockClientGpuControl::MockClientGpuControl() { |
| 154 } | 158 } |
| 155 | 159 |
| 156 MockClientGpuControl::~MockClientGpuControl() { | 160 MockClientGpuControl::~MockClientGpuControl() { |
| 157 } | 161 } |
| 158 | 162 |
| 159 } // namespace gpu | 163 } // namespace gpu |
| 160 | 164 |
| 161 | 165 |
| OLD | NEW |