| Index: ash/test/shelf_view_test_api.cc
|
| diff --git a/ash/test/shelf_view_test_api.cc b/ash/test/shelf_view_test_api.cc
|
| index a14432c1f958ecc65d3c30f7f3d96a4e4cb8a0ab..c9ff178cbc0bf44d073f09ef2d7f9e70f5c7fb3a 100644
|
| --- a/ash/test/shelf_view_test_api.cc
|
| +++ b/ash/test/shelf_view_test_api.cc
|
| @@ -68,8 +68,17 @@ bool ShelfViewTestAPI::IsOverflowButtonVisible() {
|
| }
|
|
|
| void ShelfViewTestAPI::ShowOverflowBubble() {
|
| - if (!shelf_view_->IsShowingOverflowBubble())
|
| - shelf_view_->ToggleOverflowBubble();
|
| + DCHECK(!shelf_view_->IsShowingOverflowBubble());
|
| + shelf_view_->ToggleOverflowBubble();
|
| +}
|
| +
|
| +void ShelfViewTestAPI::HideOverflowBubble() {
|
| + DCHECK(shelf_view_->IsShowingOverflowBubble());
|
| + shelf_view_->ToggleOverflowBubble();
|
| +}
|
| +
|
| +bool ShelfViewTestAPI::IsShowingOverflowBubble() const {
|
| + return shelf_view_->IsShowingOverflowBubble();
|
| }
|
|
|
| const gfx::Rect& ShelfViewTestAPI::GetBoundsByIndex(int index) {
|
| @@ -110,6 +119,10 @@ OverflowBubble* ShelfViewTestAPI::overflow_bubble() {
|
| return shelf_view_->overflow_bubble_.get();
|
| }
|
|
|
| +OverflowButton* ShelfViewTestAPI::overflow_button() const {
|
| + return shelf_view_->overflow_button_;
|
| +}
|
| +
|
| ShelfTooltipManager* ShelfViewTestAPI::tooltip_manager() {
|
| return &shelf_view_->tooltip_;
|
| }
|
|
|