| Index: third_party/WebKit/Source/web/tests/ViewportTest.cpp
|
| diff --git a/third_party/WebKit/Source/web/tests/ViewportTest.cpp b/third_party/WebKit/Source/web/tests/ViewportTest.cpp
|
| index ab03e5882c4b949e3e2f1434a9b3d8df9113ea15..9cabae655d17a9d4f77adcc18c773e0b55c80918 100644
|
| --- a/third_party/WebKit/Source/web/tests/ViewportTest.cpp
|
| +++ b/third_party/WebKit/Source/web/tests/ViewportTest.cpp
|
| @@ -41,7 +41,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/WebConsoleMessage.h"
|
| #include "public/web/WebFrame.h"
|
| @@ -61,8 +60,9 @@ class ViewportTest : public ::testing::Test {
|
| : m_baseURL("http://www.test.com/"), m_chromeURL("chrome://") {}
|
|
|
| ~ViewportTest() override {
|
| - Platform::current()->getURLLoaderMockFactory()->unregisterAllURLs();
|
| - WebCache::clear();
|
| + Platform::current()
|
| + ->getURLLoaderMockFactory()
|
| + ->unregisterAllURLsAndClearMemoryCache();
|
| }
|
|
|
| void registerMockedHttpURLLoad(const std::string& fileName) {
|
|
|