| Index: third_party/WebKit/Source/web/tests/FrameSerializerTest.cpp
|
| diff --git a/third_party/WebKit/Source/web/tests/FrameSerializerTest.cpp b/third_party/WebKit/Source/web/tests/FrameSerializerTest.cpp
|
| index cd01112d7c372a4ea473ae97727761bf5c6685d5..d3aa43a526a6cba8dbfbc187e155051304cc04ab 100644
|
| --- a/third_party/WebKit/Source/web/tests/FrameSerializerTest.cpp
|
| +++ b/third_party/WebKit/Source/web/tests/FrameSerializerTest.cpp
|
| @@ -38,9 +38,10 @@
|
| #include "public/platform/WebString.h"
|
| #include "public/platform/WebThread.h"
|
| #include "public/platform/WebURL.h"
|
| +#include "public/platform/WebURLLoaderMockFactory.h"
|
| #include "public/platform/WebURLRequest.h"
|
| #include "public/platform/WebURLResponse.h"
|
| -#include "public/platform/WebUnitTestSupport.h"
|
| +#include "public/web/WebCache.h"
|
| #include "public/web/WebSettings.h"
|
| #include "testing/gtest/include/gtest/gtest.h"
|
| #include "web/WebLocalFrameImpl.h"
|
| @@ -73,7 +74,8 @@ protected:
|
|
|
| void TearDown() override
|
| {
|
| - Platform::current()->unitTestSupport()->unregisterAllMockedURLs();
|
| + Platform::current()->getURLLoaderMockFactory()->unregisterAllURLs();
|
| + WebCache::clear();
|
| }
|
|
|
| void setBaseFolder(const char* folder)
|
| @@ -107,7 +109,7 @@ protected:
|
| response.setMIMEType("text/html");
|
| response.setHTTPStatusCode(statusCode);
|
|
|
| - Platform::current()->unitTestSupport()->registerMockedErrorURL(KURL(m_baseUrl, file), response, error);
|
| + Platform::current()->getURLLoaderMockFactory()->registerErrorURL(KURL(m_baseUrl, file), response, error);
|
| }
|
|
|
| void registerRewriteURL(const char* fromURL, const char* toURL)
|
|
|