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

Side by Side Diff: gpu/command_buffer/tests/gl_query_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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 <GLES2/gl2.h> 5 #include <GLES2/gl2.h>
6 #include <GLES2/gl2ext.h> 6 #include <GLES2/gl2ext.h>
7 #include <GLES2/gl2extchromium.h> 7 #include <GLES2/gl2extchromium.h>
8 8
9 #include "base/threading/platform_thread.h" 9 #include "base/threading/platform_thread.h"
10 #include "gpu/command_buffer/tests/gl_manager.h" 10 #include "gpu/command_buffer/tests/gl_manager.h"
11 #include "gpu/command_buffer/tests/gl_test_utils.h" 11 #include "gpu/command_buffer/tests/gl_test_utils.h"
12 #include "testing/gmock/include/gmock/gmock.h" 12 #include "testing/gmock/include/gmock/gmock.h"
13 #include "testing/gtest/include/gtest/gtest.h" 13 #include "testing/gtest/include/gtest/gtest.h"
14 14
15 namespace gpu { 15 namespace gpu {
16 16
17 class QueryTest : public testing::Test { 17 class QueryTest : public testing::Test {
18 protected: 18 protected:
19 virtual void SetUp() { 19 void SetUp() override { gl_.Initialize(GLManager::Options()); }
20 gl_.Initialize(GLManager::Options());
21 }
22 20
23 virtual void TearDown() { 21 void TearDown() override { gl_.Destroy(); }
24 gl_.Destroy();
25 }
26 22
27 GLManager gl_; 23 GLManager gl_;
28 }; 24 };
29 25
30 TEST_F(QueryTest, MultipleQueries) { 26 TEST_F(QueryTest, MultipleQueries) {
31 EXPECT_TRUE(GLTestHelper::HasExtension("GL_CHROMIUM_get_error_query")); 27 EXPECT_TRUE(GLTestHelper::HasExtension("GL_CHROMIUM_get_error_query"));
32 EXPECT_TRUE(GLTestHelper::HasExtension( 28 EXPECT_TRUE(GLTestHelper::HasExtension(
33 "GL_CHROMIUM_command_buffer_latency_query")); 29 "GL_CHROMIUM_command_buffer_latency_query"));
34 30
35 GLuint error_query = 0; 31 GLuint error_query = 0;
(...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after
186 GLuint result = 0; 182 GLuint result = 0;
187 glGetQueryObjectuivEXT(query, GL_QUERY_RESULT_AVAILABLE_EXT, &result); 183 glGetQueryObjectuivEXT(query, GL_QUERY_RESULT_AVAILABLE_EXT, &result);
188 EXPECT_EQ(1u, result); 184 EXPECT_EQ(1u, result);
189 glDeleteQueriesEXT(1, &query); 185 glDeleteQueriesEXT(1, &query);
190 GLTestHelper::CheckGLError("no errors", __LINE__); 186 GLTestHelper::CheckGLError("no errors", __LINE__);
191 } 187 }
192 188
193 } // namespace gpu 189 } // namespace gpu
194 190
195 191
OLDNEW
« no previous file with comments | « gpu/command_buffer/tests/gl_program_unittest.cc ('k') | gpu/command_buffer/tests/gl_readback_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698