| 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);
|
|
|