| 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" |
| 11 #include "testing/gmock/include/gmock/gmock.h" | 11 #include "testing/gmock/include/gmock/gmock.h" |
| 12 | 12 |
| 13 using ::testing::_; | 13 using ::testing::_; |
| 14 using ::testing::Invoke; | 14 using ::testing::Invoke; |
| 15 | 15 |
| 16 namespace gpu { | 16 namespace gpu { |
| 17 | 17 |
| 18 MockCommandBufferBase::MockCommandBufferBase() : put_offset_(0) { | 18 MockCommandBufferBase::MockCommandBufferBase() |
| 19 : CommandBufferServiceBase(kCommandBufferNamespace_InProcess, 0), |
| 20 put_offset_(0) { |
| 19 } | 21 } |
| 20 | 22 |
| 21 MockCommandBufferBase::~MockCommandBufferBase() { | 23 MockCommandBufferBase::~MockCommandBufferBase() { |
| 22 } | 24 } |
| 23 | 25 |
| 24 bool MockCommandBufferBase::Initialize() { | 26 bool MockCommandBufferBase::Initialize() { |
| 25 return true; | 27 return true; |
| 26 } | 28 } |
| 27 | 29 |
| 28 CommandBuffer::State MockCommandBufferBase::GetLastState() { | 30 CommandBuffer::State MockCommandBufferBase::GetLastState() { |
| (...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 156 | 158 |
| 157 MockClientGpuControl::MockClientGpuControl() { | 159 MockClientGpuControl::MockClientGpuControl() { |
| 158 } | 160 } |
| 159 | 161 |
| 160 MockClientGpuControl::~MockClientGpuControl() { | 162 MockClientGpuControl::~MockClientGpuControl() { |
| 161 } | 163 } |
| 162 | 164 |
| 163 } // namespace gpu | 165 } // namespace gpu |
| 164 | 166 |
| 165 | 167 |
| OLD | NEW |