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

Unified Diff: trunk/src/cc/layers/nine_patch_layer_unittest.cc

Issue 13334005: Revert 191400 "cc: Add ‘chromium_code’: 1 to cc.gyp and cc_t..." (Closed) Base URL: svn://svn.chromium.org/chrome/
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
Index: trunk/src/cc/layers/nine_patch_layer_unittest.cc
===================================================================
--- trunk/src/cc/layers/nine_patch_layer_unittest.cc (revision 191411)
+++ trunk/src/cc/layers/nine_patch_layer_unittest.cc (working copy)
@@ -74,8 +74,8 @@
// No bitmap set should not trigger any uploads.
test_layer->SetTexturePriorities(calculator);
test_layer->Update(&queue, &occlusion_tracker, NULL);
- EXPECT_EQ(0u, queue.FullUploadSize());
- EXPECT_EQ(0u, queue.PartialUploadSize());
+ EXPECT_EQ(queue.FullUploadSize(), 0);
+ EXPECT_EQ(queue.PartialUploadSize(), 0);
// Setting a bitmap set should trigger a single full upload.
SkBitmap bitmap;
@@ -84,8 +84,8 @@
test_layer->SetBitmap(bitmap, gfx::Rect(5, 5, 1, 1));
test_layer->SetTexturePriorities(calculator);
test_layer->Update(&queue, &occlusion_tracker, NULL);
- EXPECT_EQ(1u, queue.FullUploadSize());
- EXPECT_EQ(0u, queue.PartialUploadSize());
+ EXPECT_EQ(queue.FullUploadSize(), 1);
+ EXPECT_EQ(queue.PartialUploadSize(), 0);
ResourceUpdate params = queue.TakeFirstFullUpload();
EXPECT_TRUE(params.texture != NULL);
@@ -108,8 +108,8 @@
// Nothing changed, so no repeated upload.
test_layer->SetTexturePriorities(calculator);
test_layer->Update(&queue, &occlusion_tracker, NULL);
- EXPECT_EQ(0u, queue.FullUploadSize());
- EXPECT_EQ(0u, queue.PartialUploadSize());
+ EXPECT_EQ(queue.FullUploadSize(), 0);
+ EXPECT_EQ(queue.PartialUploadSize(), 0);
{
DebugScopedSetImplThread impl_thread(Proxy());
DebugScopedSetMainThreadBlocked main_thread_blocked(Proxy());
@@ -120,8 +120,8 @@
// Reupload after eviction
test_layer->SetTexturePriorities(calculator);
test_layer->Update(&queue, &occlusion_tracker, NULL);
- EXPECT_EQ(1u, queue.FullUploadSize());
- EXPECT_EQ(0u, queue.PartialUploadSize());
+ EXPECT_EQ(queue.FullUploadSize(), 1);
+ EXPECT_EQ(queue.PartialUploadSize(), 0);
// PrioritizedResourceManager clearing
layer_tree_host_->contents_texture_manager()->UnregisterTexture(
@@ -130,8 +130,8 @@
test_layer->SetTexturePriorities(calculator);
ResourceUpdateQueue queue2;
test_layer->Update(&queue2, &occlusion_tracker, NULL);
- EXPECT_EQ(1u, queue2.FullUploadSize());
- EXPECT_EQ(0u, queue2.PartialUploadSize());
+ EXPECT_EQ(queue2.FullUploadSize(), 1);
+ EXPECT_EQ(queue2.PartialUploadSize(), 0);
params = queue2.TakeFirstFullUpload();
EXPECT_TRUE(params.texture != NULL);
EXPECT_EQ(params.texture->resource_manager(),
« no previous file with comments | « trunk/src/cc/layers/nine_patch_layer_impl_unittest.cc ('k') | trunk/src/cc/layers/picture_layer_impl_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698