Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(631)

Side by Side Diff: third_party/WebKit/Source/platform/testing/weburl_loader_mock.cc

Issue 1893673004: Ensure RemoteFontFaceSource doesn't try to start a load in a detached document (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « third_party/WebKit/Source/core/fetch/ResourceFetcherTest.cpp ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/fetch/ResourceFetcherTest.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698