Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(372)

Unified Diff: ios/web/public/test/test_navigation_manager.mm

Issue 2606873002: Move the offline URL trimming to GetFormattedURL. (Closed)
Patch Set: fix DEPS Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ios/web/public/test/test_navigation_manager.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/web/public/test/test_navigation_manager.mm
diff --git a/ios/web/public/test/test_navigation_manager.mm b/ios/web/public/test/test_navigation_manager.mm
index 398d9677690edddb5e6252025f9762a9ed954a6b..6fea4adb9c9f3c01c81d92c59b0b7aea57f593fa 100644
--- a/ios/web/public/test/test_navigation_manager.mm
+++ b/ios/web/public/test/test_navigation_manager.mm
@@ -21,8 +21,11 @@ WebState* TestNavigationManager::GetWebState() const {
}
NavigationItem* TestNavigationManager::GetVisibleItem() const {
- NOTREACHED();
- return nullptr;
+ return visible_item_;
+}
+
+void TestNavigationManager::SetVisibleItem(NavigationItem* item) {
+ visible_item_ = item;
}
NavigationItem* TestNavigationManager::GetLastCommittedItem() const {
« no previous file with comments | « ios/web/public/test/test_navigation_manager.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698