Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1641)

Unified Diff: components/html_viewer/layout_test_html_viewer.cc

Issue 1677293002: Bye bye Mandoline (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: moar Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: components/html_viewer/layout_test_html_viewer.cc
diff --git a/components/html_viewer/layout_test_html_viewer.cc b/components/html_viewer/layout_test_html_viewer.cc
deleted file mode 100644
index db7fb60b98afdfb2aafe3ab9e7931d718d560fb9..0000000000000000000000000000000000000000
--- a/components/html_viewer/layout_test_html_viewer.cc
+++ /dev/null
@@ -1,54 +0,0 @@
-// Copyright 2015 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "components/html_viewer/layout_test_html_viewer.h"
-
-#include <utility>
-
-#include "components/html_viewer/global_state.h"
-#include "components/html_viewer/layout_test_content_handler_impl.h"
-#include "components/test_runner/web_test_interfaces.h"
-#include "components/web_view/test_runner/public/interfaces/layout_test_runner.mojom.h"
-#include "v8/include/v8.h"
-
-namespace html_viewer {
-
-LayoutTestHTMLViewer::LayoutTestHTMLViewer() {
-}
-
-LayoutTestHTMLViewer::~LayoutTestHTMLViewer() {
-}
-
-void LayoutTestHTMLViewer::Initialize(mojo::Shell* shell,
- const std::string& url, uint32_t id) {
- HTMLViewer::Initialize(shell, url, id);
- global_state()->InitIfNecessary(gfx::Size(800, 600), 1.f);
- test_interfaces_.reset(new test_runner::WebTestInterfaces);
- test_interfaces_->ResetAll();
- test_delegate_.set_test_interfaces(test_interfaces_.get());
- test_delegate_.set_completion_callback(
- base::Bind(&LayoutTestHTMLViewer::TestFinished, base::Unretained(this)));
- test_interfaces_->SetDelegate(&test_delegate_);
-
- // Always expose GC to layout tests.
- std::string flags("--expose-gc");
- v8::V8::SetFlagsFromString(flags.c_str(), static_cast<int>(flags.size()));
-}
-
-void LayoutTestHTMLViewer::TestFinished() {
- test_interfaces_->ResetAll();
-
- web_view::LayoutTestRunnerPtr test_runner_ptr;
- shell()->ConnectToService("mojo:web_view_test_runner", &test_runner_ptr);
- test_runner_ptr->TestFinished();
-}
-
-void LayoutTestHTMLViewer::Create(
- mojo::Connection* connection,
- mojo::InterfaceRequest<mojo::shell::mojom::ContentHandler> request) {
- new LayoutTestContentHandlerImpl(global_state(), shell(), std::move(request),
- test_interfaces_.get(), &test_delegate_);
-}
-
-} // namespace html_viewer
« no previous file with comments | « components/html_viewer/layout_test_html_viewer.h ('k') | components/html_viewer/layout_test_html_viewer_main.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698