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

Side by Side Diff: ios/web/public/test/fakes/test_web_state.mm

Issue 1360993002: Moved NavigationManagerImpl serialization out of CRWSessionController. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: test fix Created 3 years, 10 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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/public/test/fakes/test_web_state.h" 5 #import "ios/web/public/test/fakes/test_web_state.h"
6 6
7 #include <stdint.h> 7 #include <stdint.h>
8 8
9 #include "base/callback.h" 9 #include "base/callback.h"
10 #include "ios/web/public/web_state/web_state_observer.h" 10 #include "ios/web/public/web_state/web_state_observer.h"
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 } 61 }
62 62
63 const NavigationManager* TestWebState::GetNavigationManager() const { 63 const NavigationManager* TestWebState::GetNavigationManager() const {
64 return navigation_manager_.get(); 64 return navigation_manager_.get();
65 } 65 }
66 66
67 NavigationManager* TestWebState::GetNavigationManager() { 67 NavigationManager* TestWebState::GetNavigationManager() {
68 return navigation_manager_.get(); 68 return navigation_manager_.get();
69 } 69 }
70 70
71 CRWNavigationManagerSerialization*
72 TestWebState::BuildSerializedNavigationManager() {
73 return nil;
74 }
75
71 void TestWebState::SetNavigationManager( 76 void TestWebState::SetNavigationManager(
72 std::unique_ptr<NavigationManager> navigation_manager) { 77 std::unique_ptr<NavigationManager> navigation_manager) {
73 navigation_manager_ = std::move(navigation_manager); 78 navigation_manager_ = std::move(navigation_manager);
74 } 79 }
75 80
76 void TestWebState::SetView(UIView* view) { 81 void TestWebState::SetView(UIView* view) {
77 view_.reset([view retain]); 82 view_.reset([view retain]);
78 } 83 }
79 84
80 CRWJSInjectionReceiver* TestWebState::GetJSInjectionReceiver() const { 85 CRWJSInjectionReceiver* TestWebState::GetJSInjectionReceiver() const {
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
190 service_manager::InterfaceRegistry* TestWebState::GetMojoInterfaceRegistry() { 195 service_manager::InterfaceRegistry* TestWebState::GetMojoInterfaceRegistry() {
191 return nullptr; 196 return nullptr;
192 } 197 }
193 198
194 base::WeakPtr<WebState> TestWebState::AsWeakPtr() { 199 base::WeakPtr<WebState> TestWebState::AsWeakPtr() {
195 NOTREACHED(); 200 NOTREACHED();
196 return base::WeakPtr<WebState>(); 201 return base::WeakPtr<WebState>();
197 } 202 }
198 203
199 } // namespace web 204 } // namespace web
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698