#include "chrome/browser/ui/views/toolbar/pinned_toolbar_actions_container.h"
#include <vector>
#include "base/functional/bind.h"
#include "chrome/browser/ui/actions/chrome_actions.h"
#include "chrome/browser/ui/browser_actions.h"
#include "chrome/browser/ui/browser_element_identifiers.h"
#include "chrome/browser/ui/toolbar/pinned_toolbar/pinned_toolbar_actions_model.h"
#include "chrome/browser/ui/toolbar/pinned_toolbar/pinned_toolbar_actions_model_factory.h"
#include "chrome/browser/ui/toolbar/toolbar_pref_names.h"
#include "chrome/browser/ui/ui_features.h"
#include "chrome/browser/ui/views/frame/browser_view.h"
#include "chrome/browser/ui/views/frame/test_with_browser_view.h"
#include "chrome/browser/ui/views/toolbar/pinned_action_toolbar_button.h"
#include "chrome/browser/ui/views/toolbar/pinned_toolbar_actions_container_layout.h"
#include "chrome/browser/ui/views/toolbar/pinned_toolbar_button_status_indicator.h"
#include "chrome/browser/ui/views/toolbar/toolbar_button.h"
#include "chrome/browser/ui/views/toolbar/toolbar_view.h"
#include "chrome/grit/generated_resources.h"
#include "chrome/test/base/browser_with_test_window_test.h"
#include "components/keyed_service/core/keyed_service.h"
#include "components/vector_icons/vector_icons.h"
#include "content/public/browser/browser_context.h"
#include "ui/actions/action_id.h"
#include "ui/actions/actions.h"
#include "ui/base/dragdrop/drag_drop_types.h"
#include "ui/base/dragdrop/mojom/drag_drop_types.mojom-shared.h"
#include "ui/base/dragdrop/mojom/drag_drop_types.mojom.h"
#include "ui/compositor/layer_tree_owner.h"
#include "ui/events/base_event_utils.h"
#include "ui/views/accessibility/view_accessibility.h"
#include "ui/views/layout/animating_layout_manager_test_util.h"
class PinnedToolbarActionsContainerTest : public TestWithBrowserView { … };
TEST_F(PinnedToolbarActionsContainerTest, ContainerMargins) { … }
TEST_F(PinnedToolbarActionsContainerTest, PinningAndUnpinning) { … }
TEST_F(PinnedToolbarActionsContainerTest,
UnpinnedToolbarButtonsPoppedOutWhileActive) { … }
TEST_F(PinnedToolbarActionsContainerTest,
StateChangesBetweenPinnedandUnpinnedWhileActive) { … }
TEST_F(PinnedToolbarActionsContainerTest, PoppedOutButtonsAreAfterPinned) { … }
#if BUILDFLAG(IS_MAC)
#define MAYBE_DividerNotVisibleWhileButtonPoppedOut …
#else
#define MAYBE_DividerNotVisibleWhileButtonPoppedOut …
#endif
TEST_F(PinnedToolbarActionsContainerTest,
MAYBE_DividerNotVisibleWhileButtonPoppedOut) { … }
TEST_F(PinnedToolbarActionsContainerTest, AccessibleCheckedState) { … }
TEST_F(PinnedToolbarActionsContainerTest, MovingActionsUpdateOrderUsingDrag) { … }
TEST_F(PinnedToolbarActionsContainerTest, ContextMenuPinTest) { … }
TEST_F(PinnedToolbarActionsContainerTest, StatusIndicatorTest) { … }
TEST_F(PinnedToolbarActionsContainerTest, UpdatesFromSyncUpdateContainer) { … }
TEST_F(PinnedToolbarActionsContainerTest,
MovingActionsUpdateOrderUsingKeyboard) { … }
TEST_F(PinnedToolbarActionsContainerTest,
ActionRemainsInToolbarWhenSetToBeEphemerallyVisible) { … }
TEST_F(PinnedToolbarActionsContainerTest, ActiveActionSkipsExecution) { … }