| 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 <stdint.h> | 5 #include <stdint.h> |
| 6 | 6 |
| 7 #include "ios/web/public/test/test_web_state.h" | 7 #include "ios/web/public/test/test_web_state.h" |
| 8 | 8 |
| 9 namespace web { | 9 namespace web { |
| 10 | 10 |
| 11 TestWebState::TestWebState() | 11 TestWebState::TestWebState() |
| 12 : trust_level_(kAbsolute), content_is_html_(true) {} | 12 : trust_level_(kAbsolute), content_is_html_(true) {} |
| 13 | 13 |
| 14 TestWebState::~TestWebState() = default; | 14 TestWebState::~TestWebState() = default; |
| 15 | 15 |
| 16 UIView* TestWebState::GetView() { | 16 UIView* TestWebState::GetView() { |
| 17 return nullptr; | 17 return nullptr; |
| 18 } | 18 } |
| 19 | 19 |
| 20 WebStateDelegate* TestWebState::GetDelegate() { |
| 21 return nil; |
| 22 } |
| 23 |
| 24 void TestWebState::SetDelegate(WebStateDelegate* delegate) {} |
| 25 |
| 20 BrowserState* TestWebState::GetBrowserState() const { | 26 BrowserState* TestWebState::GetBrowserState() const { |
| 21 return nullptr; | 27 return nullptr; |
| 22 } | 28 } |
| 23 | 29 |
| 24 NavigationManager* TestWebState::GetNavigationManager() { | 30 NavigationManager* TestWebState::GetNavigationManager() { |
| 25 return nullptr; | 31 return nullptr; |
| 26 } | 32 } |
| 27 | 33 |
| 28 CRWJSInjectionReceiver* TestWebState::GetJSInjectionReceiver() const { | 34 CRWJSInjectionReceiver* TestWebState::GetJSInjectionReceiver() const { |
| 29 return nullptr; | 35 return nullptr; |
| (...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 101 const ImageDownloadCallback& callback) { | 107 const ImageDownloadCallback& callback) { |
| 102 return 0; | 108 return 0; |
| 103 } | 109 } |
| 104 | 110 |
| 105 base::WeakPtr<WebState> TestWebState::AsWeakPtr() { | 111 base::WeakPtr<WebState> TestWebState::AsWeakPtr() { |
| 106 NOTREACHED(); | 112 NOTREACHED(); |
| 107 return base::WeakPtr<WebState>(); | 113 return base::WeakPtr<WebState>(); |
| 108 } | 114 } |
| 109 | 115 |
| 110 } // namespace web | 116 } // namespace web |
| OLD | NEW |