| 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 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 91 } | 91 } |
| 92 | 92 |
| 93 bool TestWebState::IsShowingWebInterstitial() const { | 93 bool TestWebState::IsShowingWebInterstitial() const { |
| 94 return false; | 94 return false; |
| 95 } | 95 } |
| 96 | 96 |
| 97 WebInterstitial* TestWebState::GetWebInterstitial() const { | 97 WebInterstitial* TestWebState::GetWebInterstitial() const { |
| 98 return nullptr; | 98 return nullptr; |
| 99 } | 99 } |
| 100 | 100 |
| 101 int TestWebState::GetCertGroupId() const { | |
| 102 return 0; | |
| 103 } | |
| 104 | |
| 105 void TestWebState::SetContentIsHTML(bool content_is_html) { | 101 void TestWebState::SetContentIsHTML(bool content_is_html) { |
| 106 content_is_html_ = content_is_html; | 102 content_is_html_ = content_is_html; |
| 107 } | 103 } |
| 108 | 104 |
| 109 const base::string16& TestWebState::GetTitle() const { | 105 const base::string16& TestWebState::GetTitle() const { |
| 110 return title_; | 106 return title_; |
| 111 } | 107 } |
| 112 | 108 |
| 113 bool TestWebState::IsLoading() const { | 109 bool TestWebState::IsLoading() const { |
| 114 return is_loading_; | 110 return is_loading_; |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 149 shell::InterfaceRegistry* TestWebState::GetMojoInterfaceRegistry() { | 145 shell::InterfaceRegistry* TestWebState::GetMojoInterfaceRegistry() { |
| 150 return nullptr; | 146 return nullptr; |
| 151 } | 147 } |
| 152 | 148 |
| 153 base::WeakPtr<WebState> TestWebState::AsWeakPtr() { | 149 base::WeakPtr<WebState> TestWebState::AsWeakPtr() { |
| 154 NOTREACHED(); | 150 NOTREACHED(); |
| 155 return base::WeakPtr<WebState>(); | 151 return base::WeakPtr<WebState>(); |
| 156 } | 152 } |
| 157 | 153 |
| 158 } // namespace web | 154 } // namespace web |
| OLD | NEW |