| 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 |
| 11 #include "base/callback.h" | 11 #include "base/callback.h" |
| 12 #include "base/files/file_path.h" | 12 #include "base/files/file_path.h" |
| 13 #include "base/macros.h" | 13 #include "base/macros.h" |
| 14 #include "base/memory/scoped_ptr.h" | 14 #include "base/memory/scoped_ptr.h" |
| 15 #include "components/test_runner/test_preferences.h" | 15 #include "components/test_runner/test_preferences.h" |
| 16 #include "components/test_runner/web_test_delegate.h" | 16 #include "components/test_runner/web_test_delegate.h" |
| 17 #include "content/public/common/page_state.h" | 17 #include "content/public/common/page_state.h" |
| 18 #include "content/public/renderer/render_view_observer.h" | 18 #include "content/public/renderer/render_view_observer.h" |
| 19 #include "content/public/renderer/render_view_observer_tracker.h" | 19 #include "content/public/renderer/render_view_observer_tracker.h" |
| 20 #include "content/shell/common/shell_test_configuration.h" | 20 #include "content/shell/common/shell_test_configuration.h" |
| 21 #include "third_party/WebKit/public/platform/modules/screen_orientation/WebScree
nOrientationType.h" | |
| 22 #include "v8/include/v8.h" | 21 #include "v8/include/v8.h" |
| 23 | 22 |
| 24 class SkBitmap; | 23 class SkBitmap; |
| 25 class SkCanvas; | 24 class SkCanvas; |
| 26 | 25 |
| 27 namespace base { | 26 namespace base { |
| 28 class DictionaryValue; | 27 class DictionaryValue; |
| 29 } | 28 } |
| 30 | 29 |
| 31 namespace blink { | 30 namespace blink { |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 64 | 63 |
| 65 // WebTestDelegate implementation. | 64 // WebTestDelegate implementation. |
| 66 void ClearEditCommand() override; | 65 void ClearEditCommand() override; |
| 67 void SetEditCommand(const std::string& name, | 66 void SetEditCommand(const std::string& name, |
| 68 const std::string& value) override; | 67 const std::string& value) override; |
| 69 void SetGamepadProvider(test_runner::GamepadController* controller) override; | 68 void SetGamepadProvider(test_runner::GamepadController* controller) override; |
| 70 void SetDeviceLightData(const double data) override; | 69 void SetDeviceLightData(const double data) override; |
| 71 void SetDeviceMotionData(const blink::WebDeviceMotionData& data) override; | 70 void SetDeviceMotionData(const blink::WebDeviceMotionData& data) override; |
| 72 void SetDeviceOrientationData( | 71 void SetDeviceOrientationData( |
| 73 const blink::WebDeviceOrientationData& data) override; | 72 const blink::WebDeviceOrientationData& data) override; |
| 74 void SetScreenOrientation( | |
| 75 const blink::WebScreenOrientationType& orientation) override; | |
| 76 void DisableMockScreenOrientation() override; | |
| 77 void ResetScreenOrientation() override; | |
| 78 void PrintMessage(const std::string& message) override; | 73 void PrintMessage(const std::string& message) override; |
| 79 void PostTask(test_runner::WebTask* task) override; | 74 void PostTask(test_runner::WebTask* task) override; |
| 80 void PostDelayedTask(test_runner::WebTask* task, long long ms) override; | 75 void PostDelayedTask(test_runner::WebTask* task, long long ms) override; |
| 81 blink::WebString RegisterIsolatedFileSystem( | 76 blink::WebString RegisterIsolatedFileSystem( |
| 82 const blink::WebVector<blink::WebString>& absolute_filenames) override; | 77 const blink::WebVector<blink::WebString>& absolute_filenames) override; |
| 83 long long GetCurrentTimeInMillisecond() override; | 78 long long GetCurrentTimeInMillisecond() override; |
| 84 blink::WebString GetAbsoluteWebStringFromUTF8Path( | 79 blink::WebString GetAbsoluteWebStringFromUTF8Path( |
| 85 const std::string& utf8_path) override; | 80 const std::string& utf8_path) override; |
| 86 blink::WebURL LocalFileToDataURL(const blink::WebURL& file_url) override; | 81 blink::WebURL LocalFileToDataURL(const blink::WebURL& file_url) override; |
| 87 blink::WebURL RewriteLayoutTestsURL(const std::string& utf8_url) override; | 82 blink::WebURL RewriteLayoutTestsURL(const std::string& utf8_url) override; |
| (...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 215 bool focus_on_next_commit_; | 210 bool focus_on_next_commit_; |
| 216 | 211 |
| 217 scoped_ptr<LeakDetector> leak_detector_; | 212 scoped_ptr<LeakDetector> leak_detector_; |
| 218 | 213 |
| 219 DISALLOW_COPY_AND_ASSIGN(BlinkTestRunner); | 214 DISALLOW_COPY_AND_ASSIGN(BlinkTestRunner); |
| 220 }; | 215 }; |
| 221 | 216 |
| 222 } // namespace content | 217 } // namespace content |
| 223 | 218 |
| 224 #endif // CONTENT_SHELL_RENDERER_LAYOUT_TEST_BLINK_TEST_RUNNER_H_ | 219 #endif // CONTENT_SHELL_RENDERER_LAYOUT_TEST_BLINK_TEST_RUNNER_H_ |
| OLD | NEW |