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

Unified Diff: ui/gfx/size_unittest.cc

Issue 11377068: ui: Make gfx::Size::Scale() mutate the class. Add gfx::ScaleSize() similar to Rect/Point. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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
Index: ui/gfx/size_unittest.cc
diff --git a/ui/gfx/size_unittest.cc b/ui/gfx/size_unittest.cc
index 5523b755370280956f45b9f8a3dcef41f2be0681..4c6e031f88d6bbd1affeec6704bbb4caecf578a4 100644
--- a/ui/gfx/size_unittest.cc
+++ b/ui/gfx/size_unittest.cc
@@ -100,7 +100,7 @@ TEST(SizeTest, ClampToZero) {
EXPECT_EQ(SizeF().ToString(), SizeF(0, -1).ToString());
EXPECT_EQ(SizeF().ToString(), SizeF(-1, 0).ToString());
- EXPECT_EQ(SizeF().ToString(), SizeF(1, 1).Scale(-1).ToString());
+ EXPECT_EQ(SizeF().ToString(), ScaleSize(Size(1, 1), -1).ToString());
}
} // namespace gfx
« ui/gfx/size_f.h ('K') | « ui/gfx/size_f.cc ('k') | webkit/glue/webcursor_aurax11.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698