Index: gpu/command_buffer/service/gles2_cmd_decoder_unittest.cc |
diff --git a/gpu/command_buffer/service/gles2_cmd_decoder_unittest.cc b/gpu/command_buffer/service/gles2_cmd_decoder_unittest.cc |
index 3f6d20def022f9978fb24e136196b551afb8dfc0..c09c6589e60fccdcff4df19f9d36266e5b3f7f48 100644 |
--- a/gpu/command_buffer/service/gles2_cmd_decoder_unittest.cc |
+++ b/gpu/command_buffer/service/gles2_cmd_decoder_unittest.cc |
@@ -1533,6 +1533,17 @@ TEST_P(GLES2DecoderDoCommandsTest, DoCommandsBadArgSize) { |
EXPECT_EQ(entries_per_cmd_ + cmds_[1].header.size, num_processed); |
} |
+void GLES3DecoderWithESSL3ShaderTest::SetUp() { |
+ base::CommandLine command_line(0, nullptr); |
+ command_line.AppendSwitch(switches::kEnableUnsafeES3APIs); |
+ InitState init; |
+ init.gl_version = "OpenGL ES 3.0"; |
+ init.bind_generates_resource = true; |
+ init.context_type = CONTEXT_TYPE_OPENGLES3; |
+ InitDecoderWithCommandLine(init, &command_line); |
+ SetupDefaultProgram(); |
+} |
+ |
INSTANTIATE_TEST_CASE_P(Service, GLES2DecoderTest, ::testing::Bool()); |
INSTANTIATE_TEST_CASE_P(Service, GLES2DecoderWithShaderTest, ::testing::Bool()); |
@@ -1547,5 +1558,9 @@ INSTANTIATE_TEST_CASE_P(Service, GLES2DecoderDoCommandsTest, ::testing::Bool()); |
INSTANTIATE_TEST_CASE_P(Service, GLES3DecoderTest, ::testing::Bool()); |
+INSTANTIATE_TEST_CASE_P(Service, |
+ GLES3DecoderWithESSL3ShaderTest, |
+ ::testing::Bool()); |
+ |
} // namespace gles2 |
} // namespace gpu |