OLD | NEW |
| (Empty) |
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 | |
3 // found in the LICENSE file. | |
4 | |
5 #import "ios/web/public/test/test_navigation_manager.h" | |
6 | |
7 namespace web { | |
8 | |
9 TestNavigationManager::TestNavigationManager() {} | |
10 | |
11 TestNavigationManager::~TestNavigationManager() {} | |
12 | |
13 BrowserState* TestNavigationManager::GetBrowserState() const { | |
14 NOTREACHED(); | |
15 return nullptr; | |
16 } | |
17 | |
18 WebState* TestNavigationManager::GetWebState() const { | |
19 NOTREACHED(); | |
20 return nullptr; | |
21 } | |
22 | |
23 NavigationItem* TestNavigationManager::GetVisibleItem() const { | |
24 return visible_item_; | |
25 } | |
26 | |
27 void TestNavigationManager::SetVisibleItem(NavigationItem* item) { | |
28 visible_item_ = item; | |
29 } | |
30 | |
31 NavigationItem* TestNavigationManager::GetLastCommittedItem() const { | |
32 return last_committed_item_; | |
33 } | |
34 | |
35 void TestNavigationManager::SetLastCommittedItem(NavigationItem* item) { | |
36 last_committed_item_ = item; | |
37 } | |
38 | |
39 NavigationItem* TestNavigationManager::GetPendingItem() const { | |
40 return pending_item_; | |
41 } | |
42 | |
43 void TestNavigationManager::SetPendingItem(NavigationItem* item) { | |
44 pending_item_ = item; | |
45 } | |
46 | |
47 web::NavigationItem* TestNavigationManager::GetTransientItem() const { | |
48 NOTREACHED(); | |
49 return nullptr; | |
50 } | |
51 | |
52 void TestNavigationManager::DiscardNonCommittedItems() { | |
53 NOTREACHED(); | |
54 return; | |
55 } | |
56 | |
57 void TestNavigationManager::LoadIfNecessary() { | |
58 NOTREACHED(); | |
59 return; | |
60 } | |
61 | |
62 void TestNavigationManager::LoadURLWithParams( | |
63 const NavigationManager::WebLoadParams& params) { | |
64 NOTREACHED(); | |
65 return; | |
66 } | |
67 | |
68 void TestNavigationManager::AddTransientURLRewriter( | |
69 BrowserURLRewriter::URLRewriter rewriter) { | |
70 NOTREACHED(); | |
71 return; | |
72 } | |
73 | |
74 int TestNavigationManager::GetItemCount() const { | |
75 NOTREACHED(); | |
76 return 0; | |
77 } | |
78 | |
79 web::NavigationItem* TestNavigationManager::GetItemAtIndex(size_t index) const { | |
80 NOTREACHED(); | |
81 return nullptr; | |
82 } | |
83 | |
84 int TestNavigationManager::GetCurrentItemIndex() const { | |
85 NOTREACHED(); | |
86 return 0; | |
87 } | |
88 | |
89 int TestNavigationManager::GetLastCommittedItemIndex() const { | |
90 NOTREACHED(); | |
91 return 0; | |
92 } | |
93 | |
94 int TestNavigationManager::GetPendingItemIndex() const { | |
95 NOTREACHED(); | |
96 return 0; | |
97 } | |
98 | |
99 bool TestNavigationManager::RemoveItemAtIndex(int index) { | |
100 NOTREACHED(); | |
101 return false; | |
102 } | |
103 | |
104 bool TestNavigationManager::CanGoBack() const { | |
105 NOTREACHED(); | |
106 return false; | |
107 } | |
108 | |
109 bool TestNavigationManager::CanGoForward() const { | |
110 NOTREACHED(); | |
111 return false; | |
112 } | |
113 | |
114 bool TestNavigationManager::CanGoToOffset(int offset) const { | |
115 NOTREACHED(); | |
116 return false; | |
117 } | |
118 | |
119 void TestNavigationManager::GoBack() { | |
120 NOTREACHED(); | |
121 return; | |
122 } | |
123 | |
124 void TestNavigationManager::GoForward() { | |
125 NOTREACHED(); | |
126 return; | |
127 } | |
128 | |
129 void TestNavigationManager::GoToIndex(int index) { | |
130 NOTREACHED(); | |
131 return; | |
132 } | |
133 | |
134 void TestNavigationManager::Reload(bool check_for_repost) { | |
135 NOTREACHED(); | |
136 return; | |
137 } | |
138 | |
139 } // namespace web | |
OLD | NEW |