| 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/utf_string_conversions.h" | 5 #include "base/utf_string_conversions.h" |
| 6 #include "content/browser/browser_thread_impl.h" | 6 #include "content/browser/browser_thread_impl.h" |
| 7 #include "content/browser/browser_url_handler.h" | |
| 8 #include "content/browser/mock_content_browser_client.h" | 7 #include "content/browser/mock_content_browser_client.h" |
| 9 #include "content/browser/renderer_host/test_render_view_host.h" | 8 #include "content/browser/renderer_host/test_render_view_host.h" |
| 10 #include "content/browser/site_instance_impl.h" | 9 #include "content/browser/site_instance_impl.h" |
| 11 #include "content/browser/tab_contents/navigation_controller_impl.h" | 10 #include "content/browser/tab_contents/navigation_controller_impl.h" |
| 12 #include "content/browser/tab_contents/navigation_entry_impl.h" | 11 #include "content/browser/tab_contents/navigation_entry_impl.h" |
| 13 #include "content/browser/tab_contents/render_view_host_manager.h" | 12 #include "content/browser/tab_contents/render_view_host_manager.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/test_url_constants.h" | 14 #include "content/common/test_url_constants.h" |
| 16 #include "content/common/view_messages.h" | 15 #include "content/common/view_messages.h" |
| 17 #include "content/public/browser/notification_details.h" | 16 #include "content/public/browser/notification_details.h" |
| (...skipping 759 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 777 | 776 |
| 778 // We should be able to navigate forward. | 777 // We should be able to navigate forward. |
| 779 contents()->GetController().GoForward(); | 778 contents()->GetController().GoForward(); |
| 780 contents()->ProceedWithCrossSiteNavigation(); | 779 contents()->ProceedWithCrossSiteNavigation(); |
| 781 const NavigationEntry* entry2 = contents()->GetController().GetPendingEntry(); | 780 const NavigationEntry* entry2 = contents()->GetController().GetPendingEntry(); |
| 782 rvh2->SendNavigate(entry2->GetPageID(), entry2->GetURL()); | 781 rvh2->SendNavigate(entry2->GetPageID(), entry2->GetURL()); |
| 783 EXPECT_EQ(rvh2, rvh()); | 782 EXPECT_EQ(rvh2, rvh()); |
| 784 EXPECT_FALSE(rvh2->is_swapped_out()); | 783 EXPECT_FALSE(rvh2->is_swapped_out()); |
| 785 EXPECT_TRUE(rvh1->is_swapped_out()); | 784 EXPECT_TRUE(rvh1->is_swapped_out()); |
| 786 } | 785 } |
| OLD | NEW |