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

Unified Diff: ui/gfx/quad_unittest.cc

Issue 11369144: ui: Make gfx::Point::Scale() mutate the class, similar to gfx::Rect. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixes for aura Created 8 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 side-by-side diff with in-line comments
Download patch
« cc/layer_impl.cc ('K') | « ui/gfx/quad_f.cc ('k') | ui/gfx/rect_f.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gfx/quad_unittest.cc
diff --git a/ui/gfx/quad_unittest.cc b/ui/gfx/quad_unittest.cc
index cb9cef35905994e85cc0838f30fbd17fbaed38ac..8859a0e6972d7f75be0aaf1af99e2a85269857d9 100644
--- a/ui/gfx/quad_unittest.cc
+++ b/ui/gfx/quad_unittest.cc
@@ -345,10 +345,10 @@ TEST(QuadTest, Scale) {
QuadF q1(a, b, c, d);
q1.Scale(1.5f);
- PointF a_scaled = a.Scale(1.5f);
- PointF b_scaled = b.Scale(1.5f);
- PointF c_scaled = c.Scale(1.5f);
- PointF d_scaled = d.Scale(1.5f);
+ PointF a_scaled = ScalePoint(a, 1.5f);
+ PointF b_scaled = ScalePoint(b, 1.5f);
+ PointF c_scaled = ScalePoint(c, 1.5f);
+ PointF d_scaled = ScalePoint(d, 1.5f);
EXPECT_EQ(q1.ToString(),
QuadF(a_scaled, b_scaled, c_scaled, d_scaled).ToString());
« cc/layer_impl.cc ('K') | « ui/gfx/quad_f.cc ('k') | ui/gfx/rect_f.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698