summaryrefslogtreecommitdiffstats
path: root/gpu/command_buffer/service/test_helper.cc
diff options
context:
space:
mode:
Diffstat (limited to 'gpu/command_buffer/service/test_helper.cc')
-rw-r--r--gpu/command_buffer/service/test_helper.cc18
1 files changed, 9 insertions, 9 deletions
diff --git a/gpu/command_buffer/service/test_helper.cc b/gpu/command_buffer/service/test_helper.cc
index 06c2fd7..5b3f57c 100644
--- a/gpu/command_buffer/service/test_helper.cc
+++ b/gpu/command_buffer/service/test_helper.cc
@@ -11,8 +11,8 @@
#include "base/strings/string_tokenizer.h"
#include "gpu/command_buffer/common/types.h"
#include "gpu/command_buffer/service/buffer_manager.h"
+#include "gpu/command_buffer/service/error_state_mock.h"
#include "gpu/command_buffer/service/gl_utils.h"
-#include "gpu/command_buffer/service/gles2_cmd_decoder_mock.h"
#include "gpu/command_buffer/service/gpu_switches.h"
#include "gpu/command_buffer/service/program_manager.h"
#include "gpu/command_buffer/service/texture_manager.h"
@@ -498,10 +498,10 @@ void TestHelper::SetupShader(
}
void TestHelper::DoBufferData(
- ::gfx::MockGLInterface* gl, MockGLES2Decoder* decoder,
+ ::gfx::MockGLInterface* gl, MockErrorState* error_state,
BufferManager* manager, Buffer* buffer, GLsizeiptr size, GLenum usage,
const GLvoid* data, GLenum error) {
- EXPECT_CALL(*decoder, CopyRealGLErrorsToWrapper(_, _, _))
+ EXPECT_CALL(*error_state, CopyRealGLErrorsToWrapper(_, _, _))
.Times(1)
.RetiresOnSaturation();
if (manager->IsUsageClientSideArray(usage)) {
@@ -515,14 +515,14 @@ void TestHelper::DoBufferData(
.Times(1)
.RetiresOnSaturation();
}
- EXPECT_CALL(*decoder, PeekGLError(_, _, _))
+ EXPECT_CALL(*error_state, PeekGLError(_, _, _))
.WillOnce(Return(error))
.RetiresOnSaturation();
- manager->DoBufferData(decoder, buffer, size, usage, data);
+ manager->DoBufferData(error_state, buffer, size, usage, data);
}
void TestHelper::SetTexParameterWithExpectations(
- ::gfx::MockGLInterface* gl, MockGLES2Decoder* decoder,
+ ::gfx::MockGLInterface* gl, MockErrorState* error_state,
TextureManager* manager, Texture* texture,
GLenum pname, GLint value, GLenum error) {
if (error == GL_NO_ERROR) {
@@ -532,15 +532,15 @@ void TestHelper::SetTexParameterWithExpectations(
.RetiresOnSaturation();
}
} else if (error == GL_INVALID_ENUM) {
- EXPECT_CALL(*decoder, SetGLErrorInvalidEnum(_, _, _, value, _))
+ EXPECT_CALL(*error_state, SetGLErrorInvalidEnum(_, _, _, value, _))
.Times(1)
.RetiresOnSaturation();
} else {
- EXPECT_CALL(*decoder, SetGLErrorInvalidParam(_, _, error, _, _, _))
+ EXPECT_CALL(*error_state, SetGLErrorInvalidParam(_, _, error, _, _, _))
.Times(1)
.RetiresOnSaturation();
}
- manager->SetParameter("", decoder, texture, pname, value);
+ manager->SetParameter("", error_state, texture, pname, value);
}
ScopedGLImplementationSetter::ScopedGLImplementationSetter(