#include "chrome/browser/ui/views/bookmarks/bookmark_bar_view.h"
#include <memory>
#include <optional>
#include "base/functional/bind.h"
#include "base/memory/ptr_util.h"
#include "base/memory/raw_ptr.h"
#include "base/strings/utf_string_conversions.h"
#include "base/test/metrics/histogram_tester.h"
#include "base/test/scoped_feature_list.h"
#include "base/uuid.h"
#include "base/values.h"
#include "build/build_config.h"
#include "build/chromeos_buildflags.h"
#include "chrome/browser/bookmarks/bookmark_model_factory.h"
#include "chrome/browser/bookmarks/managed_bookmark_service_factory.h"
#include "chrome/browser/favicon/favicon_utils.h"
#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/search_engine_choice/search_engine_choice_service_factory.h"
#include "chrome/browser/search_engines/template_url_service_factory.h"
#include "chrome/browser/ui/app_list/app_list_util.h"
#include "chrome/browser/ui/bookmarks/bookmark_utils.h"
#include "chrome/browser/ui/browser.h"
#include "chrome/browser/ui/tabs/saved_tab_groups/saved_tab_group_keyed_service.h"
#include "chrome/browser/ui/tabs/saved_tab_groups/saved_tab_group_service_factory.h"
#include "chrome/browser/ui/ui_features.h"
#include "chrome/browser/ui/views/bookmarks/bookmark_bar_view_test_helper.h"
#include "chrome/browser/ui/views/native_widget_factory.h"
#include "chrome/common/url_constants.h"
#include "chrome/grit/generated_resources.h"
#include "chrome/test/base/test_browser_window.h"
#include "chrome/test/base/testing_profile.h"
#include "chrome/test/views/chrome_views_test_base.h"
#include "components/bookmarks/browser/bookmark_model.h"
#include "components/bookmarks/common/bookmark_metrics.h"
#include "components/bookmarks/common/bookmark_pref_names.h"
#include "components/bookmarks/test/bookmark_test_helpers.h"
#include "components/prefs/pref_service.h"
#include "components/search_engines/search_engine_choice/search_engine_choice_service.h"
#include "components/search_engines/search_terms_data.h"
#include "components/search_engines/template_url_service.h"
#include "components/search_engines/template_url_service_client.h"
#include "components/sync_preferences/testing_pref_service_syncable.h"
#include "ui/base/dragdrop/drag_drop_types.h"
#include "ui/base/dragdrop/mojom/drag_drop_types.mojom.h"
#include "ui/compositor/layer_tree_owner.h"
#include "ui/gfx/geometry/point_f.h"
#include "ui/views/accessibility/view_accessibility.h"
#include "ui/views/controls/button/label_button.h"
#include "ui/views/controls/button/menu_button.h"
#include "ui/views/test/views_test_utils.h"
#include "ui/views/view_utils.h"
#include "url/gurl.h"
BookmarkModel;
BookmarkNode;
namespace {
class BookmarkBarViewBaseTest : public ChromeViewsTestBase { … };
class BookmarkBarViewTest : public BookmarkBarViewBaseTest { … };
class BookmarkBarViewInWidgetTest : public BookmarkBarViewBaseTest { … };
TEST_F(BookmarkBarViewTest, AppsShortcutVisibility) { … }
TEST_F(BookmarkBarViewTest, TabGroupsBarVisibility) { … }
TEST_F(BookmarkBarViewTest, OverflowVisibility) { … }
TEST_F(BookmarkBarViewTest, ButtonsDynamicallyAddedAfterModelHasNodes) { … }
TEST_F(BookmarkBarViewTest, ButtonsDynamicallyAdded) { … }
TEST_F(BookmarkBarViewTest, AddNodesWhenBarAlreadySized) { … }
TEST_F(BookmarkBarViewTest, RemoveNode) { … }
TEST_F(BookmarkBarViewTest, MoveNode) { … }
TEST_F(BookmarkBarViewTest, ChangeTitle) { … }
TEST_F(BookmarkBarViewTest, DropCallbackTest) { … }
TEST_F(BookmarkBarViewTest, MutateModelDuringDrag) { … }
TEST_F(BookmarkBarViewTest, DropCallback_InvalidatePtrTest) { … }
#if !BUILDFLAG(IS_CHROMEOS)
TEST_F(BookmarkBarViewTest, ManagedShowAppsShortcutInBookmarksBar) { … }
#endif
TEST_F(BookmarkBarViewTest, PageNavigatorSet) { … }
TEST_F(BookmarkBarViewTest, OnSavedTabGroupUpdateBookmarkBarCallsLayout) { … }
TEST_F(BookmarkBarViewTest, GetAvailableWidthForSavedTabGroupsBar) { … }
TEST_F(BookmarkBarViewTest, AccessibleProperties) { … }
TEST_F(BookmarkBarViewTest, BookmarkFolderButtonAccessibleProperties) { … }
TEST_F(BookmarkBarViewTest, ButtonSeparatorViewAccessibleProperties) { … }
TEST_F(BookmarkBarViewInWidgetTest, UpdateTooltipText) { … }
}