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

Unified Diff: content/public/test/browser_test_utils.cc

Issue 16831021: Convert asynchronous closure test in cr.ui framework to a browser test. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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 side-by-side diff with in-line comments
Download patch
Index: content/public/test/browser_test_utils.cc
diff --git a/content/public/test/browser_test_utils.cc b/content/public/test/browser_test_utils.cc
index b7db17d055591c3e5ba6607ecd490f34cdf4b86c..744579ba7760bd6ffbb50e7982e4950f5e77a991 100644
--- a/content/public/test/browser_test_utils.cc
+++ b/content/public/test/browser_test_utils.cc
@@ -504,8 +504,10 @@ bool DOMMessageQueue::WaitForMessage(std::string* message) {
// The queue should not be empty, unless we were quit because of a timeout.
if (message_queue_.empty())
return false;
- if (message)
+ if (message) {
*message = message_queue_.front();
+ message_queue_.pop();
sky 2013/06/20 23:26:26 Should the pop happen regardless of message being
kevers 2013/06/21 13:45:40 Good catch. Fixed.
+ }
return true;
}

Powered by Google App Engine
This is Rietveld 408576698