| 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 18 matching lines...) Expand all Loading... |
| 29 } | 29 } |
| 30 | 30 |
| 31 bool TestWebState::IsWebUsageEnabled() const { | 31 bool TestWebState::IsWebUsageEnabled() const { |
| 32 return web_usage_enabled_; | 32 return web_usage_enabled_; |
| 33 } | 33 } |
| 34 | 34 |
| 35 void TestWebState::SetWebUsageEnabled(bool enabled) { | 35 void TestWebState::SetWebUsageEnabled(bool enabled) { |
| 36 web_usage_enabled_ = enabled; | 36 web_usage_enabled_ = enabled; |
| 37 } | 37 } |
| 38 | 38 |
| 39 bool TestWebState::ShouldSuppressDialogs() const { |
| 40 return false; |
| 41 } |
| 42 |
| 43 void TestWebState::SetShouldSuppressDialogs(bool should_suppress) {} |
| 44 |
| 39 UIView* TestWebState::GetView() { | 45 UIView* TestWebState::GetView() { |
| 40 return nullptr; | 46 return nullptr; |
| 41 } | 47 } |
| 42 | 48 |
| 43 const NavigationManager* TestWebState::GetNavigationManager() const { | 49 const NavigationManager* TestWebState::GetNavigationManager() const { |
| 44 return nullptr; | 50 return nullptr; |
| 45 } | 51 } |
| 46 | 52 |
| 47 NavigationManager* TestWebState::GetNavigationManager() { | 53 NavigationManager* TestWebState::GetNavigationManager() { |
| 48 return nullptr; | 54 return nullptr; |
| (...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 143 shell::InterfaceRegistry* TestWebState::GetMojoInterfaceRegistry() { | 149 shell::InterfaceRegistry* TestWebState::GetMojoInterfaceRegistry() { |
| 144 return nullptr; | 150 return nullptr; |
| 145 } | 151 } |
| 146 | 152 |
| 147 base::WeakPtr<WebState> TestWebState::AsWeakPtr() { | 153 base::WeakPtr<WebState> TestWebState::AsWeakPtr() { |
| 148 NOTREACHED(); | 154 NOTREACHED(); |
| 149 return base::WeakPtr<WebState>(); | 155 return base::WeakPtr<WebState>(); |
| 150 } | 156 } |
| 151 | 157 |
| 152 } // namespace web | 158 } // namespace web |
| OLD | NEW |