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

Side by Side Diff: content/shell/renderer/layout_test/blink_test_runner.cc

Issue 2869333002: Initialize test configuration to a default value. (Closed)
Patch Set: Run cl format. Created 3 years, 7 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
« no previous file with comments | « content/shell/common/layout_test.mojom ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 "content/shell/renderer/layout_test/blink_test_runner.h" 5 #include "content/shell/renderer/layout_test/blink_test_runner.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include <algorithm> 9 #include <algorithm>
10 #include <clocale> 10 #include <clocale>
(...skipping 234 matching lines...) Expand 10 before | Expand all | Expand 10 after
245 .Append(FILE_PATH_LITERAL("LayoutTests/")) 245 .Append(FILE_PATH_LITERAL("LayoutTests/"))
246 .AppendASCII(path); 246 .AppendASCII(path);
247 return WebURL(net::FilePathToFileURL(new_path)); 247 return WebURL(net::FilePathToFileURL(new_path));
248 } 248 }
249 249
250 } // namespace 250 } // namespace
251 251
252 BlinkTestRunner::BlinkTestRunner(RenderView* render_view) 252 BlinkTestRunner::BlinkTestRunner(RenderView* render_view)
253 : RenderViewObserver(render_view), 253 : RenderViewObserver(render_view),
254 RenderViewObserverTracker<BlinkTestRunner>(render_view), 254 RenderViewObserverTracker<BlinkTestRunner>(render_view),
255 test_config_(mojom::ShellTestConfiguration::New()),
255 is_main_window_(false), 256 is_main_window_(false),
256 focus_on_next_commit_(false), 257 focus_on_next_commit_(false),
257 leak_detector_(new LeakDetector(this)) { 258 leak_detector_(new LeakDetector(this)) {}
258 }
259 259
260 BlinkTestRunner::~BlinkTestRunner() { 260 BlinkTestRunner::~BlinkTestRunner() {
261 } 261 }
262 262
263 // WebTestDelegate ----------------------------------------------------------- 263 // WebTestDelegate -----------------------------------------------------------
264 264
265 void BlinkTestRunner::ClearEditCommand() { 265 void BlinkTestRunner::ClearEditCommand() {
266 render_view()->ClearEditCommands(); 266 render_view()->ClearEditCommands();
267 } 267 }
268 268
(...skipping 790 matching lines...) Expand 10 before | Expand all | Expand 10 after
1059 void BlinkTestRunner::ReportLeakDetectionResult( 1059 void BlinkTestRunner::ReportLeakDetectionResult(
1060 const LeakDetectionResult& report) { 1060 const LeakDetectionResult& report) {
1061 Send(new ShellViewHostMsg_LeakDetectionDone(routing_id(), report)); 1061 Send(new ShellViewHostMsg_LeakDetectionDone(routing_id(), report));
1062 } 1062 }
1063 1063
1064 void BlinkTestRunner::OnDestruct() { 1064 void BlinkTestRunner::OnDestruct() {
1065 delete this; 1065 delete this;
1066 } 1066 }
1067 1067
1068 } // namespace content 1068 } // namespace content
OLDNEW
« no previous file with comments | « content/shell/common/layout_test.mojom ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698