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

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

Issue 2427423003: Fix incorrect DCHECK in task manager's WebContentsEntry. (Closed)
Patch Set: Add test Created 3 years, 7 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
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 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
105 // If WebContent's view is currently being resized, this will wait for the ack 105 // If WebContent's view is currently being resized, this will wait for the ack
106 // from the renderer that the resize is complete and for the 106 // from the renderer that the resize is complete and for the
107 // WindowEventDispatcher to release the pointer moves. If there's no resize in 107 // WindowEventDispatcher to release the pointer moves. If there's no resize in
108 // progress, the method will return right away. 108 // progress, the method will return right away.
109 void WaitForResizeComplete(WebContents* web_contents); 109 void WaitForResizeComplete(WebContents* web_contents);
110 #endif // defined(USE_AURA) || defined(OS_ANDROID) 110 #endif // defined(USE_AURA) || defined(OS_ANDROID)
111 111
112 // Causes the specified web_contents to crash. Blocks until it is crashed. 112 // Causes the specified web_contents to crash. Blocks until it is crashed.
113 void CrashTab(WebContents* web_contents); 113 void CrashTab(WebContents* web_contents);
114 114
115 // Causes the specified web_contents to issue an OnUnresponsiveRenderer event
116 // to its observers.
117 void SimulateUnresponsiveRenderer(WebContents* web_contents,
118 RenderWidgetHost* widget);
119
115 // Simulates clicking at the center of the given tab asynchronously; modifiers 120 // Simulates clicking at the center of the given tab asynchronously; modifiers
116 // may contain bits from WebInputEvent::Modifiers. 121 // may contain bits from WebInputEvent::Modifiers.
117 void SimulateMouseClick(WebContents* web_contents, 122 void SimulateMouseClick(WebContents* web_contents,
118 int modifiers, 123 int modifiers,
119 blink::WebMouseEvent::Button button); 124 blink::WebMouseEvent::Button button);
120 125
121 // Simulates clicking at the point |point| of the given tab asynchronously; 126 // Simulates clicking at the point |point| of the given tab asynchronously;
122 // modifiers may contain bits from WebInputEvent::Modifiers. 127 // modifiers may contain bits from WebInputEvent::Modifiers.
123 void SimulateMouseClickAt(WebContents* web_contents, 128 void SimulateMouseClickAt(WebContents* web_contents,
124 int modifiers, 129 int modifiers,
(...skipping 712 matching lines...) Expand 10 before | Expand all | Expand 10 after
837 842
838 private: 843 private:
839 PwnMessageHelper(); // Not instantiable. 844 PwnMessageHelper(); // Not instantiable.
840 845
841 DISALLOW_COPY_AND_ASSIGN(PwnMessageHelper); 846 DISALLOW_COPY_AND_ASSIGN(PwnMessageHelper);
842 }; 847 };
843 848
844 } // namespace content 849 } // namespace content
845 850
846 #endif // CONTENT_PUBLIC_TEST_BROWSER_TEST_UTILS_H_ 851 #endif // CONTENT_PUBLIC_TEST_BROWSER_TEST_UTILS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698