| OLD | NEW |
| 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 Loading... |
| 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 CRWNavigationManagerStorage* TestWebState::BuildSerializedNavigationManager() { | 71 CRWSessionStorage* TestWebState::BuildSessionStorage() { |
| 72 return nil; | 72 return nil; |
| 73 } | 73 } |
| 74 | 74 |
| 75 void TestWebState::SetNavigationManager( | 75 void TestWebState::SetNavigationManager( |
| 76 std::unique_ptr<NavigationManager> navigation_manager) { | 76 std::unique_ptr<NavigationManager> navigation_manager) { |
| 77 navigation_manager_ = std::move(navigation_manager); | 77 navigation_manager_ = std::move(navigation_manager); |
| 78 } | 78 } |
| 79 | 79 |
| 80 void TestWebState::SetView(UIView* view) { | 80 void TestWebState::SetView(UIView* view) { |
| 81 view_.reset([view retain]); | 81 view_.reset([view retain]); |
| (...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 194 service_manager::InterfaceRegistry* TestWebState::GetMojoInterfaceRegistry() { | 194 service_manager::InterfaceRegistry* TestWebState::GetMojoInterfaceRegistry() { |
| 195 return nullptr; | 195 return nullptr; |
| 196 } | 196 } |
| 197 | 197 |
| 198 base::WeakPtr<WebState> TestWebState::AsWeakPtr() { | 198 base::WeakPtr<WebState> TestWebState::AsWeakPtr() { |
| 199 NOTREACHED(); | 199 NOTREACHED(); |
| 200 return base::WeakPtr<WebState>(); | 200 return base::WeakPtr<WebState>(); |
| 201 } | 201 } |
| 202 | 202 |
| 203 } // namespace web | 203 } // namespace web |
| OLD | NEW |