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

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
jam 2015/07/09 16:48:27 nit: extra line
jochen (gone - plz use gerrit) 2015/07/10 07:53:43 done
12 namespace html_viewer {
13
14 LayoutTestHTMLViewer::LayoutTestHTMLViewer() {
15 }
16
17 LayoutTestHTMLViewer::~LayoutTestHTMLViewer() {
18 }
19
20 void LayoutTestHTMLViewer::Initialize(mojo::ApplicationImpl* app) {
21 HTMLViewer::Initialize(app);
22 global_state()->InitIfNecessary(gfx::Size(800, 600), 1.f);
23 test_interfaces_.reset(new test_runner::WebTestInterfaces);
24 test_interfaces_->ResetAll();
25 test_delegate_.set_test_interfaces(test_interfaces_.get());
26 test_interfaces_->SetDelegate(&test_delegate_);
27 }
28
29 void LayoutTestHTMLViewer::Create(
30 mojo::ApplicationConnection* connection,
31 mojo::InterfaceRequest<mojo::ContentHandler> request) {
32 new LayoutTestContentHandlerImpl(global_state(), app(), request.Pass(),
33 test_interfaces_.get(),
34 &test_delegate_);
35 }
36
37 } // namespace html_viewer
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698