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

Unified Diff: ui/views/controls/label_unittest.cc

Issue 145033006: views: Make View::set_border() take a scoped_ptr<>. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Further renaming Created 6 years, 11 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: ui/views/controls/label_unittest.cc
diff --git a/ui/views/controls/label_unittest.cc b/ui/views/controls/label_unittest.cc
index 640b9d6297c7d6193607e6861df9cf03fb669d44..1bdb2388a4d7968e623c5c4263304a6b67cd1cd5 100644
--- a/ui/views/controls/label_unittest.cc
+++ b/ui/views/controls/label_unittest.cc
@@ -169,7 +169,7 @@ TEST(LabelTest, SingleLineSizing) {
// Test everything with borders.
gfx::Insets border(10, 20, 30, 40);
- label.set_border(Border::CreateEmptyBorder(border.top(),
+ label.SetBorder(Border::CreateEmptyBorder(border.top(),
border.left(),
border.bottom(),
border.right()));
@@ -250,7 +250,7 @@ TEST(LabelTest, MultiLineSizing) {
// Test everything with borders.
gfx::Insets border(10, 20, 30, 40);
- label.set_border(Border::CreateEmptyBorder(border.top(),
+ label.SetBorder(Border::CreateEmptyBorder(border.top(),
border.left(),
border.bottom(),
border.right()));
@@ -391,7 +391,7 @@ TEST(LabelTest, DrawSingleLineString) {
// Test single line drawing with a border.
gfx::Insets border(39, 34, 8, 96);
- label.set_border(Border::CreateEmptyBorder(border.top(),
+ label.SetBorder(Border::CreateEmptyBorder(border.top(),
border.left(),
border.bottom(),
border.right()));
@@ -534,7 +534,7 @@ TEST(LabelTest, DrawMultiLineString) {
// Test multiline drawing with a border.
gfx::Insets border(19, 92, 23, 2);
- label.set_border(Border::CreateEmptyBorder(border.top(),
+ label.SetBorder(Border::CreateEmptyBorder(border.top(),
border.left(),
border.bottom(),
border.right()));
@@ -668,7 +668,7 @@ TEST(LabelTest, DrawSingleLineStringInRTL) {
// Test single line drawing with a border.
gfx::Insets border(39, 34, 8, 96);
- label.set_border(Border::CreateEmptyBorder(border.top(),
+ label.SetBorder(Border::CreateEmptyBorder(border.top(),
border.left(),
border.bottom(),
border.right()));
@@ -817,7 +817,7 @@ TEST(LabelTest, DrawMultiLineStringInRTL) {
// Test multiline drawing with a border.
gfx::Insets border(19, 92, 23, 2);
- label.set_border(Border::CreateEmptyBorder(border.top(),
+ label.SetBorder(Border::CreateEmptyBorder(border.top(),
border.left(),
border.bottom(),
border.right()));

Powered by Google App Engine
This is Rietveld 408576698