| Index: content/shell/renderer/layout_test/blink_test_runner.cc
|
| diff --git a/content/shell/renderer/layout_test/blink_test_runner.cc b/content/shell/renderer/layout_test/blink_test_runner.cc
|
| index 05f44c88e91f21b051a081f162264079a662309f..881cfb73d76f3701922af2e1245b086ed4fd51c5 100644
|
| --- a/content/shell/renderer/layout_test/blink_test_runner.cc
|
| +++ b/content/shell/renderer/layout_test/blink_test_runner.cc
|
| @@ -332,7 +332,7 @@
|
| base::FilePath path = base::FilePath::FromUTF8Unsafe(utf8_path);
|
| if (!path.IsAbsolute()) {
|
| GURL base_url =
|
| - net::FilePathToFileURL(test_config_->current_working_directory.Append(
|
| + net::FilePathToFileURL(test_config_.current_working_directory.Append(
|
| FILE_PATH_LITERAL("foo")));
|
| net::FileURLToFilePath(base_url.Resolve(utf8_path), &path);
|
| }
|
| @@ -563,7 +563,7 @@
|
| #if defined(OS_WIN)
|
| if (base::StartsWith(resource, "/tmp/", base::CompareCase::SENSITIVE)) {
|
| // We want a temp file.
|
| - GURL base_url = net::FilePathToFileURL(test_config_->temp_path);
|
| + GURL base_url = net::FilePathToFileURL(test_config_.temp_path);
|
| return base_url.Resolve(resource.substr(sizeof("/tmp/") - 1)).spec();
|
| }
|
| #endif
|
| @@ -643,7 +643,7 @@
|
| }
|
|
|
| bool BlinkTestRunner::AllowExternalPages() {
|
| - return test_config_->allow_external_pages;
|
| + return test_config_.allow_external_pages;
|
| }
|
|
|
| std::string BlinkTestRunner::DumpHistoryForWindow(blink::WebView* web_view) {
|
| @@ -891,7 +891,7 @@
|
| void BlinkTestRunner::CaptureDumpContinued() {
|
| test_runner::WebTestInterfaces* interfaces =
|
| LayoutTestRenderThreadObserver::GetInstance()->test_interfaces();
|
| - if (test_config_->enable_pixel_dumping &&
|
| + if (test_config_.enable_pixel_dumping &&
|
| interfaces->TestRunner()->ShouldGeneratePixelResults() &&
|
| !interfaces->TestRunner()->ShouldDumpAsAudio()) {
|
| CHECK(render_view()->GetWebView()->isAcceleratedCompositingActive());
|
| @@ -918,7 +918,7 @@
|
| base::MD5Sum(snapshot.getPixels(), snapshot.getSize(), &digest);
|
| std::string actual_pixel_hash = base::MD5DigestToBase16(digest);
|
|
|
| - if (actual_pixel_hash == test_config_->expected_pixel_hash) {
|
| + if (actual_pixel_hash == test_config_.expected_pixel_hash) {
|
| SkBitmap empty_image;
|
| Send(new ShellViewHostMsg_ImageDump(
|
| routing_id(), actual_pixel_hash, empty_image));
|
| @@ -956,28 +956,27 @@
|
| }
|
|
|
| void BlinkTestRunner::OnReplicateTestConfiguration(
|
| - mojom::ShellTestConfigurationPtr params) {
|
| + const ShellTestConfiguration& params) {
|
| test_runner::WebTestInterfaces* interfaces =
|
| LayoutTestRenderThreadObserver::GetInstance()->test_interfaces();
|
|
|
| - test_config_ = params.Clone();
|
| + test_config_ = params;
|
|
|
| is_main_window_ = true;
|
| interfaces->SetMainView(render_view()->GetWebView());
|
|
|
| interfaces->SetTestIsRunning(true);
|
| - interfaces->ConfigureForTestWithURL(params->test_url,
|
| - params->enable_pixel_dumping);
|
| + interfaces->ConfigureForTestWithURL(params.test_url,
|
| + params.enable_pixel_dumping);
|
| }
|
|
|
| void BlinkTestRunner::OnSetTestConfiguration(
|
| - mojom::ShellTestConfigurationPtr params) {
|
| - mojom::ShellTestConfigurationPtr local_params = params.Clone();
|
| - OnReplicateTestConfiguration(std::move(params));
|
| -
|
| - ForceResizeRenderView(render_view(),
|
| - WebSize(local_params->initial_size.width(),
|
| - local_params->initial_size.height()));
|
| + const ShellTestConfiguration& params) {
|
| + OnReplicateTestConfiguration(params);
|
| +
|
| + ForceResizeRenderView(
|
| + render_view(),
|
| + WebSize(params.initial_size.width(), params.initial_size.height()));
|
| LayoutTestRenderThreadObserver::GetInstance()
|
| ->test_interfaces()
|
| ->TestRunner()
|
|
|