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

Side by Side Diff: gpu/command_buffer/service/gpu_tracer_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 <map> 5 #include <map>
6 #include <set> 6 #include <set>
7 7
8 #include "gpu/command_buffer/service/gpu_service_test.h" 8 #include "gpu/command_buffer/service/gpu_service_test.h"
9 #include "gpu/command_buffer/service/gpu_tracer.h" 9 #include "gpu/command_buffer/service/gpu_tracer.h"
10 #include "testing/gtest/include/gtest/gtest.h" 10 #include "testing/gtest/include/gtest/gtest.h"
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after
156 156
157 // Now it should be available 157 // Now it should be available
158 gl_fake_queries_.SetCurrentGLTime(end_timestamp); 158 gl_fake_queries_.SetCurrentGLTime(end_timestamp);
159 EXPECT_TRUE(trace->IsAvailable()); 159 EXPECT_TRUE(trace->IsAvailable());
160 160
161 // Proces should output expected Trace results to MockOutputter 161 // Proces should output expected Trace results to MockOutputter
162 trace->Process(); 162 trace->Process();
163 } 163 }
164 164
165 protected: 165 protected:
166 virtual void SetUp() { 166 void SetUp() override {
167 GpuServiceTest::SetUp(); 167 GpuServiceTest::SetUp();
168 gl_fake_queries_.Reset(); 168 gl_fake_queries_.Reset();
169 } 169 }
170 170
171 virtual void TearDown() { 171 void TearDown() override {
172 gl_.reset(); 172 gl_.reset();
173 gl_fake_queries_.Reset(); 173 gl_fake_queries_.Reset();
174 GpuServiceTest::TearDown(); 174 GpuServiceTest::TearDown();
175 } 175 }
176 176
177 virtual void SetupTimerQueryMocks() { 177 virtual void SetupTimerQueryMocks() {
178 // Delegate query APIs used by GPUTrace to a GlFakeQueries 178 // Delegate query APIs used by GPUTrace to a GlFakeQueries
179 EXPECT_CALL(*gl_, GenQueriesARB(_, NotNull())).Times(AtLeast(1)).WillOnce( 179 EXPECT_CALL(*gl_, GenQueriesARB(_, NotNull())).Times(AtLeast(1)).WillOnce(
180 Invoke(&gl_fake_queries_, &GlFakeQueries::GenQueriesARB)); 180 Invoke(&gl_fake_queries_, &GlFakeQueries::GenQueriesARB));
181 181
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
224 224
225 TEST_F(GpuDisjointTimerTracerTest, GPUTrace) { 225 TEST_F(GpuDisjointTimerTracerTest, GPUTrace) {
226 // Test basic timer query functionality 226 // Test basic timer query functionality
227 { 227 {
228 DoTraceTest(); 228 DoTraceTest();
229 } 229 }
230 } 230 }
231 231
232 } // namespace gles2 232 } // namespace gles2
233 } // namespace gpu 233 } // namespace gpu
OLDNEW
« no previous file with comments | « gpu/command_buffer/service/gpu_service_test.h ('k') | gpu/command_buffer/service/id_manager_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698