Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(579)

Side by Side Diff: gpu/command_buffer/client/client_test_helper.cc

Issue 253943002: Remove CommandBuffer::GetState (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: I forgot Poland^Wmojo Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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() { 18 MockCommandBufferBase::MockCommandBufferBase() {
19 } 19 }
20 20
21 MockCommandBufferBase::~MockCommandBufferBase() { 21 MockCommandBufferBase::~MockCommandBufferBase() {
22 } 22 }
23 23
24 bool MockCommandBufferBase::Initialize() { 24 bool MockCommandBufferBase::Initialize() {
25 return true; 25 return true;
26 } 26 }
27 27
28 CommandBuffer::State MockCommandBufferBase::GetState() {
29 return state_;
30 }
31
32 CommandBuffer::State MockCommandBufferBase::GetLastState() { 28 CommandBuffer::State MockCommandBufferBase::GetLastState() {
33 return state_; 29 return state_;
34 } 30 }
35 31
36 int32 MockCommandBufferBase::GetLastToken() { 32 int32 MockCommandBufferBase::GetLastToken() {
37 return state_.token; 33 return state_.token;
38 } 34 }
39 35
40 void MockCommandBufferBase::SetGetOffset(int32 get_offset) { 36 void MockCommandBufferBase::SetGetOffset(int32 get_offset) {
41 state_.get_offset = get_offset; 37 state_.get_offset = get_offset;
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
153 149
154 MockClientGpuControl::MockClientGpuControl() { 150 MockClientGpuControl::MockClientGpuControl() {
155 } 151 }
156 152
157 MockClientGpuControl::~MockClientGpuControl() { 153 MockClientGpuControl::~MockClientGpuControl() {
158 } 154 }
159 155
160 } // namespace gpu 156 } // namespace gpu
161 157
162 158
OLDNEW
« no previous file with comments | « gpu/command_buffer/client/client_test_helper.h ('k') | gpu/command_buffer/client/cmd_buffer_helper_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698