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

Side by Side Diff: ios/web/public/test/fakes/test_navigation_manager.h

Issue 2745873002: Created NavigationManager::CopyStateFromAndPrune(). (Closed)
Patch Set: Created 3 years, 9 months 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 unified diff | Download patch
OLDNEW
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 #ifndef IOS_WEB_PUBLIC_TEST_FAKES_TEST_NAVIGATION_MANAGER_H_ 5 #ifndef IOS_WEB_PUBLIC_TEST_FAKES_TEST_NAVIGATION_MANAGER_H_
6 #define IOS_WEB_PUBLIC_TEST_FAKES_TEST_NAVIGATION_MANAGER_H_ 6 #define IOS_WEB_PUBLIC_TEST_FAKES_TEST_NAVIGATION_MANAGER_H_
7 7
8 #import "ios/web/public/navigation_manager.h" 8 #import "ios/web/public/navigation_manager.h"
9 9
10 namespace web { 10 namespace web {
(...skipping 23 matching lines...) Expand all
34 bool RemoveItemAtIndex(int index) override; 34 bool RemoveItemAtIndex(int index) override;
35 bool CanGoBack() const override; 35 bool CanGoBack() const override;
36 bool CanGoForward() const override; 36 bool CanGoForward() const override;
37 bool CanGoToOffset(int offset) const override; 37 bool CanGoToOffset(int offset) const override;
38 void GoBack() override; 38 void GoBack() override;
39 void GoForward() override; 39 void GoForward() override;
40 void GoToIndex(int index) override; 40 void GoToIndex(int index) override;
41 NavigationItemList GetBackwardItems() const override; 41 NavigationItemList GetBackwardItems() const override;
42 NavigationItemList GetForwardItems() const override; 42 NavigationItemList GetForwardItems() const override;
43 void Reload(bool check_for_reposts) override; 43 void Reload(bool check_for_reposts) override;
44 void InsertStateFromManager(const NavigationManager* manager) override;
44 void OverrideDesktopUserAgentForNextPendingItem() override; 45 void OverrideDesktopUserAgentForNextPendingItem() override;
45 46
46 // Setters for test data. 47 // Setters for test data.
47 void SetLastCommittedItem(NavigationItem* item); 48 void SetLastCommittedItem(NavigationItem* item);
48 void SetPendingItem(NavigationItem* item); 49 void SetPendingItem(NavigationItem* item);
49 void SetVisibleItem(NavigationItem* item); 50 void SetVisibleItem(NavigationItem* item);
50 51
51 private: 52 private:
52 NavigationItem* pending_item_; 53 NavigationItem* pending_item_;
53 NavigationItem* last_committed_item_; 54 NavigationItem* last_committed_item_;
54 NavigationItem* visible_item_; 55 NavigationItem* visible_item_;
55 }; 56 };
56 57
57 } // namespace web 58 } // namespace web
58 59
59 #endif // IOS_WEB_PUBLIC_TEST_FAKES_TEST_NAVIGATION_MANAGER_H_ 60 #endif // IOS_WEB_PUBLIC_TEST_FAKES_TEST_NAVIGATION_MANAGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698