bookmarks: Simply reuse |model_| in BookmarkEditorViewTest.
[chromium-blink-merge.git] / chrome / browser / ui / views / bookmarks / bookmark_bar_view_test_helper.h
blob5df0c94f5ce66018593b2748fda97c5b57eb8ab8
1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef CHROME_BROWSER_UI_VIEWS_BOOKMARKS_BOOKMARK_BAR_VIEW_TEST_HELPER_H_
6 #define CHROME_BROWSER_UI_VIEWS_BOOKMARKS_BOOKMARK_BAR_VIEW_TEST_HELPER_H_
8 #include "chrome/browser/ui/views/bookmarks/bookmark_bar_view.h"
10 // Used to access private state of BookmarkBarView for testing.
11 class BookmarkBarViewTestHelper {
12 public:
13 explicit BookmarkBarViewTestHelper(BookmarkBarView* bbv) : bbv_(bbv) {}
14 ~BookmarkBarViewTestHelper() {}
16 int GetBookmarkButtonCount() { return bbv_->GetBookmarkButtonCount(); }
18 views::LabelButton* GetBookmarkButton(int index) {
19 return bbv_->GetBookmarkButton(index);
22 views::LabelButton* apps_page_shortcut() { return bbv_->apps_page_shortcut_; }
24 views::MenuButton* overflow_button() { return bbv_->overflow_button_; }
26 private:
27 BookmarkBarView* bbv_;
29 DISALLOW_COPY_AND_ASSIGN(BookmarkBarViewTestHelper);
32 #endif // CHROME_BROWSER_UI_VIEWS_BOOKMARKS_BOOKMARK_BAR_VIEW_TEST_HELPER_H_