| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 #import "ios/web/public/test/test_navigation_manager.h" | 5 #import "ios/web/public/test/test_navigation_manager.h" |
| 6 | 6 |
| 7 namespace web { | 7 namespace web { |
| 8 | 8 |
| 9 TestNavigationManager::TestNavigationManager() {} | 9 TestNavigationManager::TestNavigationManager() {} |
| 10 | 10 |
| 11 TestNavigationManager::~TestNavigationManager() {} | 11 TestNavigationManager::~TestNavigationManager() {} |
| 12 | 12 |
| 13 BrowserState* TestNavigationManager::GetBrowserState() const { | 13 BrowserState* TestNavigationManager::GetBrowserState() const { |
| 14 NOTREACHED(); | 14 NOTREACHED(); |
| 15 return nullptr; | 15 return nullptr; |
| 16 } | 16 } |
| 17 | 17 |
| 18 WebState* TestNavigationManager::GetWebState() const { | 18 WebState* TestNavigationManager::GetWebState() const { |
| 19 NOTREACHED(); | 19 NOTREACHED(); |
| 20 return nullptr; | 20 return nullptr; |
| 21 } | 21 } |
| 22 | 22 |
| 23 NavigationItem* TestNavigationManager::GetVisibleItem() const { | 23 NavigationItem* TestNavigationManager::GetVisibleItem() const { |
| 24 NOTREACHED(); | 24 return visible_item_; |
| 25 return nullptr; | 25 } |
| 26 |
| 27 void TestNavigationManager::SetVisibleItem(NavigationItem* item) { |
| 28 visible_item_ = item; |
| 26 } | 29 } |
| 27 | 30 |
| 28 NavigationItem* TestNavigationManager::GetLastCommittedItem() const { | 31 NavigationItem* TestNavigationManager::GetLastCommittedItem() const { |
| 29 return last_committed_item_; | 32 return last_committed_item_; |
| 30 } | 33 } |
| 31 | 34 |
| 32 void TestNavigationManager::SetLastCommittedItem(NavigationItem* item) { | 35 void TestNavigationManager::SetLastCommittedItem(NavigationItem* item) { |
| 33 last_committed_item_ = item; | 36 last_committed_item_ = item; |
| 34 } | 37 } |
| 35 | 38 |
| (...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 127 NOTREACHED(); | 130 NOTREACHED(); |
| 128 return; | 131 return; |
| 129 } | 132 } |
| 130 | 133 |
| 131 void TestNavigationManager::Reload(bool check_for_repost) { | 134 void TestNavigationManager::Reload(bool check_for_repost) { |
| 132 NOTREACHED(); | 135 NOTREACHED(); |
| 133 return; | 136 return; |
| 134 } | 137 } |
| 135 | 138 |
| 136 } // namespace web | 139 } // namespace web |
| OLD | NEW |