| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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/file_util.h" | 5 #include "base/file_util.h" |
| 6 #include "base/path_service.h" | 6 #include "base/path_service.h" |
| 7 #include "base/scoped_ptr.h" | 7 #include "base/scoped_ptr.h" |
| 8 #include "base/stl_util-inl.h" | 8 #include "base/stl_util-inl.h" |
| 9 #include "base/string_util.h" | 9 #include "base/string_util.h" |
| 10 #include "base/utf_string_conversions.h" | 10 #include "base/utf_string_conversions.h" |
| 11 #include "chrome/browser/profiles/profile_manager.h" | 11 #include "chrome/browser/profiles/profile_manager.h" |
| 12 #include "chrome/browser/history/history.h" | 12 #include "chrome/browser/history/history.h" |
| 13 #include "chrome/browser/renderer_host/site_instance.h" | |
| 14 #include "chrome/browser/renderer_host/test/test_render_view_host.h" | |
| 15 #include "chrome/browser/sessions/session_service.h" | 13 #include "chrome/browser/sessions/session_service.h" |
| 16 #include "chrome/browser/sessions/session_service_test_helper.h" | 14 #include "chrome/browser/sessions/session_service_test_helper.h" |
| 17 #include "chrome/browser/sessions/session_types.h" | 15 #include "chrome/browser/sessions/session_types.h" |
| 18 #include "chrome/browser/tab_contents/navigation_controller.h" | 16 #include "chrome/browser/tab_contents/navigation_controller.h" |
| 19 #include "chrome/browser/tab_contents/navigation_entry.h" | |
| 20 #include "chrome/browser/tab_contents/tab_contents.h" | |
| 21 #include "chrome/browser/tab_contents/tab_contents_delegate.h" | |
| 22 #include "chrome/browser/tab_contents/test_tab_contents.h" | |
| 23 #include "chrome/common/notification_registrar.h" | 17 #include "chrome/common/notification_registrar.h" |
| 24 #include "chrome/common/render_messages.h" | 18 #include "chrome/common/render_messages.h" |
| 25 #include "chrome/common/render_messages_params.h" | 19 #include "chrome/common/render_messages_params.h" |
| 26 #include "chrome/test/test_notification_tracker.h" | 20 #include "chrome/test/test_notification_tracker.h" |
| 21 #include "content/browser/renderer_host/test_render_view_host.h" |
| 22 #include "content/browser/site_instance.h" |
| 23 #include "content/browser/tab_contents/navigation_entry.h" |
| 24 #include "content/browser/tab_contents/tab_contents.h" |
| 25 #include "content/browser/tab_contents/tab_contents_delegate.h" |
| 26 #include "content/browser/tab_contents/test_tab_contents.h" |
| 27 #include "chrome/test/testing_profile.h" | 27 #include "chrome/test/testing_profile.h" |
| 28 #include "net/base/net_util.h" | 28 #include "net/base/net_util.h" |
| 29 #include "testing/gtest/include/gtest/gtest.h" | 29 #include "testing/gtest/include/gtest/gtest.h" |
| 30 #include "webkit/glue/webkit_glue.h" | 30 #include "webkit/glue/webkit_glue.h" |
| 31 | 31 |
| 32 using base::Time; | 32 using base::Time; |
| 33 | 33 |
| 34 // NavigationControllerTest ---------------------------------------------------- | 34 // NavigationControllerTest ---------------------------------------------------- |
| 35 | 35 |
| 36 class NavigationControllerTest : public RenderViewHostTestHarness { | 36 class NavigationControllerTest : public RenderViewHostTestHarness { |
| (...skipping 1979 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2016 TabNavigation nav(0, url0, GURL(), string16(), | 2016 TabNavigation nav(0, url0, GURL(), string16(), |
| 2017 webkit_glue::CreateHistoryStateForURL(url0), | 2017 webkit_glue::CreateHistoryStateForURL(url0), |
| 2018 PageTransition::LINK); | 2018 PageTransition::LINK); |
| 2019 session_helper_.AssertNavigationEquals(nav, | 2019 session_helper_.AssertNavigationEquals(nav, |
| 2020 windows_[0]->tabs[0]->navigations[0]); | 2020 windows_[0]->tabs[0]->navigations[0]); |
| 2021 nav.set_url(url2); | 2021 nav.set_url(url2); |
| 2022 session_helper_.AssertNavigationEquals(nav, | 2022 session_helper_.AssertNavigationEquals(nav, |
| 2023 windows_[0]->tabs[0]->navigations[1]); | 2023 windows_[0]->tabs[0]->navigations[1]); |
| 2024 } | 2024 } |
| 2025 */ | 2025 */ |
| OLD | NEW |