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

Unified Diff: content/public/test/test_utils.h

Issue 11867023: content: remove NOTIFICATION_SAVE_PACKAGE_SUCCESSFULLY_FINISHED (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 11 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 | « content/public/browser/notification_types.h ('k') | content/public/test/test_utils.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/test/test_utils.h
diff --git a/content/public/test/test_utils.h b/content/public/test/test_utils.h
index 8cba71736f8d59aa39c1352bd7d9c4fdaea26bdd..16b333eeed4ad8a63ef15cc40818ad5163211678 100644
--- a/content/public/test/test_utils.h
+++ b/content/public/test/test_utils.h
@@ -63,7 +63,8 @@ class MessageLoopRunner : public base::RefCounted<MessageLoopRunner> {
public:
MessageLoopRunner();
- // Run the current MessageLoop.
+ // Run the current MessageLoop unless the quit closure
+ // has already been called.
void Run();
// Quit the matching call to Run (nested MessageLoops are unaffected).
@@ -80,6 +81,12 @@ class MessageLoopRunner : public base::RefCounted<MessageLoopRunner> {
friend class base::RefCounted<MessageLoopRunner>;
~MessageLoopRunner();
+ // True when the message loop is running.
+ bool loop_running_;
+
+ // True after closure returned by |QuitClosure| has been called.
+ bool quit_closure_called_;
+
base::RunLoop run_loop_;
DISALLOW_COPY_AND_ASSIGN(MessageLoopRunner);
« no previous file with comments | « content/public/browser/notification_types.h ('k') | content/public/test/test_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698