OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 #include "content/public/test/javascript_test_observer.h" | 5 #include "content/public/test/javascript_test_observer.h" |
6 | 6 |
| 7 #include "base/message_loop/message_loop.h" |
7 #include "content/public/browser/notification_types.h" | 8 #include "content/public/browser/notification_types.h" |
8 #include "content/public/browser/render_view_host.h" | 9 #include "content/public/browser/render_view_host.h" |
9 #include "content/public/browser/web_contents.h" | 10 #include "content/public/browser/web_contents.h" |
10 #include "content/public/test/test_utils.h" | 11 #include "content/public/test/test_utils.h" |
11 | 12 |
12 namespace content { | 13 namespace content { |
13 | 14 |
14 TestMessageHandler::TestMessageHandler() : ok_(true) { | 15 TestMessageHandler::TestMessageHandler() : ok_(true) { |
15 } | 16 } |
16 | 17 |
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
82 | 83 |
83 void JavascriptTestObserver::EndTest() { | 84 void JavascriptTestObserver::EndTest() { |
84 finished_ = true; | 85 finished_ = true; |
85 if (running_) { | 86 if (running_) { |
86 running_ = false; | 87 running_ = false; |
87 base::MessageLoopForUI::current()->QuitWhenIdle(); | 88 base::MessageLoopForUI::current()->QuitWhenIdle(); |
88 } | 89 } |
89 } | 90 } |
90 | 91 |
91 } // namespace content | 92 } // namespace content |
OLD | NEW |