Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(424)

Side by Side Diff: content/public/test/browser_test_utils.h

Issue 11235048: Test suite that monitors the disposition of JS-created windows based on what (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Clean up html Created 8 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 <queue> 8 #include <queue>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 54
55 // Waits for a load stop for the specified |web_contents|'s controller, if the 55 // Waits for a load stop for the specified |web_contents|'s controller, if the
56 // tab is currently web_contents. Otherwise returns immediately. 56 // tab is currently web_contents. Otherwise returns immediately.
57 void WaitForLoadStop(WebContents* web_contents); 57 void WaitForLoadStop(WebContents* web_contents);
58 58
59 // Causes the specified web_contents to crash. Blocks until it is crashed. 59 // Causes the specified web_contents to crash. Blocks until it is crashed.
60 void CrashTab(WebContents* web_contents); 60 void CrashTab(WebContents* web_contents);
61 61
62 // Simulates clicking at the center of the given tab asynchronously. 62 // Simulates clicking at the center of the given tab asynchronously.
63 void SimulateMouseClick(WebContents* web_contents); 63 void SimulateMouseClick(WebContents* web_contents);
64 // Simulates clicking at the center of the given tab asynchronously; modifiers
65 // may contain bits from WebInputEvent::Modifiers.
66 void SimulateModifiedMouseClick(WebContents* web_contents, int modifiers,
sky 2012/10/23 00:53:38 each param on its own line. The name of this shoul
ericu 2012/10/23 18:05:33 Done.
67 WebKit::WebMouseEvent::Button button);
64 68
65 // Simulates asynchronously a mouse enter/move/leave event. 69 // Simulates asynchronously a mouse enter/move/leave event.
66 void SimulateMouseEvent(WebContents* web_contents, 70 void SimulateMouseEvent(WebContents* web_contents,
67 WebKit::WebInputEvent::Type type, 71 WebKit::WebInputEvent::Type type,
68 const gfx::Point& point); 72 const gfx::Point& point);
69 73
70 // Sends a key press asynchronously. 74 // Sends a key press asynchronously.
71 void SimulateKeyPress(WebContents* web_contents, 75 void SimulateKeyPress(WebContents* web_contents,
72 ui::KeyboardCode key, 76 ui::KeyboardCode key,
73 bool control, 77 bool control,
(...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after
240 std::queue<std::string> message_queue_; 244 std::queue<std::string> message_queue_;
241 bool waiting_for_message_; 245 bool waiting_for_message_;
242 scoped_refptr<MessageLoopRunner> message_loop_runner_; 246 scoped_refptr<MessageLoopRunner> message_loop_runner_;
243 247
244 DISALLOW_COPY_AND_ASSIGN(DOMMessageQueue); 248 DISALLOW_COPY_AND_ASSIGN(DOMMessageQueue);
245 }; 249 };
246 250
247 } // namespace content 251 } // namespace content
248 252
249 #endif // CONTENT_PUBLIC_TEST_BROWSER_TEST_UTILS_H_ 253 #endif // CONTENT_PUBLIC_TEST_BROWSER_TEST_UTILS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698