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

Unified Diff: cc/resources/prioritized_resource_unittest.cc

Issue 12962007: cc: Chromify resource_update_queue (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Rebase Created 7 years, 9 months 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « cc/resources/image_layer_updater.cc ('k') | cc/resources/resource_update_controller.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/resources/prioritized_resource_unittest.cc
diff --git a/cc/resources/prioritized_resource_unittest.cc b/cc/resources/prioritized_resource_unittest.cc
index 51e7df81ffab51595599c4650ec2432fb6218684..17dd746ff9c5b59722e324ec845d9923907c20dd 100644
--- a/cc/resources/prioritized_resource_unittest.cc
+++ b/cc/resources/prioritized_resource_unittest.cc
@@ -681,28 +681,27 @@ TEST_F(PrioritizedResourceTest, ClearUploadsToEvictedResources) {
for (size_t i = 0; i < max_textures; ++i) {
const ResourceUpdate upload = ResourceUpdate::Create(
textures[i].get(), NULL, gfx::Rect(), gfx::Rect(), gfx::Vector2d());
- queue.appendFullUpload(upload);
+ queue.AppendFullUpload(upload);
}
// Make sure that we have backings for all of the textures.
for (size_t i = 0; i < max_textures; ++i)
EXPECT_TRUE(textures[i]->have_backing_texture());
- queue.clearUploadsToEvictedResources();
- EXPECT_EQ(4, queue.fullUploadSize());
+ queue.ClearUploadsToEvictedResources();
+ EXPECT_EQ(4, queue.FullUploadSize());
resource_manager->ReduceMemoryOnImplThread(
TexturesMemorySize(1),
PriorityCalculator::AllowEverythingCutoff(),
ResourceProvider());
- queue.clearUploadsToEvictedResources();
- EXPECT_EQ(1, queue.fullUploadSize());
+ queue.ClearUploadsToEvictedResources();
+ EXPECT_EQ(1, queue.FullUploadSize());
resource_manager->ReduceMemoryOnImplThread(
0, PriorityCalculator::AllowEverythingCutoff(), ResourceProvider());
- queue.clearUploadsToEvictedResources();
- EXPECT_EQ(0, queue.fullUploadSize());
-
+ queue.ClearUploadsToEvictedResources();
+ EXPECT_EQ(0, queue.FullUploadSize());
}
TEST_F(PrioritizedResourceTest, UsageStatistics) {
« no previous file with comments | « cc/resources/image_layer_updater.cc ('k') | cc/resources/resource_update_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698