Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(88)

Side by Side Diff: gpu/command_buffer/service/feature_info_unittest.cc

Issue 780653007: Added GL_CHROMIUM_trace_marker feature as well as gpu_toplevel markers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Removed endtrace calls Created 6 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 216 matching lines...) Expand 10 before | Expand all | Expand 10 after
227 } 227 }
228 } 228 }
229 229
230 TEST_F(FeatureInfoTest, InitializeNoExtensions) { 230 TEST_F(FeatureInfoTest, InitializeNoExtensions) {
231 SetupInitExpectations(""); 231 SetupInitExpectations("");
232 // Check default extensions are there 232 // Check default extensions are there
233 EXPECT_THAT(info_->extensions(), HasSubstr("GL_CHROMIUM_resource_safe")); 233 EXPECT_THAT(info_->extensions(), HasSubstr("GL_CHROMIUM_resource_safe"));
234 EXPECT_THAT(info_->extensions(), HasSubstr("GL_CHROMIUM_strict_attribs")); 234 EXPECT_THAT(info_->extensions(), HasSubstr("GL_CHROMIUM_strict_attribs"));
235 EXPECT_THAT(info_->extensions(), 235 EXPECT_THAT(info_->extensions(),
236 HasSubstr("GL_ANGLE_translated_shader_source")); 236 HasSubstr("GL_ANGLE_translated_shader_source"));
237 EXPECT_THAT(info_->extensions(), HasSubstr("GL_CHROMIUM_trace_marker"));
237 238
238 // Check a couple of random extensions that should not be there. 239 // Check a couple of random extensions that should not be there.
239 EXPECT_THAT(info_->extensions(), Not(HasSubstr("GL_OES_texture_npot"))); 240 EXPECT_THAT(info_->extensions(), Not(HasSubstr("GL_OES_texture_npot")));
240 EXPECT_THAT(info_->extensions(), 241 EXPECT_THAT(info_->extensions(),
241 Not(HasSubstr("GL_EXT_texture_compression_dxt1"))); 242 Not(HasSubstr("GL_EXT_texture_compression_dxt1")));
242 EXPECT_THAT(info_->extensions(), 243 EXPECT_THAT(info_->extensions(),
243 Not(HasSubstr("GL_CHROMIUM_texture_compression_dxt3"))); 244 Not(HasSubstr("GL_CHROMIUM_texture_compression_dxt3")));
244 EXPECT_THAT(info_->extensions(), 245 EXPECT_THAT(info_->extensions(),
245 Not(HasSubstr("GL_CHROMIUM_texture_compression_dxt5"))); 246 Not(HasSubstr("GL_CHROMIUM_texture_compression_dxt5")));
246 EXPECT_THAT(info_->extensions(), 247 EXPECT_THAT(info_->extensions(),
(...skipping 1222 matching lines...) Expand 10 before | Expand all | Expand 10 after
1469 EXPECT_FALSE( 1470 EXPECT_FALSE(
1470 info_->GetTextureFormatValidator(GL_RG_EXT).IsValid(GL_HALF_FLOAT_OES)); 1471 info_->GetTextureFormatValidator(GL_RG_EXT).IsValid(GL_HALF_FLOAT_OES));
1471 EXPECT_TRUE( 1472 EXPECT_TRUE(
1472 info_->GetTextureFormatValidator(GL_RED_EXT).IsValid(GL_UNSIGNED_BYTE)); 1473 info_->GetTextureFormatValidator(GL_RED_EXT).IsValid(GL_UNSIGNED_BYTE));
1473 EXPECT_TRUE( 1474 EXPECT_TRUE(
1474 info_->GetTextureFormatValidator(GL_RG_EXT).IsValid(GL_UNSIGNED_BYTE)); 1475 info_->GetTextureFormatValidator(GL_RG_EXT).IsValid(GL_UNSIGNED_BYTE));
1475 } 1476 }
1476 1477
1477 } // namespace gles2 1478 } // namespace gles2
1478 } // namespace gpu 1479 } // namespace gpu
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698