#include "base/test/run_until.h"
#include "build/build_config.h"
#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/ui/browser.h"
#include "chrome/browser/ui/lens/lens_overlay_controller.h"
#include "chrome/browser/ui/lens/lens_overlay_invocation_source.h"
#include "chrome/browser/ui/tabs/public/tab_features.h"
#include "chrome/common/webui_url_constants.h"
#include "chrome/test/base/in_process_browser_test.h"
#include "chrome/test/base/ui_test_utils.h"
#include "chrome/test/base/web_ui_mocha_browser_test.h"
#include "components/lens/lens_features.h"
#include "components/lens/lens_overlay_permission_utils.h"
#include "components/prefs/pref_service.h"
#include "content/public/common/url_constants.h"
#include "content/public/test/browser_test.h"
#include "content/public/test/browser_test_utils.h"
#include "ui/views/controls/webview/webview.h"
#include "ui/views/view_utils.h"
namespace {
constexpr char kDocumentWithNamedElement[] = …;
State;
class LensWebUIBrowserTest : public WebUIMochaBrowserTest { … };
class LensOverlayTest : public LensWebUIBrowserTest { … };
IN_PROC_BROWSER_TEST_F(LensOverlayTest, OverlayBackgroundScrim) { … }
IN_PROC_BROWSER_TEST_F(LensOverlayTest, OverlayCloseButton) { … }
#if BUILDFLAG(IS_LINUX)
#define MAYBE_OverlayCursor …
#else
#define MAYBE_OverlayCursor …
#endif
IN_PROC_BROWSER_TEST_F(LensOverlayTest, MAYBE_OverlayCursor) { … }
IN_PROC_BROWSER_TEST_F(LensOverlayTest, OverlayMoreOptionsButton) { … }
IN_PROC_BROWSER_TEST_F(LensOverlayTest, OverlayScreenshot) { … }
IN_PROC_BROWSER_TEST_F(LensOverlayTest, OverlayTheme) { … }
IN_PROC_BROWSER_TEST_F(LensOverlayTest, ManualRegionSelection) { … }
IN_PROC_BROWSER_TEST_F(LensOverlayTest, TextSelection) { … }
IN_PROC_BROWSER_TEST_F(LensOverlayTest, ObjectSelection) { … }
IN_PROC_BROWSER_TEST_F(LensOverlayTest, SelectionOverlay) { … }
IN_PROC_BROWSER_TEST_F(LensOverlayTest, PostSelectionRenderer) { … }
IN_PROC_BROWSER_TEST_F(LensOverlayTest, FindWordsInRegion) { … }
IN_PROC_BROWSER_TEST_F(LensOverlayTest, CubicBezier) { … }
IN_PROC_BROWSER_TEST_F(LensOverlayTest, TranslateButton) { … }
LensSidePanelTest;
IN_PROC_BROWSER_TEST_F(LensSidePanelTest, SidePanelResultsFrame) { … }
IN_PROC_BROWSER_TEST_F(LensSidePanelTest, SearchboxBackButton) { … }
IN_PROC_BROWSER_TEST_F(LensSidePanelTest, ErrorPage) { … }
}