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

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

Issue 10828245: Final set of conversions of automation calls to the JSON interface. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 4 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 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 123 matching lines...) Expand 10 before | Expand all | Expand 10 after
134 // causes a test failure and returns 0. 134 // causes a test failure and returns 0.
135 int GetTabCount(); 135 int GetTabCount();
136 136
137 // Same as GetTabCount(), except with the window at the given index. 137 // Same as GetTabCount(), except with the window at the given index.
138 int GetTabCount(int window_index); 138 int GetTabCount(int window_index);
139 139
140 // Polls up to kWaitForActionMaxMsec ms to attain a specific tab count. Will 140 // Polls up to kWaitForActionMaxMsec ms to attain a specific tab count. Will
141 // assert that the tab count is valid at the end of the wait. 141 // assert that the tab count is valid at the end of the wait.
142 void WaitUntilTabCount(int tab_count); 142 void WaitUntilTabCount(int tab_count);
143 143
144 // Waits until the Bookmark bar has stopped animating and become fully visible
145 // (if |wait_for_open| is true) or fully hidden (if |wait_for_open| is false).
146 // This function can time out (in which case it returns false).
147 bool WaitForBookmarkBarVisibilityChange(BrowserProxy* browser,
148 bool wait_for_open);
149
150 // Closes the specified browser. Returns true if the browser was closed. 144 // Closes the specified browser. Returns true if the browser was closed.
151 // This call is blocking. |application_closed| is set to true if this was 145 // This call is blocking. |application_closed| is set to true if this was
152 // the last browser window (and therefore as a result of it closing the 146 // the last browser window (and therefore as a result of it closing the
153 // browser process terminated). Note that in that case this method returns 147 // browser process terminated). Note that in that case this method returns
154 // after the browser process has terminated. 148 // after the browser process has terminated.
155 bool CloseBrowser(BrowserProxy* browser, bool* application_closed) const; 149 bool CloseBrowser(BrowserProxy* browser, bool* application_closed) const;
156 150
157 // Gets the executable file path of the Chrome browser process. 151 // Gets the executable file path of the Chrome browser process.
158 const FilePath::CharType* GetExecutablePath(); 152 const FilePath::CharType* GetExecutablePath();
159 153
(...skipping 286 matching lines...) Expand 10 before | Expand all | Expand 10 after
446 #ifdef UNIT_TEST 440 #ifdef UNIT_TEST
447 std::ostream& operator<<(std::ostream& out, const std::wstring& wstr); 441 std::ostream& operator<<(std::ostream& out, const std::wstring& wstr);
448 442
449 template<typename T> 443 template<typename T>
450 std::ostream& operator<<(std::ostream& out, const ::scoped_ptr<T>& ptr) { 444 std::ostream& operator<<(std::ostream& out, const ::scoped_ptr<T>& ptr) {
451 return out << ptr.get(); 445 return out << ptr.get();
452 } 446 }
453 #endif // UNIT_TEST 447 #endif // UNIT_TEST
454 448
455 #endif // CHROME_TEST_UI_UI_TEST_H_ 449 #endif // CHROME_TEST_UI_UI_TEST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698