| 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 919bf3f6cb0bc53a64b19d1969c0d9bd7dac214e..b3c79ac034a36188468aeff3a5d5f8255c19ed15 100644
|
| --- a/third_party/WebKit/Source/web/tests/sim/SimNetwork.cpp
|
| +++ b/third_party/WebKit/Source/web/tests/sim/SimNetwork.cpp
|
| @@ -8,8 +8,8 @@
|
| #include "public/platform/WebURLError.h"
|
| #include "public/platform/WebURLLoader.h"
|
| #include "public/platform/WebURLLoaderClient.h"
|
| +#include "public/platform/WebURLLoaderMockFactory.h"
|
| #include "public/platform/WebURLResponse.h"
|
| -#include "public/platform/WebUnitTestSupport.h"
|
| #include "web/tests/sim/SimRequest.h"
|
|
|
| namespace blink {
|
| @@ -19,15 +19,15 @@ static SimNetwork* s_network = nullptr;
|
| SimNetwork::SimNetwork()
|
| : m_currentRequest(nullptr)
|
| {
|
| - Platform::current()->unitTestSupport()->setLoaderDelegate(this);
|
| - DCHECK(!s_network);
|
| + Platform::current()->getURLLoaderMockFactory()->setLoaderDelegate(this);
|
| + ASSERT(!s_network);
|
| s_network = this;
|
| }
|
|
|
| SimNetwork::~SimNetwork()
|
| {
|
| - Platform::current()->unitTestSupport()->setLoaderDelegate(nullptr);
|
| - Platform::current()->unitTestSupport()->unregisterAllMockedURLs();
|
| + Platform::current()->getURLLoaderMockFactory()->setLoaderDelegate(nullptr);
|
| + Platform::current()->getURLLoaderMockFactory()->unregisterAllURLs();
|
| s_network = nullptr;
|
| }
|
|
|
| @@ -39,7 +39,7 @@ SimNetwork& SimNetwork::current()
|
|
|
| void SimNetwork::servePendingRequests()
|
| {
|
| - Platform::current()->unitTestSupport()->serveAsynchronousMockedRequests();
|
| + Platform::current()->getURLLoaderMockFactory()->serveAsynchronousRequests();
|
| }
|
|
|
| void SimNetwork::didReceiveResponse(WebURLLoaderClient* client, WebURLLoader* loader, const WebURLResponse& response)
|
|
|