| 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 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 96 } | 96 } |
| 97 | 97 |
| 98 const base::string16& TestWebState::GetTitle() const { | 98 const base::string16& TestWebState::GetTitle() const { |
| 99 return title_; | 99 return title_; |
| 100 } | 100 } |
| 101 | 101 |
| 102 bool TestWebState::IsLoading() const { | 102 bool TestWebState::IsLoading() const { |
| 103 return false; | 103 return false; |
| 104 } | 104 } |
| 105 | 105 |
| 106 double TestWebState::GetLoadingProgress() const { |
| 107 return 0.0; |
| 108 } |
| 109 |
| 106 bool TestWebState::IsBeingDestroyed() const { | 110 bool TestWebState::IsBeingDestroyed() const { |
| 107 return false; | 111 return false; |
| 108 } | 112 } |
| 109 | 113 |
| 110 void TestWebState::SetCurrentURL(const GURL& url) { | 114 void TestWebState::SetCurrentURL(const GURL& url) { |
| 111 url_ = url; | 115 url_ = url; |
| 112 } | 116 } |
| 113 | 117 |
| 114 void TestWebState::SetTrustLevel(URLVerificationTrustLevel trust_level) { | 118 void TestWebState::SetTrustLevel(URLVerificationTrustLevel trust_level) { |
| 115 trust_level_ = trust_level; | 119 trust_level_ = trust_level; |
| (...skipping 10 matching lines...) Expand all Loading... |
| 126 const ImageDownloadCallback& callback) { | 130 const ImageDownloadCallback& callback) { |
| 127 return 0; | 131 return 0; |
| 128 } | 132 } |
| 129 | 133 |
| 130 base::WeakPtr<WebState> TestWebState::AsWeakPtr() { | 134 base::WeakPtr<WebState> TestWebState::AsWeakPtr() { |
| 131 NOTREACHED(); | 135 NOTREACHED(); |
| 132 return base::WeakPtr<WebState>(); | 136 return base::WeakPtr<WebState>(); |
| 133 } | 137 } |
| 134 | 138 |
| 135 } // namespace web | 139 } // namespace web |
| OLD | NEW |