| Index: third_party/WebKit/Source/web/tests/ListenerLeakTest.cpp
|
| diff --git a/third_party/WebKit/Source/web/tests/ListenerLeakTest.cpp b/third_party/WebKit/Source/web/tests/ListenerLeakTest.cpp
|
| index 6be40e699dd67434ed9385ea1e5e8dc032c170c2..f6a9033be02d88b799f7fd2daed3b39112189bbe 100644
|
| --- a/third_party/WebKit/Source/web/tests/ListenerLeakTest.cpp
|
| +++ b/third_party/WebKit/Source/web/tests/ListenerLeakTest.cpp
|
| @@ -33,7 +33,6 @@
|
| #include "platform/testing/URLTestHelpers.h"
|
| #include "platform/testing/UnitTestHelpers.h"
|
| #include "public/platform/Platform.h"
|
| -#include "public/platform/WebCache.h"
|
| #include "public/platform/WebURLLoaderMockFactory.h"
|
| #include "public/web/WebView.h"
|
| #include "testing/gtest/include/gtest/gtest.h"
|
| @@ -96,8 +95,9 @@ class ListenerLeakTest : public ::testing::Test {
|
| }
|
|
|
| void TearDown() override {
|
| - Platform::current()->getURLLoaderMockFactory()->unregisterAllURLs();
|
| - WebCache::clear();
|
| + Platform::current()
|
| + ->getURLLoaderMockFactory()
|
| + ->unregisterAllURLsAndClearMemoryCache();
|
| }
|
|
|
| protected:
|
|
|