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

Side by Side Diff: components/web_view/test_runner/test_runner_application_delegate.cc

Issue 1343773003: Revert of mandoline: Add back/forward support and UI. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 3 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
1 // Copyright 2015 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "components/web_view/test_runner/test_runner_application_delegate.h" 5 #include "components/web_view/test_runner/test_runner_application_delegate.h"
6 6
7 #include <iostream> 7 #include <iostream>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/command_line.h" 10 #include "base/command_line.h"
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
116 //////////////////////////////////////////////////////////////////////////////// 116 ////////////////////////////////////////////////////////////////////////////////
117 // mojom::WebViewClient implementation: 117 // mojom::WebViewClient implementation:
118 118
119 void TestRunnerApplicationDelegate::TopLevelNavigate( 119 void TestRunnerApplicationDelegate::TopLevelNavigate(
120 mojo::URLRequestPtr request) { 120 mojo::URLRequestPtr request) {
121 web_view_->web_view()->LoadRequest(request.Pass()); 121 web_view_->web_view()->LoadRequest(request.Pass());
122 } 122 }
123 123
124 void TestRunnerApplicationDelegate::LoadingStateChanged(bool is_loading) {} 124 void TestRunnerApplicationDelegate::LoadingStateChanged(bool is_loading) {}
125 void TestRunnerApplicationDelegate::ProgressChanged(double progress) {} 125 void TestRunnerApplicationDelegate::ProgressChanged(double progress) {}
126 void TestRunnerApplicationDelegate::BackForwardChanged(
127 mojom::ButtonState back_button,
128 mojom::ButtonState forward_button) {}
129 void TestRunnerApplicationDelegate::TitleChanged(const mojo::String& title) {} 126 void TestRunnerApplicationDelegate::TitleChanged(const mojo::String& title) {}
130 127
131 //////////////////////////////////////////////////////////////////////////////// 128 ////////////////////////////////////////////////////////////////////////////////
132 // LayoutTestRunner implementation: 129 // LayoutTestRunner implementation:
133 130
134 void TestRunnerApplicationDelegate::TestFinished() { 131 void TestRunnerApplicationDelegate::TestFinished() {
135 std::cout << "#EOF\n"; 132 std::cout << "#EOF\n";
136 std::cout.flush(); 133 std::cout.flush();
137 134
138 std::cerr << "#EOF\n"; 135 std::cerr << "#EOF\n";
139 std::cerr.flush(); 136 std::cerr.flush();
140 137
141 scoped_ptr<test_runner::TestInfo> test_info = test_extractor_->GetNextTest(); 138 scoped_ptr<test_runner::TestInfo> test_info = test_extractor_->GetNextTest();
142 if (test_info) 139 if (test_info)
143 LaunchURL(test_info->url); 140 LaunchURL(test_info->url);
144 else 141 else
145 Terminate(); 142 Terminate();
146 } 143 }
147 144
148 //////////////////////////////////////////////////////////////////////////////// 145 ////////////////////////////////////////////////////////////////////////////////
149 // mojo::InterfaceFactory<LayoutTestRunner> implementation: 146 // mojo::InterfaceFactory<LayoutTestRunner> implementation:
150 147
151 void TestRunnerApplicationDelegate::Create( 148 void TestRunnerApplicationDelegate::Create(
152 mojo::ApplicationConnection* connection, 149 mojo::ApplicationConnection* connection,
153 mojo::InterfaceRequest<web_view::LayoutTestRunner> request) { 150 mojo::InterfaceRequest<web_view::LayoutTestRunner> request) {
154 layout_test_runner_.AddBinding(this, request.Pass()); 151 layout_test_runner_.AddBinding(this, request.Pass());
155 } 152 }
156 153
157 } // namespace web_view 154 } // namespace web_view
OLDNEW
« no previous file with comments | « components/web_view/test_runner/test_runner_application_delegate.h ('k') | components/web_view/url_request_cloneable.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698