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

Unified Diff: third_party/WebKit/Source/web/tests/sim/SimNetwork.cpp

Issue 2683033005: URLLoaderMockFactory: clear MemoryCache in unregisterAllURLs (Closed)
Patch Set: fix Created 3 years, 10 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/web/tests/sim/SimNetwork.cpp
diff --git a/third_party/WebKit/Source/web/tests/sim/SimNetwork.cpp b/third_party/WebKit/Source/web/tests/sim/SimNetwork.cpp
index cc229a74fd6981a4e1798c8c43a917479c1b419f..d3635e85d2b9574ea41ee29c00b63f130279b52b 100644
--- a/third_party/WebKit/Source/web/tests/sim/SimNetwork.cpp
+++ b/third_party/WebKit/Source/web/tests/sim/SimNetwork.cpp
@@ -24,7 +24,9 @@ SimNetwork::SimNetwork() : m_currentRequest(nullptr) {
SimNetwork::~SimNetwork() {
Platform::current()->getURLLoaderMockFactory()->setLoaderDelegate(nullptr);
- Platform::current()->getURLLoaderMockFactory()->unregisterAllURLs();
+ Platform::current()
+ ->getURLLoaderMockFactory()
+ ->unregisterAllURLsAndClearMemoryCache();
s_network = nullptr;
}
« no previous file with comments | « third_party/WebKit/Source/web/tests/WebViewTest.cpp ('k') | third_party/WebKit/public/platform/WebURLLoaderMockFactory.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698