OLD | NEW |
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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_UI_TEST_H_ | 5 #ifndef CHROME_TEST_UI_UI_TEST_H_ |
6 #define CHROME_TEST_UI_UI_TEST_H_ | 6 #define CHROME_TEST_UI_UI_TEST_H_ |
7 | 7 |
8 // This file provides a common base for running UI unit tests, which operate | 8 // This file provides a common base for running UI unit tests, which operate |
9 // the entire browser application in a separate process for holistic | 9 // the entire browser application in a separate process for holistic |
10 // functional testing. | 10 // functional testing. |
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
120 // Checks whether the download shelf is visible in the current tab, giving it | 120 // Checks whether the download shelf is visible in the current tab, giving it |
121 // a chance to appear (we don't know the exact timing) while finishing as soon | 121 // a chance to appear (we don't know the exact timing) while finishing as soon |
122 // as possible. | 122 // as possible. |
123 bool WaitForDownloadShelfVisible(TabProxy* tab); | 123 bool WaitForDownloadShelfVisible(TabProxy* tab); |
124 | 124 |
125 // Waits until the Find window has become fully visible (and stopped | 125 // Waits until the Find window has become fully visible (and stopped |
126 // animating) in the specified tab. This function can time out (return false) | 126 // animating) in the specified tab. This function can time out (return false) |
127 // if the window doesn't appear within a specific time. | 127 // if the window doesn't appear within a specific time. |
128 bool WaitForFindWindowFullyVisible(TabProxy* tab); | 128 bool WaitForFindWindowFullyVisible(TabProxy* tab); |
129 | 129 |
| 130 // Waits until the Bookmark bar has stopped animating and become fully visible |
| 131 // (if |wait_for_open| is true) or fully hidden (if |wait_for_open| is false). |
| 132 // This function can time out (in which case it returns false). |
| 133 bool WaitForBookmarkBarVisibilityChange(BrowserProxy* browser, |
| 134 bool wait_for_open); |
| 135 |
130 // Closes the specified browser. Returns true if the browser was closed. | 136 // Closes the specified browser. Returns true if the browser was closed. |
131 // This call is blocking. |application_closed| is set to true if this was | 137 // This call is blocking. |application_closed| is set to true if this was |
132 // the last browser window (and therefore as a result of it closing the | 138 // the last browser window (and therefore as a result of it closing the |
133 // browser process terminated). Note that in that case this method returns | 139 // browser process terminated). Note that in that case this method returns |
134 // after the browser process has terminated. | 140 // after the browser process has terminated. |
135 bool CloseBrowser(BrowserProxy* browser, bool* application_closed) const; | 141 bool CloseBrowser(BrowserProxy* browser, bool* application_closed) const; |
136 | 142 |
137 // Prints numerical information to stdout in a controlled format, for | 143 // Prints numerical information to stdout in a controlled format, for |
138 // post-processing. |measurement| is a description of the quantity being | 144 // post-processing. |measurement| is a description of the quantity being |
139 // measured, e.g. "vm_peak"; |modifier| is provided as a convenience and | 145 // measured, e.g. "vm_peak"; |modifier| is provided as a convenience and |
(...skipping 204 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
344 #ifdef UNIT_TEST | 350 #ifdef UNIT_TEST |
345 std::ostream& operator<<(std::ostream& out, const std::wstring& wstr); | 351 std::ostream& operator<<(std::ostream& out, const std::wstring& wstr); |
346 | 352 |
347 template<typename T> | 353 template<typename T> |
348 std::ostream& operator<<(std::ostream& out, const ::scoped_ptr<T>& ptr) { | 354 std::ostream& operator<<(std::ostream& out, const ::scoped_ptr<T>& ptr) { |
349 return out << ptr.get(); | 355 return out << ptr.get(); |
350 } | 356 } |
351 #endif // UNIT_TEST | 357 #endif // UNIT_TEST |
352 | 358 |
353 #endif // CHROME_TEST_UI_UI_TEST_H_ | 359 #endif // CHROME_TEST_UI_UI_TEST_H_ |
OLD | NEW |