#include "chrome/browser/ui/test/popup_test_base.h"
#include <string>
#include "base/memory/raw_ptr.h"
#include "chrome/browser/ui/browser.h"
#include "chrome/browser/ui/browser_window.h"
#include "chrome/test/base/ui_test_utils.h"
#include "components/embedder_support/switches.h"
#include "components/permissions/permission_request_manager.h"
#include "content/public/test/browser_test_utils.h"
#include "ui/display/display.h"
#include "ui/display/screen.h"
#include "ui/gfx/geometry/rect.h"
#include "ui/gfx/native_widget_types.h"
#include "ui/views/widget/widget.h"
#include "ui/views/widget/widget_observer.h"
#include "url/gurl.h"
namespace {
class BoundsChangeWaiter final : public views::WidgetObserver { … };
}
void PopupTestBase::SetUpCommandLine(base::CommandLine* command_line) { … }
Browser* PopupTestBase::OpenPopup(Browser* browser,
const std::string& script,
bool user_gesture) { … }
Browser* PopupTestBase::OpenPopup(const content::ToRenderFrameHost& adapter,
const std::string& script,
bool user_gesture) { … }
void PopupTestBase::WaitForBoundsChange(Browser* browser,
int move_by,
int resize_by) { … }
void PopupTestBase::SetUpWindowManagement(Browser* browser) { … }
display::Display PopupTestBase::GetDisplayNearestBrowser(
const Browser* browser) { … }
void PopupTestBase::WaitForUserActivationExpiry(Browser* browser) { … }