OLD | NEW |
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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 CHROME_TEST_UI_TEST_UTILS_H_ | 5 #ifndef CHROME_TEST_UI_TEST_UTILS_H_ |
6 #define CHROME_TEST_UI_TEST_UTILS_H_ | 6 #define CHROME_TEST_UI_TEST_UTILS_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
97 | 97 |
98 // Creates an observer that waits for |download_manager| to report that it | 98 // Creates an observer that waits for |download_manager| to report that it |
99 // has a total of |count| downloads that have been handles | 99 // has a total of |count| downloads that have been handles |
100 void WaitForDownloadCount(DownloadManager* download_manager, size_t count); | 100 void WaitForDownloadCount(DownloadManager* download_manager, size_t count); |
101 | 101 |
102 // Blocks until an application modal dialog is showns and returns it. | 102 // Blocks until an application modal dialog is showns and returns it. |
103 AppModalDialog* WaitForAppModalDialog(); | 103 AppModalDialog* WaitForAppModalDialog(); |
104 | 104 |
105 // Causes the specified tab to crash. Blocks until it is crashed. | 105 // Causes the specified tab to crash. Blocks until it is crashed. |
106 void CrashTab(TabContents* tab); | 106 void CrashTab(TabContents* tab); |
| 107 |
| 108 // Waits for the focus to change in the specified RenderViewHost. |
| 109 void WaitForFocusChange(RenderViewHost* rvh); |
| 110 |
| 111 // Waits for the renderer to return focus to the browser (happens through tab |
| 112 // traversal). |
| 113 void WaitForFocusInBrowser(Browser* browser); |
107 } | 114 } |
108 | 115 |
109 #endif // CHROME_TEST_UI_TEST_UTILS_H_ | 116 #endif // CHROME_TEST_UI_TEST_UTILS_H_ |
OLD | NEW |