#include "chrome/browser/picture_in_picture/document_picture_in_picture_mixin_test_base.h"
#include <string>
#include "base/files/file_path.h"
#include "base/strings/strcat.h"
#include "base/strings/string_number_conversions.h"
#include "base/time/time.h"
#include "chrome/browser/ui/browser.h"
#include "chrome/browser/ui/tabs/tab_strip_model.h"
#include "chrome/test/base/in_process_browser_test.h"
#include "chrome/test/base/mixin_based_in_process_browser_test.h"
#include "chrome/test/base/ui_test_utils.h"
#include "content/public/browser/document_picture_in_picture_window_controller.h"
#include "content/public/browser/render_widget_host_view.h"
#include "content/public/browser/web_contents.h"
#include "content/public/test/browser_test_utils.h"
#include "ui/gfx/geometry/size.h"
DocumentPictureInPictureMixinTestBase::DocumentPictureInPictureMixinTestBase(
InProcessBrowserTestMixinHost* mixin_host)
: … { … }
DocumentPictureInPictureMixinTestBase::
~DocumentPictureInPictureMixinTestBase() = default;
void DocumentPictureInPictureMixinTestBase::PostRunTestOnMainThread() { … }
void DocumentPictureInPictureMixinTestBase::
NavigateToURLAndEnterPictureInPicture(Browser* browser,
const gfx::Size& window_size) { … }
void DocumentPictureInPictureMixinTestBase::WaitForPageLoad(
content::WebContents* contents) { … }
GURL DocumentPictureInPictureMixinTestBase::GetPictureInPictureURL() const { … }
bool DocumentPictureInPictureMixinTestBase::AwaitPipWindowClosedSuccessfully() { … }
content::RenderWidgetHostView*
DocumentPictureInPictureMixinTestBase::GetRenderWidgetHostView() { … }
void DocumentPictureInPictureMixinTestBase::SetUpWindowController(
content::WebContents* web_contents) { … }