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 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
102 GPU_NOTREACHED(); | 102 GPU_NOTREACHED(); |
103 state_.error = error; | 103 state_.error = error; |
104 } | 104 } |
105 | 105 |
106 void MockCommandBufferBase::SetContextLostReason( | 106 void MockCommandBufferBase::SetContextLostReason( |
107 error::ContextLostReason reason) { | 107 error::ContextLostReason reason) { |
108 GPU_NOTREACHED(); | 108 GPU_NOTREACHED(); |
109 state_.context_lost_reason = reason; | 109 state_.context_lost_reason = reason; |
110 } | 110 } |
111 | 111 |
| 112 uint32 MockCommandBufferBase::InsertSyncPoint() { |
| 113 GPU_NOTREACHED(); |
| 114 return 0; |
| 115 } |
| 116 |
112 // GCC requires these declarations, but MSVC requires they not be present | 117 // GCC requires these declarations, but MSVC requires they not be present |
113 #ifndef _MSC_VER | 118 #ifndef _MSC_VER |
114 const int32 MockCommandBufferBase::kTransferBufferBaseId; | 119 const int32 MockCommandBufferBase::kTransferBufferBaseId; |
115 const int32 MockCommandBufferBase::kMaxTransferBuffers; | 120 const int32 MockCommandBufferBase::kMaxTransferBuffers; |
116 #endif | 121 #endif |
117 | 122 |
118 MockClientCommandBuffer::MockClientCommandBuffer() { | 123 MockClientCommandBuffer::MockClientCommandBuffer() { |
119 DelegateToFake(); | 124 DelegateToFake(); |
120 } | 125 } |
121 | 126 |
(...skipping 20 matching lines...) Expand all Loading... |
142 void MockClientCommandBufferMockFlush::DelegateToFake() { | 147 void MockClientCommandBufferMockFlush::DelegateToFake() { |
143 MockClientCommandBuffer::DelegateToFake(); | 148 MockClientCommandBuffer::DelegateToFake(); |
144 ON_CALL(*this, Flush(_)) | 149 ON_CALL(*this, Flush(_)) |
145 .WillByDefault(Invoke( | 150 .WillByDefault(Invoke( |
146 this, &MockCommandBufferBase::FlushHelper)); | 151 this, &MockCommandBufferBase::FlushHelper)); |
147 } | 152 } |
148 | 153 |
149 } // namespace gpu | 154 } // namespace gpu |
150 | 155 |
151 | 156 |
OLD | NEW |