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

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

Issue 2480813003: Reduce views::Border creation verbosity by promoting factory functions (Closed)
Patch Set: fix bad merge Created 4 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
« no previous file with comments | « ui/views/controls/scroll_view.cc ('k') | ui/views/controls/styled_label_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/controls/scroll_view_unittest.cc
diff --git a/ui/views/controls/scroll_view_unittest.cc b/ui/views/controls/scroll_view_unittest.cc
index 23f2c5f4fdaeb42f2e5ddea5b4599b7131383012..575cf999fc96ffd9dd513491f2a0e01013009692 100644
--- a/ui/views/controls/scroll_view_unittest.cc
+++ b/ui/views/controls/scroll_view_unittest.cc
@@ -282,7 +282,7 @@ TEST_F(ScrollViewTest, ViewportSizedToFit) {
TEST_F(ScrollViewTest, BoundedViewportSizedToFit) {
View* contents = InstallContents();
scroll_view_.ClipHeightTo(100, 200);
- scroll_view_.SetBorder(Border::CreateSolidBorder(2, 0));
+ scroll_view_.SetBorder(CreateSolidBorder(2, 0));
scroll_view_.Layout();
EXPECT_EQ("2,2 96x96", contents->parent()->bounds().ToString());
@@ -333,8 +333,8 @@ TEST_F(ScrollViewTest, ScrollBars) {
const int kLeftPadding = 2;
const int kBottomPadding = 3;
const int kRightPadding = 4;
- scroll_view_.SetBorder(Border::CreateEmptyBorder(
- kTopPadding, kLeftPadding, kBottomPadding, kRightPadding));
+ scroll_view_.SetBorder(CreateEmptyBorder(kTopPadding, kLeftPadding,
+ kBottomPadding, kRightPadding));
contents->SetBounds(0, 0, 50, 400);
scroll_view_.Layout();
EXPECT_EQ(
« no previous file with comments | « ui/views/controls/scroll_view.cc ('k') | ui/views/controls/styled_label_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698