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

Side by Side Diff: components/html_viewer/layout_test_html_viewer.cc

Issue 1218323002: Hook up test runner to new layout_test_html_viewer (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: updates Created 5 years, 5 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 unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "components/html_viewer/layout_test_html_viewer.h"
6
7 #include "components/html_viewer/global_state.h"
8 #include "components/html_viewer/layout_test_content_handler_impl.h"
9 #include "components/test_runner/web_test_interfaces.h"
10
11 namespace html_viewer {
12
13 LayoutTestHTMLViewer::LayoutTestHTMLViewer() {
14 }
15
16 LayoutTestHTMLViewer::~LayoutTestHTMLViewer() {
17 }
18
19 void LayoutTestHTMLViewer::Initialize(mojo::ApplicationImpl* app) {
20 HTMLViewer::Initialize(app);
21 global_state()->InitIfNecessary(gfx::Size(800, 600), 1.f);
22 test_interfaces_.reset(new test_runner::WebTestInterfaces);
23 test_interfaces_->ResetAll();
24 test_delegate_.set_test_interfaces(test_interfaces_.get());
25 test_interfaces_->SetDelegate(&test_delegate_);
26 }
27
28 void LayoutTestHTMLViewer::Create(
29 mojo::ApplicationConnection* connection,
30 mojo::InterfaceRequest<mojo::ContentHandler> request) {
31 new LayoutTestContentHandlerImpl(global_state(), app(), request.Pass(),
32 test_interfaces_.get(),
33 &test_delegate_);
34 }
35
36 } // namespace html_viewer
OLDNEW
« 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