| 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 13 matching lines...) Expand all Loading... |
| 24 class SkBitmap; | 24 class SkBitmap; |
| 25 | 25 |
| 26 namespace base { | 26 namespace base { |
| 27 class DictionaryValue; | 27 class DictionaryValue; |
| 28 } | 28 } |
| 29 | 29 |
| 30 namespace blink { | 30 namespace blink { |
| 31 class WebDeviceMotionData; | 31 class WebDeviceMotionData; |
| 32 class WebDeviceOrientationData; | 32 class WebDeviceOrientationData; |
| 33 class WebFrame; | 33 class WebFrame; |
| 34 class WebURLRequest; |
| 34 class WebView; | 35 class WebView; |
| 35 } | 36 } |
| 36 | 37 |
| 37 namespace test_runner { | 38 namespace test_runner { |
| 38 class AppBannerService; | 39 class AppBannerService; |
| 39 } | 40 } |
| 40 | 41 |
| 41 namespace content { | 42 namespace content { |
| 42 | 43 |
| 43 class LeakDetector; | 44 class LeakDetector; |
| (...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 155 const std::vector<std::string>& event_platforms, | 156 const std::vector<std::string>& event_platforms, |
| 156 const base::Callback<void(bool)>& callback) override; | 157 const base::Callback<void(bool)>& callback) override; |
| 157 void ResolveBeforeInstallPromptPromise( | 158 void ResolveBeforeInstallPromptPromise( |
| 158 const std::string& platform) override; | 159 const std::string& platform) override; |
| 159 blink::WebPlugin* CreatePluginPlaceholder( | 160 blink::WebPlugin* CreatePluginPlaceholder( |
| 160 blink::WebLocalFrame* frame, | 161 blink::WebLocalFrame* frame, |
| 161 const blink::WebPluginParams& params) override; | 162 const blink::WebPluginParams& params) override; |
| 162 float GetDeviceScaleFactor() const override; | 163 float GetDeviceScaleFactor() const override; |
| 163 void RunIdleTasks(const base::Closure& callback) override; | 164 void RunIdleTasks(const base::Closure& callback) override; |
| 164 void ForceTextInputStateUpdate(blink::WebFrame* frame) override; | 165 void ForceTextInputStateUpdate(blink::WebFrame* frame) override; |
| 166 bool IsNavigationInitiatedByRenderer( |
| 167 const blink::WebURLRequest& request) override; |
| 165 | 168 |
| 166 // Resets a RenderView to a known state for layout tests. It is used both when | 169 // Resets a RenderView to a known state for layout tests. It is used both when |
| 167 // a RenderView is created and when reusing an existing RenderView for the | 170 // a RenderView is created and when reusing an existing RenderView for the |
| 168 // next test case. | 171 // next test case. |
| 169 // When reusing an existing RenderView, |for_new_test| should be true, which | 172 // When reusing an existing RenderView, |for_new_test| should be true, which |
| 170 // also resets additional state, like the main frame's name and opener. | 173 // also resets additional state, like the main frame's name and opener. |
| 171 void Reset(bool for_new_test); | 174 void Reset(bool for_new_test); |
| 172 | 175 |
| 173 void ReportLeakDetectionResult(const LeakDetectionResult& result); | 176 void ReportLeakDetectionResult(const LeakDetectionResult& result); |
| 174 | 177 |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 223 std::unique_ptr<test_runner::AppBannerService> app_banner_service_; | 226 std::unique_ptr<test_runner::AppBannerService> app_banner_service_; |
| 224 | 227 |
| 225 std::unique_ptr<LeakDetector> leak_detector_; | 228 std::unique_ptr<LeakDetector> leak_detector_; |
| 226 | 229 |
| 227 DISALLOW_COPY_AND_ASSIGN(BlinkTestRunner); | 230 DISALLOW_COPY_AND_ASSIGN(BlinkTestRunner); |
| 228 }; | 231 }; |
| 229 | 232 |
| 230 } // namespace content | 233 } // namespace content |
| 231 | 234 |
| 232 #endif // CONTENT_SHELL_RENDERER_LAYOUT_TEST_BLINK_TEST_RUNNER_H_ | 235 #endif // CONTENT_SHELL_RENDERER_LAYOUT_TEST_BLINK_TEST_RUNNER_H_ |
| OLD | NEW |