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 691f27204d31708812fa21496816c9d5356c3c73..40104da74c56251f37fad873bea141f0c5148263 100644 |
--- a/gpu/command_buffer/service/gles2_cmd_decoder_unittest.cc |
+++ b/gpu/command_buffer/service/gles2_cmd_decoder_unittest.cc |
@@ -97,7 +97,6 @@ void GLES3DecoderTest::SetUp() { |
InitDecoderWithCommandLine(init, &command_line); |
} |
- |
TEST_P(GLES3DecoderTest, Basic) { |
// Make sure the setup is correct for ES3. |
EXPECT_TRUE(decoder_->unsafe_es3_apis_enabled()); |
@@ -1569,6 +1568,17 @@ TEST_P(GLES2DecoderDoCommandsTest, DoCommandsBadArgSize) { |
EXPECT_EQ(entries_per_cmd_ + cmds_[1].header.size, num_processed); |
} |
+void GLES3DecoderWithESSL3ShaderTest::SetUp() { |
+ base::CommandLine command_line(0, NULL); |
+ command_line.AppendSwitch(switches::kEnableUnsafeES3APIs); |
+ InitState init; |
+ init.gl_version = "OpenGL ES 3.0"; |
+ init.bind_generates_resource = true; |
+ init.context_type = ContextCreationAttribHelper::CONTEXT_TYPE_OPENGLES3; |
+ InitDecoderWithCommandLine(init, &command_line); |
+ SetupDefaultProgram(); |
+} |
+ |
INSTANTIATE_TEST_CASE_P(Service, GLES2DecoderTest, ::testing::Bool()); |
INSTANTIATE_TEST_CASE_P(Service, GLES2DecoderWithShaderTest, ::testing::Bool()); |
@@ -1583,5 +1593,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 |