#include "content/public/test/test_renderer_host.h"
#include <utility>
#include "base/run_loop.h"
#include "base/task/current_thread.h"
#include "base/task/single_thread_task_runner.h"
#include "base/test/task_environment.h"
#include "build/build_config.h"
#include "components/input/render_widget_host_input_event_router.h"
#include "content/browser/gpu/gpu_data_manager_impl.h"
#include "content/browser/renderer_host/frame_tree_node.h"
#include "content/browser/renderer_host/navigation_entry_impl.h"
#include "content/browser/renderer_host/navigation_request.h"
#include "content/browser/renderer_host/render_view_host_factory.h"
#include "content/browser/renderer_host/render_widget_host_impl.h"
#include "content/browser/site_instance_impl.h"
#include "content/public/browser/browser_task_traits.h"
#include "content/public/browser/browser_thread.h"
#include "content/public/browser/render_widget_host_iterator.h"
#include "content/public/browser/web_contents.h"
#include "content/public/test/browser_test_utils.h"
#include "content/public/test/mock_render_process_host.h"
#include "content/public/test/navigation_simulator.h"
#include "content/public/test/test_browser_context.h"
#include "content/public/test/test_image_transport_factory.h"
#include "content/public/test/test_utils.h"
#include "content/test/content_browser_consistency_checker.h"
#include "content/test/test_navigation_url_loader_factory.h"
#include "content/test/test_page_factory.h"
#include "content/test/test_render_frame_host.h"
#include "content/test/test_render_frame_host_factory.h"
#include "content/test/test_render_view_host.h"
#include "content/test/test_render_view_host_factory.h"
#include "content/test/test_render_widget_host_factory.h"
#include "content/test/test_web_contents.h"
#include "net/base/mock_network_change_notifier.h"
#include "third_party/blink/public/common/input/synthetic_web_input_event_builders.h"
#include "third_party/blink/public/common/input/web_input_event.h"
#if BUILDFLAG(IS_MAC) || BUILDFLAG(IS_ANDROID)
#include "ui/display/screen.h"
#endif
#if BUILDFLAG(IS_ANDROID)
#include "ui/android/dummy_screen_android.h"
#endif
#if BUILDFLAG(IS_WIN)
#include "ui/base/win/scoped_ole_initializer.h"
#endif
#if defined(USE_AURA)
#include "ui/aura/test/aura_test_helper.h"
#endif
#if BUILDFLAG(IS_MAC)
#include "ui/accelerated_widget_mac/window_resize_helper_mac.h"
#endif
namespace content {
RenderFrameHostTester* RenderFrameHostTester::For(RenderFrameHost* host) { … }
bool RenderFrameHostTester::TestOnMessageReceived(RenderFrameHost* rfh,
const IPC::Message& msg) { … }
void RenderFrameHostTester::CommitPendingLoad(
NavigationController* controller) { … }
RenderViewHostTester* RenderViewHostTester::For(RenderViewHost* host) { … }
std::unique_ptr<content::InputMsgWatcher>
RenderViewHostTester::CreateInputWatcher(RenderViewHost* rvh,
blink::WebInputEvent::Type type) { … }
void RenderViewHostTester::SendTouchEvent(
RenderViewHost* rvh,
blink::SyntheticWebTouchEvent* touch_event) { … }
RenderViewHostTestEnabler::RenderViewHostTestEnabler(
NavigationURLLoaderFactoryType url_loader_factory_type)
: … { … }
RenderViewHostTestEnabler::~RenderViewHostTestEnabler() { … }
RenderViewHostTestHarness::~RenderViewHostTestHarness() { … }
NavigationController& RenderViewHostTestHarness::controller() { … }
WebContents* RenderViewHostTestHarness::web_contents() const { … }
RenderViewHost* RenderViewHostTestHarness::rvh() { … }
RenderFrameHost* RenderViewHostTestHarness::main_rfh() { … }
BrowserContext* RenderViewHostTestHarness::browser_context() { … }
MockRenderProcessHost* RenderViewHostTestHarness::process() { … }
void RenderViewHostTestHarness::DeleteContents() { … }
void RenderViewHostTestHarness::SetContents(
std::unique_ptr<WebContents> contents) { … }
std::unique_ptr<WebContents>
RenderViewHostTestHarness::CreateTestWebContents() { … }
void RenderViewHostTestHarness::FocusWebContentsOnMainFrame() { … }
void RenderViewHostTestHarness::FocusWebContentsOnFrame(
content::RenderFrameHost* rfh) { … }
void RenderViewHostTestHarness::NavigateAndCommit(
const GURL& url,
ui::PageTransition transition) { … }
void RenderViewHostTestHarness::SetUp() { … }
void RenderViewHostTestHarness::TearDown() { … }
std::unique_ptr<BrowserContext>
RenderViewHostTestHarness::CreateBrowserContext() { … }
BrowserContext* RenderViewHostTestHarness::GetBrowserContext() { … }
void RenderViewHostTestHarness::SetRenderProcessHostFactory(
RenderProcessHostFactory* factory) { … }
RenderViewHostTestHarness::RenderViewHostTestHarness(
std::unique_ptr<BrowserTaskEnvironment> task_environment)
: … { … }
}