#include "chrome/browser/ui/views/toolbar/toolbar_actions_bar_bubble_views.h"
#include <memory>
#include "base/memory/raw_ptr.h"
#include "base/run_loop.h"
#include "base/strings/utf_string_conversions.h"
#include "chrome/browser/ui/toolbar/test_toolbar_actions_bar_bubble_delegate.h"
#include "chrome/browser/ui/toolbar/toolbar_actions_bar_bubble_delegate.h"
#include "chrome/grit/generated_resources.h"
#include "chrome/test/views/chrome_views_test_base.h"
#include "components/vector_icons/vector_icons.h"
#include "ui/base/l10n/l10n_util.h"
#include "ui/base/mojom/dialog_button.mojom.h"
#include "ui/base/resource/resource_bundle.h"
#include "ui/events/event_utils.h"
#include "ui/gfx/color_palette.h"
#include "ui/gfx/image/image.h"
#include "ui/gfx/image/image_unittest_util.h"
#include "ui/gfx/paint_vector_icon.h"
#include "ui/views/controls/button/image_button.h"
#include "ui/views/controls/button/label_button.h"
#include "ui/views/controls/link.h"
#include "ui/views/test/test_widget_observer.h"
#include "ui/views/widget/widget.h"
namespace {
const int kIconSize = …;
const char16_t kHeadingText[] = …;
const char16_t kBodyText[] = …;
const char16_t kActionButtonText[] = …;
const char16_t kDismissButtonText[] = …;
const char16_t kExtraViewText[] = …;
}
class ToolbarActionsBarBubbleViewsTest : public ChromeViewsTestBase { … };
TEST_F(ToolbarActionsBarBubbleViewsTest, TestBubbleLayoutActionButton) { … }
TEST_F(ToolbarActionsBarBubbleViewsTest, TestBubbleLayoutNoButtons) { … }
TEST_F(ToolbarActionsBarBubbleViewsTest,
TestBubbleLayoutActionAndDismissButton) { … }
TEST_F(ToolbarActionsBarBubbleViewsTest,
TestBubbleLayoutActionDismissAndLearnMoreButton) { … }
TEST_F(ToolbarActionsBarBubbleViewsTest, TestBubbleLayoutNoBodyText) { … }
TEST_F(ToolbarActionsBarBubbleViewsTest, TestBubbleDefaultDialogButtons) { … }
TEST_F(ToolbarActionsBarBubbleViewsTest, TestShowAndCloseBubble) { … }
TEST_F(ToolbarActionsBarBubbleViewsTest, TestClickActionButton) { … }
TEST_F(ToolbarActionsBarBubbleViewsTest, TestClickDismissButton) { … }
TEST_F(ToolbarActionsBarBubbleViewsTest, TestClickLearnMoreLink) { … }
TEST_F(ToolbarActionsBarBubbleViewsTest, TestCloseOnDeactivation) { … }
TEST_F(ToolbarActionsBarBubbleViewsTest, TestNullExtraView) { … }
TEST_F(ToolbarActionsBarBubbleViewsTest, TestCreateExtraViewIconOnly) { … }
TEST_F(ToolbarActionsBarBubbleViewsTest, TestCreateExtraViewLinkedTextOnly) { … }
TEST_F(ToolbarActionsBarBubbleViewsTest, TestCreateExtraViewLabelTextOnly) { … }
TEST_F(ToolbarActionsBarBubbleViewsTest, TestCreateExtraViewImageAndText) { … }