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

Unified Diff: cc/base/region_unittest.cc

Issue 12912010: cc: Convert non-const reference arguments to pointers. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix ui/compositor 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/base/region.cc ('k') | cc/base/scoped_ptr_algorithm.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/base/region_unittest.cc
diff --git a/cc/base/region_unittest.cc b/cc/base/region_unittest.cc
index 20379ba086172b1df61706c83c0ce2d6143a0bec..c9a218d692a7b95f68f8c6fb693ae9c2563b86bc 100644
--- a/cc/base/region_unittest.cc
+++ b/cc/base/region_unittest.cc
@@ -437,7 +437,7 @@ TEST(RegionSwap, Swap) {
Region r1, r2, r3;
r1 = gfx::Rect(0, 0, 50, 50);
- r1.Swap(r2);
+ r1.Swap(&r2);
EXPECT_TRUE(r1.IsEmpty());
EXPECT_EQ(r2.ToString(), Region(gfx::Rect(0, 0, 50, 50)).ToString());
@@ -445,7 +445,7 @@ TEST(RegionSwap, Swap) {
r1.Union(gfx::Rect(100, 0, 50, 50));
r1.Union(gfx::Rect(0, 0, 500, 500));
r3 = r1;
- r1.Swap(r2);
+ r1.Swap(&r2);
EXPECT_EQ(r1.ToString(), Region(gfx::Rect(0, 0, 50, 50)).ToString());
EXPECT_EQ(r2.ToString(), r3.ToString());
}
« no previous file with comments | « cc/base/region.cc ('k') | cc/base/scoped_ptr_algorithm.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698