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/webkit_test_runner.h" | 5 #include "content/shell/renderer/layout_test/webkit_test_runner.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 #include <clocale> | 8 #include <clocale> |
9 #include <cmath> | 9 #include <cmath> |
10 | 10 |
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
100 task->run(); | 100 task->run(); |
101 delete task; | 101 delete task; |
102 } | 102 } |
103 | 103 |
104 class SyncNavigationStateVisitor : public RenderViewVisitor { | 104 class SyncNavigationStateVisitor : public RenderViewVisitor { |
105 public: | 105 public: |
106 SyncNavigationStateVisitor() {} | 106 SyncNavigationStateVisitor() {} |
107 ~SyncNavigationStateVisitor() override {} | 107 ~SyncNavigationStateVisitor() override {} |
108 | 108 |
109 bool Visit(RenderView* render_view) override { | 109 bool Visit(RenderView* render_view) override { |
110 ForcePageStateFlush(render_view); | 110 SyncNavigationState(render_view); |
111 return true; | 111 return true; |
112 } | 112 } |
113 private: | 113 private: |
114 DISALLOW_COPY_AND_ASSIGN(SyncNavigationStateVisitor); | 114 DISALLOW_COPY_AND_ASSIGN(SyncNavigationStateVisitor); |
115 }; | 115 }; |
116 | 116 |
117 class ProxyToRenderViewVisitor : public RenderViewVisitor { | 117 class ProxyToRenderViewVisitor : public RenderViewVisitor { |
118 public: | 118 public: |
119 explicit ProxyToRenderViewVisitor(WebTestProxyBase* proxy) | 119 explicit ProxyToRenderViewVisitor(WebTestProxyBase* proxy) |
120 : proxy_(proxy), | 120 : proxy_(proxy), |
(...skipping 633 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
754 | 754 |
755 leak_detector_->TryLeakDetection(main_frame); | 755 leak_detector_->TryLeakDetection(main_frame); |
756 } | 756 } |
757 | 757 |
758 void WebKitTestRunner::ReportLeakDetectionResult( | 758 void WebKitTestRunner::ReportLeakDetectionResult( |
759 const LeakDetectionResult& report) { | 759 const LeakDetectionResult& report) { |
760 Send(new ShellViewHostMsg_LeakDetectionDone(routing_id(), report)); | 760 Send(new ShellViewHostMsg_LeakDetectionDone(routing_id(), report)); |
761 } | 761 } |
762 | 762 |
763 } // namespace content | 763 } // namespace content |
OLD | NEW |