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

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

Issue 2513423003: DevTools: Convert inspector-unit tests to use reusable test harness (Closed)
Patch Set: clean diff Created 4 years 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 (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 619 matching lines...) Expand 10 before | Expand all | Expand 10 after
630 } 630 }
631 631
632 void BlinkTestRunner::GoToOffset(int offset) { 632 void BlinkTestRunner::GoToOffset(int offset) {
633 Send(new ShellViewHostMsg_GoToOffset(routing_id(), offset)); 633 Send(new ShellViewHostMsg_GoToOffset(routing_id(), offset));
634 } 634 }
635 635
636 void BlinkTestRunner::Reload() { 636 void BlinkTestRunner::Reload() {
637 Send(new ShellViewHostMsg_Reload(routing_id())); 637 Send(new ShellViewHostMsg_Reload(routing_id()));
638 } 638 }
639 639
640 void BlinkTestRunner::LoadURLForMainFrame(const WebURL& url) {
641 std::string frame_name =
642 render_view()->GetMainRenderFrame()->GetWebFrame()->uniqueName().utf8();
643 LoadURLForFrame(url, frame_name);
644 }
645
640 void BlinkTestRunner::LoadURLForFrame(const WebURL& url, 646 void BlinkTestRunner::LoadURLForFrame(const WebURL& url,
641 const std::string& frame_name) { 647 const std::string& frame_name) {
642 Send(new ShellViewHostMsg_LoadURLForFrame( 648 Send(new ShellViewHostMsg_LoadURLForFrame(
643 routing_id(), url, frame_name)); 649 routing_id(), url, frame_name));
644 } 650 }
645 651
646 bool BlinkTestRunner::AllowExternalPages() { 652 bool BlinkTestRunner::AllowExternalPages() {
647 return test_config_.allow_external_pages; 653 return test_config_.allow_external_pages;
648 } 654 }
649 655
(...skipping 380 matching lines...) Expand 10 before | Expand all | Expand 10 after
1030 void BlinkTestRunner::ReportLeakDetectionResult( 1036 void BlinkTestRunner::ReportLeakDetectionResult(
1031 const LeakDetectionResult& report) { 1037 const LeakDetectionResult& report) {
1032 Send(new ShellViewHostMsg_LeakDetectionDone(routing_id(), report)); 1038 Send(new ShellViewHostMsg_LeakDetectionDone(routing_id(), report));
1033 } 1039 }
1034 1040
1035 void BlinkTestRunner::OnDestruct() { 1041 void BlinkTestRunner::OnDestruct() {
1036 delete this; 1042 delete this;
1037 } 1043 }
1038 1044
1039 } // namespace content 1045 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698