| 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 #include "ios/web/public/test/test_web_state.h" | 5 #include "ios/web/public/test/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 | 10 |
| (...skipping 21 matching lines...) Expand all Loading... |
| 32 } | 32 } |
| 33 | 33 |
| 34 void TestWebState::SetWebUsageEnabled(bool enabled) { | 34 void TestWebState::SetWebUsageEnabled(bool enabled) { |
| 35 web_usage_enabled_ = enabled; | 35 web_usage_enabled_ = enabled; |
| 36 } | 36 } |
| 37 | 37 |
| 38 UIView* TestWebState::GetView() { | 38 UIView* TestWebState::GetView() { |
| 39 return nullptr; | 39 return nullptr; |
| 40 } | 40 } |
| 41 | 41 |
| 42 const NavigationManager* TestWebState::GetNavigationManager() const { |
| 43 return nullptr; |
| 44 } |
| 45 |
| 42 NavigationManager* TestWebState::GetNavigationManager() { | 46 NavigationManager* TestWebState::GetNavigationManager() { |
| 43 return nullptr; | 47 return nullptr; |
| 44 } | 48 } |
| 45 | 49 |
| 46 CRWJSInjectionReceiver* TestWebState::GetJSInjectionReceiver() const { | 50 CRWJSInjectionReceiver* TestWebState::GetJSInjectionReceiver() const { |
| 47 return nullptr; | 51 return nullptr; |
| 48 } | 52 } |
| 49 | 53 |
| 50 void TestWebState::ExecuteJavaScript(const base::string16& javascript) {} | 54 void TestWebState::ExecuteJavaScript(const base::string16& javascript) {} |
| 51 | 55 |
| (...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 134 shell::InterfaceRegistry* TestWebState::GetMojoInterfaceRegistry() { | 138 shell::InterfaceRegistry* TestWebState::GetMojoInterfaceRegistry() { |
| 135 return nullptr; | 139 return nullptr; |
| 136 } | 140 } |
| 137 | 141 |
| 138 base::WeakPtr<WebState> TestWebState::AsWeakPtr() { | 142 base::WeakPtr<WebState> TestWebState::AsWeakPtr() { |
| 139 NOTREACHED(); | 143 NOTREACHED(); |
| 140 return base::WeakPtr<WebState>(); | 144 return base::WeakPtr<WebState>(); |
| 141 } | 145 } |
| 142 | 146 |
| 143 } // namespace web | 147 } // namespace web |
| OLD | NEW |