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

Unified Diff: cc/resources/prioritized_resource_unittest.cc

Issue 13206004: cc: Fix build issues for adding ‘chromium_code’: 1 to cc.gyp and cc_tests.gyp (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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/prioritized_resource_manager.cc ('k') | cc/resources/resource_provider_unittest.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 1c8de7e68364f4e59747475e4cde56f9d53a9357..b820933cdd1762ca1ec96a59f2824f78f598d9ea 100644
--- a/cc/resources/prioritized_resource_unittest.cc
+++ b/cc/resources/prioritized_resource_unittest.cc
@@ -262,10 +262,10 @@ TEST_F(PrioritizedResourceTest, ChangePriorityCutoff) {
impl_thread_and_main_thread_blocked(&proxy_);
resource_manager->ReduceMemoryOnImplThread(
TexturesMemorySize(8), 104, ResourceProvider());
- EXPECT_EQ(0, EvictedBackingCount(resource_manager.get()));
+ EXPECT_EQ(0u, EvictedBackingCount(resource_manager.get()));
resource_manager->ReduceMemoryOnImplThread(
TexturesMemorySize(8), 103, ResourceProvider());
- EXPECT_EQ(1, EvictedBackingCount(resource_manager.get()));
+ EXPECT_EQ(1u, EvictedBackingCount(resource_manager.get()));
}
resource_manager->UnlinkAndClearEvictedBackings();
EXPECT_EQ(TexturesMemorySize(3), resource_manager->MemoryUseBytes());
@@ -704,19 +704,19 @@ TEST_F(PrioritizedResourceTest, ClearUploadsToEvictedResources) {
EXPECT_TRUE(textures[i]->have_backing_texture());
queue.ClearUploadsToEvictedResources();
- EXPECT_EQ(4, queue.FullUploadSize());
+ EXPECT_EQ(4u, queue.FullUploadSize());
resource_manager->ReduceMemoryOnImplThread(
TexturesMemorySize(1),
PriorityCalculator::AllowEverythingCutoff(),
ResourceProvider());
queue.ClearUploadsToEvictedResources();
- EXPECT_EQ(1, queue.FullUploadSize());
+ EXPECT_EQ(1u, queue.FullUploadSize());
resource_manager->ReduceMemoryOnImplThread(
0, PriorityCalculator::AllowEverythingCutoff(), ResourceProvider());
queue.ClearUploadsToEvictedResources();
- EXPECT_EQ(0, queue.FullUploadSize());
+ EXPECT_EQ(0u, queue.FullUploadSize());
}
TEST_F(PrioritizedResourceTest, UsageStatistics) {
« no previous file with comments | « cc/resources/prioritized_resource_manager.cc ('k') | cc/resources/resource_provider_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698