#include <memory>
#include <optional>
#include "base/functional/callback_helpers.h"
#include "base/memory/ptr_util.h"
#include "base/test/bind.h"
#include "build/build_config.h"
#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/ui/browser.h"
#include "chrome/browser/ui/browser_element_identifiers.h"
#include "chrome/browser/ui/browser_window.h"
#include "chrome/browser/ui/toolbar/app_menu_model.h"
#include "chrome/browser/ui/views/bubble/webui_bubble_dialog_view.h"
#include "chrome/browser/ui/views/frame/browser_view.h"
#include "chrome/browser/ui/views/side_panel/side_panel_entry.h"
#include "chrome/browser/ui/views/toolbar/browser_app_menu_button.h"
#include "chrome/browser/ui/views/toolbar/toolbar_view.h"
#include "chrome/common/webui_url_constants.h"
#include "chrome/test/interaction/interactive_browser_test.h"
#include "chrome/test/interaction/tracked_element_webcontents.h"
#include "content/public/browser/page_navigator.h"
#include "content/public/test/browser_test.h"
#include "ui/base/interaction/element_identifier.h"
#include "ui/base/interaction/element_tracker.h"
#include "ui/base/interaction/interaction_sequence.h"
#include "ui/base/metadata/metadata_header_macros.h"
#include "ui/base/metadata/metadata_impl_macros.h"
#include "ui/base/page_transition_types.h"
#include "ui/base/window_open_disposition.h"
#include "ui/display/screen.h"
#include "ui/gfx/geometry/point.h"
#include "ui/gfx/geometry/size.h"
#include "ui/gfx/geometry/vector2d.h"
#include "ui/gfx/native_widget_types.h"
#include "ui/views/event_monitor.h"
#include "ui/views/interaction/element_tracker_views.h"
#include "ui/views/interaction/interaction_sequence_views.h"
#include "ui/views/interaction/widget_focus_observer.h"
#include "ui/views/layout/fill_layout.h"
#include "ui/views/test/widget_activation_waiter.h"
#include "url/gurl.h"
namespace {
constexpr char kDocumentWithNamedElement[] = …;
constexpr char kDocumentWithTitle[] = …;
}
class InteractiveBrowserTestUiTest : public InteractiveBrowserTest { … };
IN_PROC_BROWSER_TEST_F(InteractiveBrowserTestUiTest,
TestEventTypesAndMouseMoveClick) { … }
IN_PROC_BROWSER_TEST_F(InteractiveBrowserTestUiTest, TestNameAndDrag) { … }
IN_PROC_BROWSER_TEST_F(InteractiveBrowserTestUiTest,
MouseToNewWindowAndDoActionsInSameContext) { … }
IN_PROC_BROWSER_TEST_F(InteractiveBrowserTestUiTest,
MouseToNewWindowAndDoActionsInSpecificContext) { … }
IN_PROC_BROWSER_TEST_F(InteractiveBrowserTestUiTest, ActivateMultipleSurfaces) { … }
IN_PROC_BROWSER_TEST_F(InteractiveBrowserTestUiTest,
WatchForBrowserActivation) { … }
IN_PROC_BROWSER_TEST_F(InteractiveBrowserTestUiTest,
WatchForTabWebContentsActivation) { … }
#if BUILDFLAG(IS_CHROMEOS)
#define MAYBE_WatchForNonTabWebContentsActivation …
#else
#define MAYBE_WatchForNonTabWebContentsActivation …
#endif
IN_PROC_BROWSER_TEST_F(InteractiveBrowserTestUiTest,
MAYBE_WatchForNonTabWebContentsActivation) { … }
IN_PROC_BROWSER_TEST_F(InteractiveBrowserTestUiTest,
WebPageNavigateStateAndLocation) { … }
IN_PROC_BROWSER_TEST_F(InteractiveBrowserTestUiTest,
InAnyContextAndEnsureNotPresent) { … }
IN_PROC_BROWSER_TEST_F(InteractiveBrowserTestUiTest,
DISABLED_InstrumentNonTabAsTestStep) { … }
IN_PROC_BROWSER_TEST_F(InteractiveBrowserTestUiTest,
SendAcceleratorToWebContents) { … }
namespace {
class WebBubbleView : public views::BubbleDialogDelegateView { … };
BEGIN_METADATA(…)
}
IN_PROC_BROWSER_TEST_F(InteractiveBrowserTestUiTest,
SwappingWebViewWebContentsTreatedAsNavigation) { … }
IN_PROC_BROWSER_TEST_F(InteractiveBrowserTestUiTest,
WaitForWebContentsPainted) { … }
IN_PROC_BROWSER_TEST_F(InteractiveBrowserTestUiTest, InitialWindowActive) { … }