| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |