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

Side by Side Diff: chrome/test/ui/ui_test.h

Issue 115740: Move download shelf from per-tab to per-window (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: '' Created 11 years, 6 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
« no previous file with comments | « chrome/test/test_browser_window.h ('k') | chrome/test/ui/ui_test.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 154 matching lines...) Expand 10 before | Expand all | Expand 10 after
165 bool WaitUntilJavaScriptCondition(TabProxy* tab, 165 bool WaitUntilJavaScriptCondition(TabProxy* tab,
166 const std::wstring& frame_xpath, 166 const std::wstring& frame_xpath,
167 const std::wstring& jscript, 167 const std::wstring& jscript,
168 int interval_ms, 168 int interval_ms,
169 int time_out_ms); 169 int time_out_ms);
170 170
171 // Polls up to kWaitForActionMaxMsec ms to attain a specific tab count. Will 171 // Polls up to kWaitForActionMaxMsec ms to attain a specific tab count. Will
172 // assert that the tab count is valid at the end of the wait. 172 // assert that the tab count is valid at the end of the wait.
173 void WaitUntilTabCount(int tab_count); 173 void WaitUntilTabCount(int tab_count);
174 174
175 // Checks whether the download shelf is visible in the current tab, giving it 175 // Checks whether the download shelf is visible in the current browser, giving
176 // a chance to appear (we don't know the exact timing) while finishing as soon 176 // it a chance to appear (we don't know the exact timing) while finishing as
177 // as possible. 177 // soon as possible.
178 bool WaitForDownloadShelfVisible(TabProxy* tab); 178 bool WaitForDownloadShelfVisible(BrowserProxy* browser);
179
180 // Checks whether the download shelf is invisible in the current browser,
181 // giving it a chance to appear (we don't know the exact timing) while
182 // finishing as soon as possible.
183 bool WaitForDownloadShelfInvisible(BrowserProxy* browser);
184
185 private:
186 // Waits for download shelf visibility or invisibility.
187 bool WaitForDownloadShelfVisibilityChange(BrowserProxy* browser,
188 bool wait_for_open);
189
190 public:
179 191
180 // Waits until the Find window has become fully visible (if |wait_for_open| is 192 // Waits until the Find window has become fully visible (if |wait_for_open| is
181 // true) or fully hidden (if |wait_for_open| is false). This function can time 193 // true) or fully hidden (if |wait_for_open| is false). This function can time
182 // out (return false) if the window doesn't appear within a specific time. 194 // out (return false) if the window doesn't appear within a specific time.
183 bool WaitForFindWindowVisibilityChange(BrowserProxy* browser, 195 bool WaitForFindWindowVisibilityChange(BrowserProxy* browser,
184 bool wait_for_open); 196 bool wait_for_open);
185 197
186 // Waits until the Bookmark bar has stopped animating and become fully visible 198 // Waits until the Bookmark bar has stopped animating and become fully visible
187 // (if |wait_for_open| is true) or fully hidden (if |wait_for_open| is false). 199 // (if |wait_for_open| is true) or fully hidden (if |wait_for_open| is false).
188 // This function can time out (in which case it returns false). 200 // This function can time out (in which case it returns false).
(...skipping 311 matching lines...) Expand 10 before | Expand all | Expand 10 after
500 #ifdef UNIT_TEST 512 #ifdef UNIT_TEST
501 std::ostream& operator<<(std::ostream& out, const std::wstring& wstr); 513 std::ostream& operator<<(std::ostream& out, const std::wstring& wstr);
502 514
503 template<typename T> 515 template<typename T>
504 std::ostream& operator<<(std::ostream& out, const ::scoped_ptr<T>& ptr) { 516 std::ostream& operator<<(std::ostream& out, const ::scoped_ptr<T>& ptr) {
505 return out << ptr.get(); 517 return out << ptr.get();
506 } 518 }
507 #endif // UNIT_TEST 519 #endif // UNIT_TEST
508 520
509 #endif // CHROME_TEST_UI_UI_TEST_H_ 521 #endif // CHROME_TEST_UI_UI_TEST_H_
OLDNEW
« no previous file with comments | « chrome/test/test_browser_window.h ('k') | chrome/test/ui/ui_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698