| Index: third_party/WebKit/Source/platform/loader/fetch/FetchTestingPlatformSupport.cpp
|
| diff --git a/third_party/WebKit/Source/platform/loader/fetch/FetchTestingPlatformSupport.cpp b/third_party/WebKit/Source/platform/loader/fetch/FetchTestingPlatformSupport.cpp
|
| index 5f310469b16d744f48cf3f586509ef242cd48a84..5a59f775fd1e6710cb5410c7745c2b0233b72620 100644
|
| --- a/third_party/WebKit/Source/platform/loader/fetch/FetchTestingPlatformSupport.cpp
|
| +++ b/third_party/WebKit/Source/platform/loader/fetch/FetchTestingPlatformSupport.cpp
|
| @@ -47,7 +47,12 @@ class AssertWebURLLoader : public WebURLLoader {
|
| FetchTestingPlatformSupport::FetchTestingPlatformSupport()
|
| : m_urlLoaderMockFactory(new WebURLLoaderMockFactoryImpl(this)) {}
|
|
|
| -FetchTestingPlatformSupport::~FetchTestingPlatformSupport() = default;
|
| +FetchTestingPlatformSupport::~FetchTestingPlatformSupport() {
|
| + // Shutdowns WebURLLoaderMockFactory gracefully, serving all pending requests
|
| + // first, then flushing all registered URLs.
|
| + m_urlLoaderMockFactory->serveAsynchronousRequests();
|
| + m_urlLoaderMockFactory->unregisterAllURLs();
|
| +}
|
|
|
| MockFetchContext* FetchTestingPlatformSupport::context() {
|
| if (!m_context) {
|
|
|