#ifndef CONTENT_TEST_CONTENT_BROWSER_TEST_BASE_H_
#define CONTENT_TEST_CONTENT_BROWSER_TEST_BASE_H_
#include "content/browser/web_contents/web_contents_impl.h"
#include "content/public/test/content_browser_test.h"
#include "content/shell/browser/shell.h"
namespace content {
class FrameTreeNode;
class RenderFrameHostImpl;
class ContentBrowserTestBase : public ContentBrowserTest {
protected:
void SetUpOnMainThread() override;
WebContentsImpl* web_contents() const {
return static_cast<WebContentsImpl*>(shell()->web_contents());
}
FrameTreeNode* main_frame() const {
return web_contents()->GetPrimaryFrameTree().root();
}
RenderFrameHostImpl* main_frame_host() const {
return main_frame()->current_frame_host();
}
};
}
#endif