#include "third_party/blink/renderer/core/testing/sim/sim_test.h"
#include "base/run_loop.h"
#include "base/task/single_thread_task_runner.h"
#include "content/test/test_blink_web_unit_test_support.h"
#include "third_party/blink/public/platform/web_cache.h"
#include "third_party/blink/public/web/web_navigation_params.h"
#include "third_party/blink/public/web/web_view_client.h"
#include "third_party/blink/renderer/core/css/css_default_style_sheets.h"
#include "third_party/blink/renderer/core/dom/document.h"
#include "third_party/blink/renderer/core/exported/web_view_impl.h"
#include "third_party/blink/renderer/core/frame/local_dom_window.h"
#include "third_party/blink/renderer/core/frame/web_local_frame_impl.h"
#include "third_party/blink/renderer/core/loader/document_loader.h"
#include "third_party/blink/renderer/core/scroll/scrollbar_theme.h"
#include "third_party/blink/renderer/platform/heap/thread_state.h"
#include "third_party/blink/renderer/platform/testing/unit_test_helpers.h"
namespace blink {
SimTest::SimTest(
std::optional<base::test::TaskEnvironment::TimeSource> time_source)
: … { … }
SimTest::~SimTest() { … }
void SimTest::SetUp() { … }
void SimTest::TearDown() { … }
void SimTest::InitializeRemote() { … }
void SimTest::InitializeFencedFrameRoot(
blink::FencedFrame::DeprecatedFencedFrameMode mode) { … }
void SimTest::InitializePrerenderPageRoot() { … }
void SimTest::LoadURL(const String& url_string) { … }
LocalDOMWindow& SimTest::Window() { … }
SimPage& SimTest::GetPage() { … }
Document& SimTest::GetDocument() { … }
WebViewImpl& SimTest::WebView() { … }
WebLocalFrameImpl& SimTest::MainFrame() { … }
WebLocalFrameImpl& SimTest::LocalFrameRoot() { … }
frame_test_helpers::TestWebFrameClient& SimTest::WebFrameClient() { … }
frame_test_helpers::TestWebFrameWidget& SimTest::GetWebFrameWidget() { … }
SimCompositor& SimTest::Compositor() { … }
frame_test_helpers::WebViewHelper& SimTest::WebViewHelper() { … }
Vector<String>& SimTest::ConsoleMessages() { … }
void SimTest::ResizeView(const gfx::Size& size) { … }
frame_test_helpers::TestWebFrameWidget* SimTest::CreateWebFrameWidget(
base::PassKey<WebLocalFrame> pass_key,
CrossVariantMojoAssociatedRemote<mojom::blink::FrameWidgetHostInterfaceBase>
frame_widget_host,
CrossVariantMojoAssociatedReceiver<mojom::blink::FrameWidgetInterfaceBase>
frame_widget,
CrossVariantMojoAssociatedRemote<mojom::blink::WidgetHostInterfaceBase>
widget_host,
CrossVariantMojoAssociatedReceiver<mojom::blink::WidgetInterfaceBase>
widget,
scoped_refptr<base::SingleThreadTaskRunner> task_runner,
const viz::FrameSinkId& frame_sink_id,
bool hidden,
bool never_composited,
bool is_for_child_local_root,
bool is_for_nested_main_frame,
bool is_for_scalable_page) { … }
std::unique_ptr<frame_test_helpers::TestWebFrameClient>
SimTest::CreateWebFrameClientForMainFrame() { … }
void SimTest::SetPreferCompositingToLCDText(bool enabled) { … }
}