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

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

Issue 682743002: Standardize usage of virtual/override/final specifiers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 1 month 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 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 info_ = new FeatureInfo(command_line); 67 info_ = new FeatureInfo(command_line);
68 info_->Initialize(); 68 info_->Initialize();
69 } 69 }
70 70
71 void SetupWithoutInit() { 71 void SetupWithoutInit() {
72 GpuServiceTest::SetUp(); 72 GpuServiceTest::SetUp();
73 info_ = new FeatureInfo(); 73 info_ = new FeatureInfo();
74 } 74 }
75 75
76 protected: 76 protected:
77 virtual void SetUp() override { 77 void SetUp() override {
78 // Do nothing here, since we are using the explicit Setup*() functions. 78 // Do nothing here, since we are using the explicit Setup*() functions.
79 } 79 }
80 80
81 virtual void TearDown() override { 81 void TearDown() override {
82 info_ = NULL; 82 info_ = NULL;
83 GpuServiceTest::TearDown(); 83 GpuServiceTest::TearDown();
84 } 84 }
85 85
86 scoped_refptr<FeatureInfo> info_; 86 scoped_refptr<FeatureInfo> info_;
87 }; 87 };
88 88
89 namespace { 89 namespace {
90 90
91 struct FormatInfo { 91 struct FormatInfo {
(...skipping 1284 matching lines...) Expand 10 before | Expand all | Expand 10 after
1376 TEST_F(FeatureInfoTest, InitializeKHR_blend_equations_advanced_coherent) { 1376 TEST_F(FeatureInfoTest, InitializeKHR_blend_equations_advanced_coherent) {
1377 SetupInitExpectations("GL_KHR_blend_equation_advanced_coherent"); 1377 SetupInitExpectations("GL_KHR_blend_equation_advanced_coherent");
1378 EXPECT_THAT(info_->extensions(), 1378 EXPECT_THAT(info_->extensions(),
1379 HasSubstr("GL_KHR_blend_equation_advanced_coherent")); 1379 HasSubstr("GL_KHR_blend_equation_advanced_coherent"));
1380 EXPECT_TRUE(info_->feature_flags().blend_equation_advanced); 1380 EXPECT_TRUE(info_->feature_flags().blend_equation_advanced);
1381 EXPECT_TRUE(info_->feature_flags().blend_equation_advanced_coherent); 1381 EXPECT_TRUE(info_->feature_flags().blend_equation_advanced_coherent);
1382 } 1382 }
1383 1383
1384 } // namespace gles2 1384 } // namespace gles2
1385 } // namespace gpu 1385 } // namespace gpu
OLDNEW
« no previous file with comments | « gpu/command_buffer/service/context_group_unittest.cc ('k') | gpu/command_buffer/service/framebuffer_manager_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698