Index: gpu/command_buffer/service/feature_info_unittest.cc |
diff --git a/gpu/command_buffer/service/feature_info_unittest.cc b/gpu/command_buffer/service/feature_info_unittest.cc |
index 004eeeee0aed336d3f1e6041a5afce63ca98f0b5..a97188fbb1717cfd4fadbb918fe699bfd0ad61a6 100644 |
--- a/gpu/command_buffer/service/feature_info_unittest.cc |
+++ b/gpu/command_buffer/service/feature_info_unittest.cc |
@@ -1347,5 +1347,39 @@ TEST_F(FeatureInfoTest, InitializeNoCHROMIUM_path_rendering2) { |
Not(HasSubstr("GL_CHROMIUM_path_rendering"))); |
} |
+TEST_F(FeatureInfoTest, InitializeNoKHR_blend_equation_advanced) { |
+ SetupInitExpectationsWithGLVersion("", "", "4.3"); |
+ EXPECT_FALSE(info_->feature_flags().blend_equation_advanced); |
+ EXPECT_THAT(info_->extensions(), |
+ Not(HasSubstr("GL_KHR_blend_equation_advanced"))); |
+} |
+ |
+TEST_F(FeatureInfoTest, InitializeKHR_blend_equations_advanced) { |
+ SetupInitExpectations("GL_KHR_blend_equation_advanced"); |
+ EXPECT_THAT(info_->extensions(), HasSubstr("GL_KHR_blend_equation_advanced")); |
+ EXPECT_TRUE(info_->feature_flags().blend_equation_advanced); |
+} |
+ |
+TEST_F(FeatureInfoTest, InitializeNV_blend_equations_advanced) { |
+ SetupInitExpectations("GL_NV_blend_equation_advanced"); |
+ EXPECT_THAT(info_->extensions(), HasSubstr("GL_KHR_blend_equation_advanced")); |
+ EXPECT_TRUE(info_->feature_flags().blend_equation_advanced); |
+} |
+ |
+TEST_F(FeatureInfoTest, InitializeNoKHR_blend_equation_advanced_coherent) { |
+ SetupInitExpectationsWithGLVersion("", "", "4.3"); |
+ EXPECT_FALSE(info_->feature_flags().blend_equation_advanced_coherent); |
+ EXPECT_THAT(info_->extensions(), |
+ Not(HasSubstr("GL_KHR_blend_equation_advanced_coherent"))); |
+} |
+ |
+TEST_F(FeatureInfoTest, InitializeKHR_blend_equations_advanced_coherent) { |
+ SetupInitExpectations("GL_KHR_blend_equation_advanced_coherent"); |
+ EXPECT_THAT(info_->extensions(), |
+ HasSubstr("GL_KHR_blend_equation_advanced_coherent")); |
+ EXPECT_TRUE(info_->feature_flags().blend_equation_advanced); |
+ EXPECT_TRUE(info_->feature_flags().blend_equation_advanced_coherent); |
+} |
+ |
} // namespace gles2 |
} // namespace gpu |