| 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_PUBLIC_TEST_BROWSER_TEST_UTILS_H_ | 5 #ifndef CONTENT_PUBLIC_TEST_BROWSER_TEST_UTILS_H_ |
| 6 #define CONTENT_PUBLIC_TEST_BROWSER_TEST_UTILS_H_ | 6 #define CONTENT_PUBLIC_TEST_BROWSER_TEST_UTILS_H_ |
| 7 | 7 |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/callback_forward.h" | 10 #include "base/callback_forward.h" |
| (...skipping 28 matching lines...) Expand all Loading... |
| 39 // works with browser_tests, it should be in chrome\test\base\ui_test_utils.h. | 39 // works with browser_tests, it should be in chrome\test\base\ui_test_utils.h. |
| 40 // If it only works with content_browsertests, it should be in | 40 // If it only works with content_browsertests, it should be in |
| 41 // content\test\content_browser_test_utils.h. | 41 // content\test\content_browser_test_utils.h. |
| 42 | 42 |
| 43 namespace content { | 43 namespace content { |
| 44 | 44 |
| 45 class MessageLoopRunner; | 45 class MessageLoopRunner; |
| 46 class RenderViewHost; | 46 class RenderViewHost; |
| 47 class WebContents; | 47 class WebContents; |
| 48 | 48 |
| 49 // Generate a URL for a file path including a query string. |
| 50 GURL GetFileUrlWithQuery(const FilePath& path, const std::string& query_string); |
| 51 |
| 49 // Simulates clicking at the center of the given tab asynchronously. | 52 // Simulates clicking at the center of the given tab asynchronously. |
| 50 void SimulateMouseClick(WebContents* web_contents); | 53 void SimulateMouseClick(WebContents* web_contents); |
| 51 | 54 |
| 52 // Simulates asynchronously a mouse enter/move/leave event. | 55 // Simulates asynchronously a mouse enter/move/leave event. |
| 53 void SimulateMouseEvent(WebContents* web_contents, | 56 void SimulateMouseEvent(WebContents* web_contents, |
| 54 WebKit::WebInputEvent::Type type, | 57 WebKit::WebInputEvent::Type type, |
| 55 const gfx::Point& point); | 58 const gfx::Point& point); |
| 56 | 59 |
| 57 // Sends a key press asynchronously. | 60 // Sends a key press asynchronously. |
| 58 void SimulateKeyPress(WebContents* web_contents, | 61 void SimulateKeyPress(WebContents* web_contents, |
| (...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 188 | 191 |
| 189 // If the python websocket server serves with TLS. | 192 // If the python websocket server serves with TLS. |
| 190 bool secure_; | 193 bool secure_; |
| 191 | 194 |
| 192 DISALLOW_COPY_AND_ASSIGN(TestWebSocketServer); | 195 DISALLOW_COPY_AND_ASSIGN(TestWebSocketServer); |
| 193 }; | 196 }; |
| 194 | 197 |
| 195 } // namespace content | 198 } // namespace content |
| 196 | 199 |
| 197 #endif // CONTENT_PUBLIC_TEST_BROWSER_TEST_UTILS_H_ | 200 #endif // CONTENT_PUBLIC_TEST_BROWSER_TEST_UTILS_H_ |
| OLD | NEW |