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

Unified Diff: chrome/test/base/ui_test_utils.cc

Issue 12211139: Phase out BrowserList::empty() and BrowserList::size(). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix chromeos Created 7 years, 10 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/test/base/in_process_browser_test.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/base/ui_test_utils.cc
diff --git a/chrome/test/base/ui_test_utils.cc b/chrome/test/base/ui_test_utils.cc
index 29b52362f8f493f671b388be5a1bc9a8ed7266f0..e0a1a880da10c0e0489d0cad8aec130370f687cf 100644
--- a/chrome/test/base/ui_test_utils.cc
+++ b/chrome/test/base/ui_test_utils.cc
@@ -530,7 +530,7 @@ BrowserAddedObserver::~BrowserAddedObserver() {
Browser* BrowserAddedObserver::WaitForSingleNewBrowser() {
notification_observer_.Wait();
// Ensure that only a single new browser has appeared.
- EXPECT_EQ(original_browsers_.size() + 1, BrowserList::size());
+ EXPECT_EQ(original_browsers_.size() + 1, chrome::GetTotalBrowserCount());
return GetBrowserNotInSet(original_browsers_);
}
« no previous file with comments | « chrome/test/base/in_process_browser_test.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698