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

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

Issue 2614443004: [ios] Moved all web mocks to ios/web/public/test/fakes. (Closed)
Patch Set: Moved test_redirect_observer back Created 3 years, 11 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ios/web/public/test/test_native_content_provider.mm ('k') | ios/web/public/test/test_navigation_manager.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/web/public/test/test_navigation_manager.h
diff --git a/ios/web/public/test/test_navigation_manager.h b/ios/web/public/test/test_navigation_manager.h
deleted file mode 100644
index 55c8e8f19d9a2a938fdd4873a65f843ad8a563e5..0000000000000000000000000000000000000000
--- a/ios/web/public/test/test_navigation_manager.h
+++ /dev/null
@@ -1,56 +0,0 @@
-// Copyright 2016 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef IOS_WEB_PUBLIC_TEST_TEST_NAVIGATION_MANAGER_H_
-#define IOS_WEB_PUBLIC_TEST_TEST_NAVIGATION_MANAGER_H_
-
-#import "ios/web/public/navigation_manager.h"
-
-namespace web {
-
-// A minimal implementation of web::NavigationManager that raises NOTREACHED()
-// on most calls.
-class TestNavigationManager : public web::NavigationManager {
- public:
- TestNavigationManager();
- ~TestNavigationManager() override;
- BrowserState* GetBrowserState() const override;
- WebState* GetWebState() const override;
- NavigationItem* GetVisibleItem() const override;
- NavigationItem* GetLastCommittedItem() const override;
- NavigationItem* GetPendingItem() const override;
- NavigationItem* GetTransientItem() const override;
- void DiscardNonCommittedItems() override;
- void LoadIfNecessary() override;
- void LoadURLWithParams(const NavigationManager::WebLoadParams&) override;
- void AddTransientURLRewriter(
- BrowserURLRewriter::URLRewriter rewriter) override;
- int GetItemCount() const override;
- NavigationItem* GetItemAtIndex(size_t index) const override;
- int GetCurrentItemIndex() const override;
- int GetPendingItemIndex() const override;
- int GetLastCommittedItemIndex() const override;
- bool RemoveItemAtIndex(int index) override;
- bool CanGoBack() const override;
- bool CanGoForward() const override;
- bool CanGoToOffset(int offset) const override;
- void GoBack() override;
- void GoForward() override;
- void GoToIndex(int index) override;
- void Reload(bool check_for_reposts) override;
-
- // Setters for test data.
- void SetLastCommittedItem(NavigationItem* item);
- void SetPendingItem(NavigationItem* item);
- void SetVisibleItem(NavigationItem* item);
-
- private:
- NavigationItem* pending_item_;
- NavigationItem* last_committed_item_;
- NavigationItem* visible_item_;
-};
-
-} // namespace web
-
-#endif
« no previous file with comments | « ios/web/public/test/test_native_content_provider.mm ('k') | ios/web/public/test/test_navigation_manager.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698