| Index: ui/views/accessible_pane_view_unittest.cc
|
| diff --git a/ui/views/accessible_pane_view_unittest.cc b/ui/views/accessible_pane_view_unittest.cc
|
| index d53fb72f67db1d0e3513b3b11a5633e2f249bce5..10f5556377a5022f3b01280870629332db9d1509 100644
|
| --- a/ui/views/accessible_pane_view_unittest.cc
|
| +++ b/ui/views/accessible_pane_view_unittest.cc
|
| @@ -35,6 +35,7 @@ class TestBarView : public AccessiblePaneView,
|
|
|
| private:
|
| void Init();
|
| + LabelButton* CreateButton(bool add);
|
|
|
| scoped_ptr<LabelButton> child_button_;
|
| scoped_ptr<LabelButton> second_child_button_;
|
| @@ -56,14 +57,18 @@ void TestBarView::ButtonPressed(Button* sender, const ui::Event& event) {
|
|
|
| void TestBarView::Init() {
|
| SetLayoutManager(new FillLayout());
|
| - base::string16 label;
|
| - child_button_.reset(new LabelButton(this, label));
|
| - AddChildView(child_button_.get());
|
| - second_child_button_.reset(new LabelButton(this, label));
|
| - AddChildView(second_child_button_.get());
|
| - third_child_button_.reset(new LabelButton(this, label));
|
| - AddChildView(third_child_button_.get());
|
| - not_child_button_.reset(new LabelButton(this, label));
|
| + child_button_.reset(CreateButton(true));
|
| + second_child_button_.reset(CreateButton(true));
|
| + third_child_button_.reset(CreateButton(true));
|
| + not_child_button_.reset(CreateButton(false));
|
| +}
|
| +
|
| +LabelButton* TestBarView::CreateButton(bool add) {
|
| + LabelButton* button = new LabelButton(this);
|
| + button->InitAsTextbutton(base::string16());
|
| + if (add)
|
| + AddChildView(button);
|
| + return button;
|
| }
|
|
|
| View* TestBarView::GetDefaultFocusableChild() {
|
|
|