| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 "platform/testing/weburl_loader_mock.h" | 5 #include "platform/testing/weburl_loader_mock.h" |
| 6 | 6 |
| 7 #include "platform/testing/weburl_loader_mock_factory_impl.h" | 7 #include "platform/testing/weburl_loader_mock_factory_impl.h" |
| 8 #include "public/platform/URLConversion.h" | 8 #include "public/platform/URLConversion.h" |
| 9 #include "public/platform/WebData.h" | 9 #include "public/platform/WebData.h" |
| 10 #include "public/platform/WebURLError.h" | 10 #include "public/platform/WebURLError.h" |
| (...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 147 } | 147 } |
| 148 | 148 |
| 149 // Ignores setDefersLoading(false) safely. | 149 // Ignores setDefersLoading(false) safely. |
| 150 if (!deferred) | 150 if (!deferred) |
| 151 return; | 151 return; |
| 152 | 152 |
| 153 // setDefersLoading(true) is not implemented. | 153 // setDefersLoading(true) is not implemented. |
| 154 NOTIMPLEMENTED(); | 154 NOTIMPLEMENTED(); |
| 155 } | 155 } |
| 156 | 156 |
| 157 void WebURLLoaderMock::setLoadingTaskRunner(WebTaskRunner*) { | 157 void WebURLLoaderMock::setLoadingTaskRunner(WebTaskRunner* runner) { |
| 158 // In principle this is NOTIMPLEMENTED(), but if we put that here it floods | 158 // In principle this is NOTIMPLEMENTED(), but if we put that here it floods |
| 159 // the console during webkit unit tests, so we leave the function empty. | 159 // the console during webkit unit tests, so we leave the function empty. |
| 160 DCHECK(runner); |
| 160 } | 161 } |
| 161 | 162 |
| 162 WeakPtr<WebURLLoaderMock> WebURLLoaderMock::GetWeakPtr() { | 163 WeakPtr<WebURLLoaderMock> WebURLLoaderMock::GetWeakPtr() { |
| 163 return weak_factory_.createWeakPtr(); | 164 return weak_factory_.createWeakPtr(); |
| 164 } | 165 } |
| 165 | 166 |
| 166 } // namespace blink | 167 } // namespace blink |
| OLD | NEW |