| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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/stl_util-inl.h" |
| 7 #include "base/string_util.h" | 8 #include "base/string_util.h" |
| 8 #include "chrome/browser/profile_manager.h" | 9 #include "chrome/browser/profile_manager.h" |
| 9 #include "chrome/browser/history/history.h" | 10 #include "chrome/browser/history/history.h" |
| 10 #include "chrome/browser/renderer_host/test_render_view_host.h" | 11 #include "chrome/browser/renderer_host/test_render_view_host.h" |
| 11 #include "chrome/browser/sessions/session_service.h" | 12 #include "chrome/browser/sessions/session_service.h" |
| 12 #include "chrome/browser/sessions/session_service_test_helper.h" | 13 #include "chrome/browser/sessions/session_service_test_helper.h" |
| 13 #include "chrome/browser/sessions/session_types.h" | 14 #include "chrome/browser/sessions/session_types.h" |
| 14 #include "chrome/browser/tab_contents/navigation_controller.h" | 15 #include "chrome/browser/tab_contents/navigation_controller.h" |
| 15 #include "chrome/browser/tab_contents/navigation_entry.h" | 16 #include "chrome/browser/tab_contents/navigation_entry.h" |
| 16 #include "chrome/browser/tab_contents/tab_contents.h" | 17 #include "chrome/browser/tab_contents/tab_contents.h" |
| 17 #include "chrome/browser/tab_contents/tab_contents_delegate.h" | 18 #include "chrome/browser/tab_contents/tab_contents_delegate.h" |
| 18 #include "chrome/common/notification_registrar.h" | 19 #include "chrome/common/notification_registrar.h" |
| 19 #include "chrome/common/notification_service.h" | 20 #include "chrome/common/notification_service.h" |
| 20 #include "chrome/common/render_messages.h" | 21 #include "chrome/common/render_messages.h" |
| 21 #include "chrome/common/stl_util-inl.h" | |
| 22 #include "chrome/test/test_notification_tracker.h" | 22 #include "chrome/test/test_notification_tracker.h" |
| 23 #include "chrome/test/testing_profile.h" | 23 #include "chrome/test/testing_profile.h" |
| 24 #include "net/base/net_util.h" | 24 #include "net/base/net_util.h" |
| 25 #include "testing/gtest/include/gtest/gtest.h" | 25 #include "testing/gtest/include/gtest/gtest.h" |
| 26 #include "webkit/glue/webkit_glue.h" | 26 #include "webkit/glue/webkit_glue.h" |
| 27 | 27 |
| 28 using base::Time; | 28 using base::Time; |
| 29 | 29 |
| 30 namespace { | 30 namespace { |
| 31 | 31 |
| (...skipping 1382 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1414 TabNavigation nav(0, url0, GURL(), string16(), | 1414 TabNavigation nav(0, url0, GURL(), string16(), |
| 1415 webkit_glue::CreateHistoryStateForURL(url0), | 1415 webkit_glue::CreateHistoryStateForURL(url0), |
| 1416 PageTransition::LINK); | 1416 PageTransition::LINK); |
| 1417 session_helper_.AssertNavigationEquals(nav, | 1417 session_helper_.AssertNavigationEquals(nav, |
| 1418 windows_[0]->tabs[0]->navigations[0]); | 1418 windows_[0]->tabs[0]->navigations[0]); |
| 1419 nav.set_url(url2); | 1419 nav.set_url(url2); |
| 1420 session_helper_.AssertNavigationEquals(nav, | 1420 session_helper_.AssertNavigationEquals(nav, |
| 1421 windows_[0]->tabs[0]->navigations[1]); | 1421 windows_[0]->tabs[0]->navigations[1]); |
| 1422 } | 1422 } |
| 1423 */ | 1423 */ |
| OLD | NEW |