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

Side by Side Diff: ios/web/test/fakes/test_navigation_manager_delegate.mm

Issue 2957163002: [Navigation Experiment] Add WKBasedNavigationManagerImpl. (Closed)
Patch Set: Created 3 years, 5 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 2017 The Chromium Authors. All rights reserved. 1 // Copyright 2017 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/test/fakes/test_navigation_manager_delegate.h" 5 #import "ios/web/test/fakes/test_navigation_manager_delegate.h"
6 #import "ios/web/navigation/web_view_navigation_proxy.h"
7 #import "ios/web/navigation/web_view_navigation_proxy_impl.h"
6 8
7 #if !defined(__has_feature) || !__has_feature(objc_arc) 9 #if !defined(__has_feature) || !__has_feature(objc_arc)
8 #error "This file requires ARC support." 10 #error "This file requires ARC support."
9 #endif 11 #endif
10 12
11 namespace web { 13 namespace web {
12 14
13 void TestNavigationManagerDelegate::GoToIndex(int index) {} 15 void TestNavigationManagerDelegate::GoToIndex(int index) {}
14 void TestNavigationManagerDelegate::LoadURLWithParams( 16 void TestNavigationManagerDelegate::LoadURLWithParams(
15 const NavigationManager::WebLoadParams&) {} 17 const NavigationManager::WebLoadParams&) {}
16 void TestNavigationManagerDelegate::Reload() {} 18 void TestNavigationManagerDelegate::Reload() {}
17 void TestNavigationManagerDelegate::OnNavigationItemsPruned( 19 void TestNavigationManagerDelegate::OnNavigationItemsPruned(
18 size_t pruned_item_count) {} 20 size_t pruned_item_count) {}
19 void TestNavigationManagerDelegate::OnNavigationItemChanged() {} 21 void TestNavigationManagerDelegate::OnNavigationItemChanged() {}
20 void TestNavigationManagerDelegate::OnNavigationItemCommitted( 22 void TestNavigationManagerDelegate::OnNavigationItemCommitted(
21 const LoadCommittedDetails& load_details) {} 23 const LoadCommittedDetails& load_details) {}
22 WebState* TestNavigationManagerDelegate::GetWebState() { 24 WebState* TestNavigationManagerDelegate::GetWebState() {
23 return nullptr; 25 return nullptr;
24 } 26 }
27 WebViewNavigationProxy*
28 TestNavigationManagerDelegate::GetWebViewNavigationProxy() const {
29 // TODO(danyao): inject test class
30 return nullptr;
31 }
25 32
26 } // namespace web 33 } // namespace web
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698