| 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" | 21 #include "third_party/WebKit/public/platform/modules/screen_orientation/WebScree
nOrientationType.h" |
| 22 #include "v8/include/v8.h" | 22 #include "v8/include/v8.h" |
| 23 | 23 |
| 24 class SkBitmap; | 24 class SkBitmap; |
| 25 class SkCanvas; | 25 class SkCanvas; |
| 26 | 26 |
| 27 namespace base { |
| 28 class DictionaryValue; |
| 29 } |
| 30 |
| 27 namespace blink { | 31 namespace blink { |
| 28 class WebDeviceMotionData; | 32 class WebDeviceMotionData; |
| 29 class WebDeviceOrientationData; | 33 class WebDeviceOrientationData; |
| 30 struct WebRect; | 34 struct WebRect; |
| 31 } | 35 } |
| 32 | 36 |
| 33 namespace test_runner { | 37 namespace test_runner { |
| 34 class WebTestProxyBase; | 38 class WebTestProxyBase; |
| 35 } | 39 } |
| 36 | 40 |
| (...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 110 override; | 114 override; |
| 111 void SendBluetoothManualChooserEvent(const std::string& event, | 115 void SendBluetoothManualChooserEvent(const std::string& event, |
| 112 const std::string& argument) override; | 116 const std::string& argument) override; |
| 113 void SetGeofencingMockProvider(bool service_available) override; | 117 void SetGeofencingMockProvider(bool service_available) override; |
| 114 void ClearGeofencingMockProvider() override; | 118 void ClearGeofencingMockProvider() override; |
| 115 void SetGeofencingMockPosition(double latitude, double longitude) override; | 119 void SetGeofencingMockPosition(double latitude, double longitude) override; |
| 116 void SetFocus(test_runner::WebTestProxyBase* proxy, bool focus) override; | 120 void SetFocus(test_runner::WebTestProxyBase* proxy, bool focus) override; |
| 117 void SetAcceptAllCookies(bool accept) override; | 121 void SetAcceptAllCookies(bool accept) override; |
| 118 std::string PathToLocalResource(const std::string& resource) override; | 122 std::string PathToLocalResource(const std::string& resource) override; |
| 119 void SetLocale(const std::string& locale) override; | 123 void SetLocale(const std::string& locale) override; |
| 124 void OnLayoutDumpFlagsChanged( |
| 125 const base::DictionaryValue& changed_values) override; |
| 120 void TestFinished() override; | 126 void TestFinished() override; |
| 121 void CloseRemainingWindows() override; | 127 void CloseRemainingWindows() override; |
| 122 void DeleteAllCookies() override; | 128 void DeleteAllCookies() override; |
| 123 int NavigationEntryCount() override; | 129 int NavigationEntryCount() override; |
| 124 void GoToOffset(int offset) override; | 130 void GoToOffset(int offset) override; |
| 125 void Reload() override; | 131 void Reload() override; |
| 126 void LoadURLForFrame(const blink::WebURL& url, | 132 void LoadURLForFrame(const blink::WebURL& url, |
| 127 const std::string& frame_name) override; | 133 const std::string& frame_name) override; |
| 128 bool AllowExternalPages() override; | 134 bool AllowExternalPages() override; |
| 129 std::string DumpHistoryForWindow( | 135 std::string DumpHistoryForWindow( |
| (...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 213 bool focus_on_next_commit_; | 219 bool focus_on_next_commit_; |
| 214 | 220 |
| 215 scoped_ptr<LeakDetector> leak_detector_; | 221 scoped_ptr<LeakDetector> leak_detector_; |
| 216 | 222 |
| 217 DISALLOW_COPY_AND_ASSIGN(BlinkTestRunner); | 223 DISALLOW_COPY_AND_ASSIGN(BlinkTestRunner); |
| 218 }; | 224 }; |
| 219 | 225 |
| 220 } // namespace content | 226 } // namespace content |
| 221 | 227 |
| 222 #endif // CONTENT_SHELL_RENDERER_LAYOUT_TEST_BLINK_TEST_RUNNER_H_ | 228 #endif // CONTENT_SHELL_RENDERER_LAYOUT_TEST_BLINK_TEST_RUNNER_H_ |
| OLD | NEW |