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

Side by Side Diff: content/common/gpu/gpu_memory_manager_unittest.cc

Issue 686523002: Standardize usage of virtual/override/final specifiers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase 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 "content/common/gpu/gpu_memory_manager.h" 5 #include "content/common/gpu/gpu_memory_manager.h"
6 #include "content/common/gpu/gpu_memory_manager_client.h" 6 #include "content/common/gpu/gpu_memory_manager_client.h"
7 #include "content/common/gpu/gpu_memory_tracking.h" 7 #include "content/common/gpu/gpu_memory_tracking.h"
8 #include "gpu/command_buffer/common/gpu_memory_allocation.h" 8 #include "gpu/command_buffer/common/gpu_memory_allocation.h"
9 #include "ui/gfx/size_conversions.h" 9 #include "ui/gfx/size_conversions.h"
10 10
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after
141 141
142 class GpuMemoryManagerTest : public testing::Test { 142 class GpuMemoryManagerTest : public testing::Test {
143 protected: 143 protected:
144 static const uint64 kFrontbufferLimitForTest = 3; 144 static const uint64 kFrontbufferLimitForTest = 3;
145 145
146 GpuMemoryManagerTest() 146 GpuMemoryManagerTest()
147 : memmgr_(0, kFrontbufferLimitForTest) { 147 : memmgr_(0, kFrontbufferLimitForTest) {
148 memmgr_.TestingDisableScheduleManage(); 148 memmgr_.TestingDisableScheduleManage();
149 } 149 }
150 150
151 virtual void SetUp() { 151 void SetUp() override {}
152 }
153 152
154 static int32 GenerateUniqueSurfaceId() { 153 static int32 GenerateUniqueSurfaceId() {
155 static int32 surface_id_ = 1; 154 static int32 surface_id_ = 1;
156 return surface_id_++; 155 return surface_id_++;
157 } 156 }
158 157
159 bool IsAllocationForegroundForSurfaceYes( 158 bool IsAllocationForegroundForSurfaceYes(
160 const MemoryAllocation& alloc) { 159 const MemoryAllocation& alloc) {
161 return true; 160 return true;
162 } 161 }
(...skipping 232 matching lines...) Expand 10 before | Expand all | Expand 10 after
395 stub_ignore_c.SetVisible(true); 394 stub_ignore_c.SetVisible(true);
396 stub_ignore_c.SetVisible(false); 395 stub_ignore_c.SetVisible(false);
397 Manage(); 396 Manage();
398 EXPECT_TRUE(IsAllocationHibernatedForSurfaceYes(stub1.allocation_)); 397 EXPECT_TRUE(IsAllocationHibernatedForSurfaceYes(stub1.allocation_));
399 EXPECT_TRUE(IsAllocationHibernatedForSurfaceYes(stub2.allocation_)); 398 EXPECT_TRUE(IsAllocationHibernatedForSurfaceYes(stub2.allocation_));
400 EXPECT_TRUE(IsAllocationHibernatedForSurfaceNo(stub3.allocation_)); 399 EXPECT_TRUE(IsAllocationHibernatedForSurfaceNo(stub3.allocation_));
401 EXPECT_TRUE(IsAllocationHibernatedForSurfaceNo(stub4.allocation_)); 400 EXPECT_TRUE(IsAllocationHibernatedForSurfaceNo(stub4.allocation_));
402 } 401 }
403 402
404 } // namespace content 403 } // namespace content
OLDNEW
« no previous file with comments | « content/common/gpu/gpu_memory_buffer_factory_x11.cc ('k') | content/common/host_shared_bitmap_manager_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698