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 #ifndef CONTENT_SHELL_RENDERER_LAYOUT_TEST_BLINK_TEST_RUNNER_H_ | 5 #ifndef CONTENT_SHELL_RENDERER_LAYOUT_TEST_BLINK_TEST_RUNNER_H_ |
6 #define CONTENT_SHELL_RENDERER_LAYOUT_TEST_BLINK_TEST_RUNNER_H_ | 6 #define CONTENT_SHELL_RENDERER_LAYOUT_TEST_BLINK_TEST_RUNNER_H_ |
7 | 7 |
8 #include <deque> | 8 #include <deque> |
9 #include <memory> | 9 #include <memory> |
10 #include <vector> | 10 #include <vector> |
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
148 blink::WebMediaStream* stream) override; | 148 blink::WebMediaStream* stream) override; |
149 cc::SharedBitmapManager* GetSharedBitmapManager() override; | 149 cc::SharedBitmapManager* GetSharedBitmapManager() override; |
150 void DispatchBeforeInstallPromptEvent( | 150 void DispatchBeforeInstallPromptEvent( |
151 int request_id, | 151 int request_id, |
152 const std::vector<std::string>& event_platforms, | 152 const std::vector<std::string>& event_platforms, |
153 const base::Callback<void(bool)>& callback) override; | 153 const base::Callback<void(bool)>& callback) override; |
154 blink::WebPlugin* CreatePluginPlaceholder( | 154 blink::WebPlugin* CreatePluginPlaceholder( |
155 blink::WebLocalFrame* frame, | 155 blink::WebLocalFrame* frame, |
156 const blink::WebPluginParams& params) override; | 156 const blink::WebPluginParams& params) override; |
157 float GetDeviceScaleFactorForTest() const override; | 157 float GetDeviceScaleFactorForTest() const override; |
| 158 void RunIdleTasks(const base::Closure& callback) override; |
158 | 159 |
159 // Resets a RenderView to a known state for layout tests. It is used both when | 160 // Resets a RenderView to a known state for layout tests. It is used both when |
160 // a RenderView is created and when reusing an existing RenderView for the | 161 // a RenderView is created and when reusing an existing RenderView for the |
161 // next test case. | 162 // next test case. |
162 // When reusing an existing RenderView, |for_new_test| should be true, which | 163 // When reusing an existing RenderView, |for_new_test| should be true, which |
163 // also resets additional state, like the main frame's name and opener. | 164 // also resets additional state, like the main frame's name and opener. |
164 void Reset(bool for_new_test); | 165 void Reset(bool for_new_test); |
165 | 166 |
166 void set_proxy(test_runner::WebTestProxyBase* proxy) { proxy_ = proxy; } | 167 void set_proxy(test_runner::WebTestProxyBase* proxy) { proxy_ = proxy; } |
167 test_runner::WebTestProxyBase* proxy() const { return proxy_; } | 168 test_runner::WebTestProxyBase* proxy() const { return proxy_; } |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
216 bool focus_on_next_commit_; | 217 bool focus_on_next_commit_; |
217 | 218 |
218 std::unique_ptr<LeakDetector> leak_detector_; | 219 std::unique_ptr<LeakDetector> leak_detector_; |
219 | 220 |
220 DISALLOW_COPY_AND_ASSIGN(BlinkTestRunner); | 221 DISALLOW_COPY_AND_ASSIGN(BlinkTestRunner); |
221 }; | 222 }; |
222 | 223 |
223 } // namespace content | 224 } // namespace content |
224 | 225 |
225 #endif // CONTENT_SHELL_RENDERER_LAYOUT_TEST_BLINK_TEST_RUNNER_H_ | 226 #endif // CONTENT_SHELL_RENDERER_LAYOUT_TEST_BLINK_TEST_RUNNER_H_ |
OLD | NEW |