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

Unified Diff: ui/views/layout/box_layout_unittest.cc

Issue 2538513002: [ash-md] Fixed TriView to relayout child Views when their preferred size changed. (Closed)
Patch Set: 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
Index: ui/views/layout/box_layout_unittest.cc
diff --git a/ui/views/layout/box_layout_unittest.cc b/ui/views/layout/box_layout_unittest.cc
index 4b4fec21abc242b13df88a5a5c42115d439f93c3..d2d073e5cb78d3cbae27b80b204e13adab569fce 100644
--- a/ui/views/layout/box_layout_unittest.cc
+++ b/ui/views/layout/box_layout_unittest.cc
@@ -155,7 +155,7 @@ TEST_F(BoxLayoutTest, UseHeightForWidth) {
View* v1 = new StaticSizedView(gfx::Size(20, 10));
host_->AddChildView(v1);
ProportionallySizedView* v2 = new ProportionallySizedView(2);
- v2->set_preferred_width(10);
+ v2->SetPreferredWidth(10);
host_->AddChildView(v2);
EXPECT_EQ(gfx::Size(20, 50), layout->GetPreferredSize(host_.get()));

Powered by Google App Engine
This is Rietveld 408576698