#include "chrome/browser/preloading/preview/preview_test_util.h"
#include "base/run_loop.h"
#include "chrome/browser/preloading/preview/preview_manager.h"
#include "content/public/browser/web_contents_observer.h"
#include "third_party/blink/public/common/features.h"
namespace test {
namespace {
class EventWaiter final : public PreviewTestHelper::Waiter,
public content::WebContentsObserver { … };
}
ScopedPreviewFeatureList::ScopedPreviewFeatureList() { … }
PreviewTestHelper::PreviewTestHelper(const content::WebContents::Getter& fn)
: … { … }
PreviewTestHelper::~PreviewTestHelper() = default;
base::WeakPtr<content::WebContents>
PreviewTestHelper::GetWebContentsForPreviewTab() { … }
void PreviewTestHelper::InitiatePreview(const GURL& url) { … }
void PreviewTestHelper::PromoteToNewTab() { … }
void PreviewTestHelper::WaitUntilLoadFinished() { … }
PreviewTestHelper::Waiter PreviewTestHelper::CreateActivationWaiter() { … }
void PreviewTestHelper::CloseAndWaitUntilFinished() { … }
PreviewManager& PreviewTestHelper::GetManager() { … }
}