| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 "base/logging.h" | 5 #include "base/logging.h" |
| 6 #include "base/utf_string_conversions.h" | 6 #include "base/utf_string_conversions.h" |
| 7 #include "content/browser/mock_content_browser_client.h" | 7 #include "content/browser/mock_content_browser_client.h" |
| 8 #include "content/browser/renderer_host/render_view_host.h" | 8 #include "content/browser/renderer_host/render_view_host.h" |
| 9 #include "content/browser/renderer_host/render_widget_host_view.h" | |
| 10 #include "content/browser/renderer_host/test_render_view_host.h" | 9 #include "content/browser/renderer_host/test_render_view_host.h" |
| 11 #include "content/browser/site_instance_impl.h" | 10 #include "content/browser/site_instance_impl.h" |
| 12 #include "content/browser/tab_contents/interstitial_page_impl.h" | 11 #include "content/browser/tab_contents/interstitial_page_impl.h" |
| 13 #include "content/browser/tab_contents/navigation_entry_impl.h" | 12 #include "content/browser/tab_contents/navigation_entry_impl.h" |
| 14 #include "content/browser/tab_contents/test_tab_contents.h" | 13 #include "content/browser/tab_contents/test_tab_contents.h" |
| 15 #include "content/common/view_messages.h" | 14 #include "content/common/view_messages.h" |
| 16 #include "content/public/browser/interstitial_page_delegate.h" | 15 #include "content/public/browser/interstitial_page_delegate.h" |
| 17 #include "content/public/browser/navigation_details.h" | 16 #include "content/public/browser/navigation_details.h" |
| 18 #include "content/public/browser/notification_details.h" | 17 #include "content/public/browser/notification_details.h" |
| 19 #include "content/public/browser/notification_source.h" | 18 #include "content/public/browser/notification_source.h" |
| 20 #include "content/public/browser/notification_source.h" | 19 #include "content/public/browser/notification_source.h" |
| 20 #include "content/public/browser/render_widget_host_view.h" |
| 21 #include "content/public/browser/web_ui_controller.h" | 21 #include "content/public/browser/web_ui_controller.h" |
| 22 #include "content/public/browser/web_ui_controller_factory.h" | 22 #include "content/public/browser/web_ui_controller_factory.h" |
| 23 #include "content/public/common/bindings_policy.h" | 23 #include "content/public/common/bindings_policy.h" |
| 24 #include "content/public/common/content_constants.h" | 24 #include "content/public/common/content_constants.h" |
| 25 #include "content/public/common/url_constants.h" | 25 #include "content/public/common/url_constants.h" |
| 26 #include "content/test/test_browser_thread.h" | 26 #include "content/test/test_browser_thread.h" |
| 27 #include "testing/gtest/include/gtest/gtest.h" | 27 #include "testing/gtest/include/gtest/gtest.h" |
| 28 #include "webkit/glue/webkit_glue.h" | 28 #include "webkit/glue/webkit_glue.h" |
| 29 | 29 |
| 30 using content::BrowserContext; | 30 using content::BrowserContext; |
| (...skipping 1857 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1888 // It should have a transient entry. | 1888 // It should have a transient entry. |
| 1889 EXPECT_TRUE(other_controller.GetTransientEntry()); | 1889 EXPECT_TRUE(other_controller.GetTransientEntry()); |
| 1890 | 1890 |
| 1891 // And the interstitial should be showing. | 1891 // And the interstitial should be showing. |
| 1892 EXPECT_TRUE(other_contents->ShowingInterstitialPage()); | 1892 EXPECT_TRUE(other_contents->ShowingInterstitialPage()); |
| 1893 | 1893 |
| 1894 // And the interstitial should do a reload on don't proceed. | 1894 // And the interstitial should do a reload on don't proceed. |
| 1895 EXPECT_TRUE(static_cast<InterstitialPageImpl*>( | 1895 EXPECT_TRUE(static_cast<InterstitialPageImpl*>( |
| 1896 other_contents->GetInterstitialPage())->reload_on_dont_proceed()); | 1896 other_contents->GetInterstitialPage())->reload_on_dont_proceed()); |
| 1897 } | 1897 } |
| OLD | NEW |