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

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

Issue 1845323002: Remove WebUnitTestSupport (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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 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)
« no previous file with comments | « third_party/WebKit/Source/web/tests/WebViewTest.cpp ('k') | third_party/WebKit/Source/web/tests/sim/SimRequest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698