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