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 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 Loading... |
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 |
OLD | NEW |