| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "gpu/command_buffer/service/feature_info.h" | 5 #include "gpu/command_buffer/service/feature_info.h" |
| 6 | 6 |
| 7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
| 8 #include "base/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
| 9 #include "base/strings/string_number_conversions.h" | 9 #include "base/strings/string_number_conversions.h" |
| 10 #include "gpu/command_buffer/service/gpu_service_test.h" | 10 #include "gpu/command_buffer/service/gpu_service_test.h" |
| (...skipping 217 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 228 } | 228 } |
| 229 } | 229 } |
| 230 | 230 |
| 231 TEST_F(FeatureInfoTest, InitializeNoExtensions) { | 231 TEST_F(FeatureInfoTest, InitializeNoExtensions) { |
| 232 SetupInitExpectations(""); | 232 SetupInitExpectations(""); |
| 233 // Check default extensions are there | 233 // Check default extensions are there |
| 234 EXPECT_THAT(info_->extensions(), HasSubstr("GL_CHROMIUM_resource_safe")); | 234 EXPECT_THAT(info_->extensions(), HasSubstr("GL_CHROMIUM_resource_safe")); |
| 235 EXPECT_THAT(info_->extensions(), HasSubstr("GL_CHROMIUM_strict_attribs")); | 235 EXPECT_THAT(info_->extensions(), HasSubstr("GL_CHROMIUM_strict_attribs")); |
| 236 EXPECT_THAT(info_->extensions(), | 236 EXPECT_THAT(info_->extensions(), |
| 237 HasSubstr("GL_ANGLE_translated_shader_source")); | 237 HasSubstr("GL_ANGLE_translated_shader_source")); |
| 238 EXPECT_THAT(info_->extensions(), HasSubstr("GL_CHROMIUM_trace_marker")); |
| 238 | 239 |
| 239 // Check a couple of random extensions that should not be there. | 240 // Check a couple of random extensions that should not be there. |
| 240 EXPECT_THAT(info_->extensions(), Not(HasSubstr("GL_OES_texture_npot"))); | 241 EXPECT_THAT(info_->extensions(), Not(HasSubstr("GL_OES_texture_npot"))); |
| 241 EXPECT_THAT(info_->extensions(), | 242 EXPECT_THAT(info_->extensions(), |
| 242 Not(HasSubstr("GL_EXT_texture_compression_dxt1"))); | 243 Not(HasSubstr("GL_EXT_texture_compression_dxt1"))); |
| 243 EXPECT_THAT(info_->extensions(), | 244 EXPECT_THAT(info_->extensions(), |
| 244 Not(HasSubstr("GL_CHROMIUM_texture_compression_dxt3"))); | 245 Not(HasSubstr("GL_CHROMIUM_texture_compression_dxt3"))); |
| 245 EXPECT_THAT(info_->extensions(), | 246 EXPECT_THAT(info_->extensions(), |
| 246 Not(HasSubstr("GL_CHROMIUM_texture_compression_dxt5"))); | 247 Not(HasSubstr("GL_CHROMIUM_texture_compression_dxt5"))); |
| 247 EXPECT_THAT(info_->extensions(), | 248 EXPECT_THAT(info_->extensions(), |
| (...skipping 1222 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1470 EXPECT_FALSE( | 1471 EXPECT_FALSE( |
| 1471 info_->GetTextureFormatValidator(GL_RG_EXT).IsValid(GL_HALF_FLOAT_OES)); | 1472 info_->GetTextureFormatValidator(GL_RG_EXT).IsValid(GL_HALF_FLOAT_OES)); |
| 1472 EXPECT_TRUE( | 1473 EXPECT_TRUE( |
| 1473 info_->GetTextureFormatValidator(GL_RED_EXT).IsValid(GL_UNSIGNED_BYTE)); | 1474 info_->GetTextureFormatValidator(GL_RED_EXT).IsValid(GL_UNSIGNED_BYTE)); |
| 1474 EXPECT_TRUE( | 1475 EXPECT_TRUE( |
| 1475 info_->GetTextureFormatValidator(GL_RG_EXT).IsValid(GL_UNSIGNED_BYTE)); | 1476 info_->GetTextureFormatValidator(GL_RG_EXT).IsValid(GL_UNSIGNED_BYTE)); |
| 1476 } | 1477 } |
| 1477 | 1478 |
| 1478 } // namespace gles2 | 1479 } // namespace gles2 |
| 1479 } // namespace gpu | 1480 } // namespace gpu |
| OLD | NEW |