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.cc8
1 files changed, 6 insertions, 2 deletions
diff --git a/gpu/command_buffer/service/test_helper.cc b/gpu/command_buffer/service/test_helper.cc
index 7bdab92..10f2e33 100644
--- a/gpu/command_buffer/service/test_helper.cc
+++ b/gpu/command_buffer/service/test_helper.cc
@@ -272,14 +272,15 @@ void TestHelper::SetupContextGroupInitExpectations(
void TestHelper::SetupFeatureInfoInitExpectations(
::gfx::MockGLInterface* gl, const char* extensions) {
- SetupFeatureInfoInitExpectationsWithVendor(gl, extensions, "", "");
+ SetupFeatureInfoInitExpectationsWithVendor(gl, extensions, "", "", "");
}
void TestHelper::SetupFeatureInfoInitExpectationsWithVendor(
::gfx::MockGLInterface* gl,
const char* extensions,
const char* vendor,
- const char* renderer) {
+ const char* renderer,
+ const char* version) {
InSequence sequence;
EXPECT_CALL(*gl, GetString(GL_EXTENSIONS))
@@ -291,6 +292,9 @@ void TestHelper::SetupFeatureInfoInitExpectationsWithVendor(
EXPECT_CALL(*gl, GetString(GL_RENDERER))
.WillOnce(Return(reinterpret_cast<const uint8*>(renderer)))
.RetiresOnSaturation();
+ EXPECT_CALL(*gl, GetString(GL_VERSION))
+ .WillOnce(Return(reinterpret_cast<const uint8*>(version)))
+ .RetiresOnSaturation();
}
void TestHelper::SetupExpectationsForClearingUniforms(