OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 "chrome/test/base/test_html_dialog_observer.h" | 5 #include "chrome/test/base/test_html_dialog_observer.h" |
6 | 6 |
7 #include "chrome/common/chrome_notification_types.h" | 7 #include "chrome/common/chrome_notification_types.h" |
8 #include "content/test/js_injection_ready_observer.h" | 8 #include "content/test/js_injection_ready_observer.h" |
9 #include "chrome/test/base/ui_test_utils.h" | 9 #include "chrome/test/base/ui_test_utils.h" |
10 #include "content/public/browser/notification_service.h" | 10 #include "content/public/browser/notification_service.h" |
11 #include "content/browser/webui/web_ui.h" | 11 #include "content/browser/webui/web_ui_impl.h" |
12 #include "content/public/browser/navigation_controller.h" | 12 #include "content/public/browser/navigation_controller.h" |
13 #include "content/public/browser/notification_details.h" | 13 #include "content/public/browser/notification_details.h" |
14 #include "content/public/browser/notification_source.h" | 14 #include "content/public/browser/notification_source.h" |
15 #include "content/public/browser/notification_types.h" | 15 #include "content/public/browser/notification_types.h" |
16 #include "content/public/browser/web_contents.h" | 16 #include "content/public/browser/web_contents.h" |
17 | 17 |
18 using content::NavigationController; | 18 using content::NavigationController; |
19 | 19 |
20 TestHtmlDialogObserver::TestHtmlDialogObserver( | 20 TestHtmlDialogObserver::TestHtmlDialogObserver( |
21 JsInjectionReadyObserver* js_injection_ready_observer) | 21 JsInjectionReadyObserver* js_injection_ready_observer) |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
70 } | 70 } |
71 | 71 |
72 content::WebUI* TestHtmlDialogObserver::GetWebUI() { | 72 content::WebUI* TestHtmlDialogObserver::GetWebUI() { |
73 if (!done_) { | 73 if (!done_) { |
74 EXPECT_FALSE(running_); | 74 EXPECT_FALSE(running_); |
75 running_ = true; | 75 running_ = true; |
76 ui_test_utils::RunMessageLoop(); | 76 ui_test_utils::RunMessageLoop(); |
77 } | 77 } |
78 return web_ui_; | 78 return web_ui_; |
79 } | 79 } |
OLD | NEW |