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