diff options
author | jochen@chromium.org <jochen@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-08-20 21:35:32 +0000 |
---|---|---|
committer | jochen@chromium.org <jochen@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-08-20 21:35:32 +0000 |
commit | df0f6e8f05dcab26f0e53bda494cb0d22ae315d0 (patch) | |
tree | 117d1fc17719bff500b9f2c2552789dc23d83ebb /views/box_layout_unittest.cc | |
parent | 706dbc20653f11019797dcb2bdfee2e9e83b0fba (diff) | |
download | chromium_src-df0f6e8f05dcab26f0e53bda494cb0d22ae315d0.zip chromium_src-df0f6e8f05dcab26f0e53bda494cb0d22ae315d0.tar.gz chromium_src-df0f6e8f05dcab26f0e53bda494cb0d22ae315d0.tar.bz2 |
Display an infobar when content settings were created.
The xib changes add a gradient view with an icon and a text field that is displayed as infobar. The text field is set to truncate. The blocked cookies label is set to wrap. The various views are connected to the new outlets.
win: http://imgur.com/OmTxr.png
linux: http://imgur.com/OmTxr
mac: http://imgur.com/VbwFp
BUG=49826
TEST=unit_tests
Review URL: http://codereview.chromium.org/3108029
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@56913 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'views/box_layout_unittest.cc')
-rw-r--r-- | views/box_layout_unittest.cc | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/views/box_layout_unittest.cc b/views/box_layout_unittest.cc index 712b2ef..d16d782 100644 --- a/views/box_layout_unittest.cc +++ b/views/box_layout_unittest.cc @@ -30,12 +30,13 @@ class BoxLayoutTest : public testing::Test { }; TEST_F(BoxLayoutTest, Empty) { - layout_.reset(new views::BoxLayout(views::BoxLayout::kHorizontal, 10, 20)); + layout_.reset( + new views::BoxLayout(views::BoxLayout::kHorizontal, 10, 10, 20)); EXPECT_EQ(gfx::Size(20, 20), layout_->GetPreferredSize(host_.get())); } TEST_F(BoxLayoutTest, AlignmentHorizontal) { - layout_.reset(new views::BoxLayout(views::BoxLayout::kHorizontal, 0, 0)); + layout_.reset(new views::BoxLayout(views::BoxLayout::kHorizontal, 0, 0, 0)); views::View* v1 = new StaticSizedView(gfx::Size(10, 20)); host_->AddChildView(v1); views::View* v2 = new StaticSizedView(gfx::Size(10, 10)); @@ -48,7 +49,7 @@ TEST_F(BoxLayoutTest, AlignmentHorizontal) { } TEST_F(BoxLayoutTest, AlignmentVertical) { - layout_.reset(new views::BoxLayout(views::BoxLayout::kVertical, 0, 0)); + layout_.reset(new views::BoxLayout(views::BoxLayout::kVertical, 0, 0, 0)); views::View* v1 = new StaticSizedView(gfx::Size(20, 10)); host_->AddChildView(v1); views::View* v2 = new StaticSizedView(gfx::Size(10, 10)); @@ -61,7 +62,7 @@ TEST_F(BoxLayoutTest, AlignmentVertical) { } TEST_F(BoxLayoutTest, Spacing) { - layout_.reset(new views::BoxLayout(views::BoxLayout::kHorizontal, 7, 8)); + layout_.reset(new views::BoxLayout(views::BoxLayout::kHorizontal, 7, 7, 8)); views::View* v1 = new StaticSizedView(gfx::Size(10, 20)); host_->AddChildView(v1); views::View* v2 = new StaticSizedView(gfx::Size(10, 20)); @@ -74,7 +75,7 @@ TEST_F(BoxLayoutTest, Spacing) { } TEST_F(BoxLayoutTest, Overflow) { - layout_.reset(new views::BoxLayout(views::BoxLayout::kHorizontal, 0, 0)); + layout_.reset(new views::BoxLayout(views::BoxLayout::kHorizontal, 0, 0, 0)); views::View* v1 = new StaticSizedView(gfx::Size(20, 20)); host_->AddChildView(v1); views::View* v2 = new StaticSizedView(gfx::Size(10, 20)); @@ -86,7 +87,8 @@ TEST_F(BoxLayoutTest, Overflow) { } TEST_F(BoxLayoutTest, NoSpace) { - layout_.reset(new views::BoxLayout(views::BoxLayout::kHorizontal, 10, 10)); + layout_.reset( + new views::BoxLayout(views::BoxLayout::kHorizontal, 10, 10, 10)); views::View* childView = new StaticSizedView(gfx::Size(20, 20)); host_->AddChildView(childView); host_->SetBounds(0, 0, 10, 10); @@ -95,7 +97,8 @@ TEST_F(BoxLayoutTest, NoSpace) { } TEST_F(BoxLayoutTest, InvisibleChild) { - layout_.reset(new views::BoxLayout(views::BoxLayout::kHorizontal, 10, 10)); + layout_.reset( + new views::BoxLayout(views::BoxLayout::kHorizontal, 10, 10, 10)); views::View* v1 = new StaticSizedView(gfx::Size(20, 20)); v1->SetVisible(false); host_->AddChildView(v1); |