| 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/basictypes.h" | 5 #include "base/basictypes.h" |
| 6 #include "base/bind.h" | 6 #include "base/bind.h" |
| 7 #include "base/file_util.h" | 7 #include "base/file_util.h" |
| 8 #include "base/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
| 9 #include "base/path_service.h" | 9 #include "base/path_service.h" |
| 10 #include "base/stl_util.h" | 10 #include "base/stl_util.h" |
| (...skipping 3190 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3201 const GURL url2; | 3201 const GURL url2; |
| 3202 | 3202 |
| 3203 std::vector<SessionWindow*> windows_; | 3203 std::vector<SessionWindow*> windows_; |
| 3204 | 3204 |
| 3205 SessionID window_id; | 3205 SessionID window_id; |
| 3206 | 3206 |
| 3207 SessionServiceTestHelper session_helper_; | 3207 SessionServiceTestHelper session_helper_; |
| 3208 | 3208 |
| 3209 private: | 3209 private: |
| 3210 ProfileManager* profile_manager_; | 3210 ProfileManager* profile_manager_; |
| 3211 FilePath test_dir_; | 3211 base::FilePath test_dir_; |
| 3212 }; | 3212 }; |
| 3213 | 3213 |
| 3214 // A basic test case. Navigates to a single url, and make sure the history | 3214 // A basic test case. Navigates to a single url, and make sure the history |
| 3215 // db matches. | 3215 // db matches. |
| 3216 TEST_F(NavigationControllerHistoryTest, Basic) { | 3216 TEST_F(NavigationControllerHistoryTest, Basic) { |
| 3217 NavigationControllerImpl& controller = controller_impl(); | 3217 NavigationControllerImpl& controller = controller_impl(); |
| 3218 controller.LoadURL(url0, GURL(), PAGE_TRANSITION_LINK); | 3218 controller.LoadURL(url0, GURL(), PAGE_TRANSITION_LINK); |
| 3219 test_rvh()->SendNavigate(0, url0); | 3219 test_rvh()->SendNavigate(0, url0); |
| 3220 | 3220 |
| 3221 GetLastSession(); | 3221 GetLastSession(); |
| (...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3285 PAGE_TRANSITION_LINK); | 3285 PAGE_TRANSITION_LINK); |
| 3286 session_helper_.AssertNavigationEquals(nav, | 3286 session_helper_.AssertNavigationEquals(nav, |
| 3287 windows_[0]->tabs[0]->navigations[0]); | 3287 windows_[0]->tabs[0]->navigations[0]); |
| 3288 nav.set_url(url2); | 3288 nav.set_url(url2); |
| 3289 session_helper_.AssertNavigationEquals(nav, | 3289 session_helper_.AssertNavigationEquals(nav, |
| 3290 windows_[0]->tabs[0]->navigations[1]); | 3290 windows_[0]->tabs[0]->navigations[1]); |
| 3291 } | 3291 } |
| 3292 */ | 3292 */ |
| 3293 | 3293 |
| 3294 } // namespace content | 3294 } // namespace content |
| OLD | NEW |