#include "chrome/browser/extensions/permissions/scripting_permissions_modifier.h"
#include "chrome/browser/extensions/permissions/site_permissions_helper.h"
#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/ui/test/test_browser_dialog.h"
#include "chrome/browser/ui/views/extensions/extensions_toolbar_container.h"
#include "chrome/browser/ui/views/extensions/extensions_toolbar_interactive_uitest.h"
#include "chrome/browser/ui/views/toolbar/toolbar_action_hover_card_bubble_view.h"
#include "chrome/browser/ui/views/toolbar/toolbar_action_hover_card_controller.h"
#include "chrome/grit/generated_resources.h"
#include "chrome/test/base/interactive_test_utils.h"
#include "chrome/test/base/ui_test_utils.h"
#include "components/policy/core/browser/browser_policy_connector.h"
#include "components/policy/core/common/mock_configuration_policy_provider.h"
#include "components/policy/core/common/policy_map.h"
#include "components/policy/policy_constants.h"
#include "components/sessions/content/session_tab_helper.h"
#include "content/public/browser/web_contents.h"
#include "content/public/test/browser_test.h"
#include "extensions/browser/extension_action_manager.h"
#include "extensions/common/extension_features.h"
#include "extensions/test/permissions_manager_waiter.h"
#include "ui/base/l10n/l10n_util.h"
#include "ui/events/types/event_type.h"
#include "ui/gfx/animation/animation_test_api.h"
#include "ui/views/test/widget_test.h"
namespace {
SiteInteraction;
class SafeWidgetDestroyedWaiter : public views::WidgetObserver { … };
}
class ToolbarActionHoverCardBubbleViewUITest : public ExtensionsToolbarUITest { … };
IN_PROC_BROWSER_TEST_F(ToolbarActionHoverCardBubbleViewUITest, InvokeUi) { … }
IN_PROC_BROWSER_TEST_F(ToolbarActionHoverCardBubbleViewUITest,
WidgetVisibleOnHover) { … }
IN_PROC_BROWSER_TEST_F(ToolbarActionHoverCardBubbleViewUITest,
WidgetUpdatedWhenHoveringBetweenActionViews) { … }
IN_PROC_BROWSER_TEST_F(ToolbarActionHoverCardBubbleViewUITest,
WidgetContentDynamicallyUpdated) { … }
IN_PROC_BROWSER_TEST_F(ToolbarActionHoverCardBubbleViewUITest,
WidgetContentDynamicallyUpdated_SiteAccessUpdated) { … }
IN_PROC_BROWSER_TEST_F(ToolbarActionHoverCardBubbleViewUITest,
WidgetNotVisibleOnExtensionsControl) { … }
IN_PROC_BROWSER_TEST_F(ToolbarActionHoverCardBubbleViewUITest,
WidgetNotVisibleOnToolbarActionViewClick) { … }
IN_PROC_BROWSER_TEST_F(ToolbarActionHoverCardBubbleViewUITest,
WidgetNotVisibleOnFocus) { … }
IN_PROC_BROWSER_TEST_F(ToolbarActionHoverCardBubbleViewUITest,
WidgetNotVisibleOnAnyKeyPressInSameWindow) { … }
class ToolbarActionHoverCardBubbleViewDisabledFeatureUITest
: public ToolbarActionHoverCardBubbleViewUITest { … };
IN_PROC_BROWSER_TEST_F(ToolbarActionHoverCardBubbleViewDisabledFeatureUITest,
WidgetNotVisibleWhenDisabledFeature) { … }