#ifndef COMPONENTS_PAGE_LOAD_METRICS_BROWSER_OBSERVERS_AD_METRICS_AD_INTERVENTION_BROWSER_TEST_UTILS_H_
#define COMPONENTS_PAGE_LOAD_METRICS_BROWSER_OBSERVERS_AD_METRICS_AD_INTERVENTION_BROWSER_TEST_UTILS_H_
#include "net/test/embedded_test_server/controllable_http_response.h"
class GURL;
namespace content {
class WebContents;
}
namespace gfx {
class Rect;
}
namespace net {
namespace test_server {
class ControllableHttpResponse;
}
}
namespace page_load_metrics {
extern const char kHttpOkResponseHeader[];
extern const int kMaxHeavyAdNetworkSize;
class PageLoadMetricsTestWaiter;
int GetDocumentHeight(content::WebContents* web_contents);
void CreateAndWaitForIframeAtRect(content::WebContents* web_contents,
PageLoadMetricsTestWaiter* waiter,
const GURL& url,
const gfx::Rect& rect);
void NavigateAndWaitForFirstContentfulPaint(content::WebContents* web_contents,
const GURL& url);
void NavigateAndWaitForFirstMeaningfulPaint(content::WebContents* web_contents,
const GURL& url);
void TriggerAndDetectLargeStickyAd(content::WebContents* web_contents);
void TriggerAndDetectOverlayPopupAd(content::WebContents* web_contents);
void LoadLargeResource(net::test_server::ControllableHttpResponse* response,
int bytes);
}
#endif