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

Unified Diff: third_party/WebKit/Source/platform/testing/URLTestHelpers.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/platform/testing/URLTestHelpers.cpp
diff --git a/third_party/WebKit/Source/platform/testing/URLTestHelpers.cpp b/third_party/WebKit/Source/platform/testing/URLTestHelpers.cpp
index db2fcaf7400f6c1d5f01d0b3e7ef2c37c108872d..4462fdde27572968cdaf2e3c2081d4ea0db43c9b 100644
--- a/third_party/WebKit/Source/platform/testing/URLTestHelpers.cpp
+++ b/third_party/WebKit/Source/platform/testing/URLTestHelpers.cpp
@@ -35,8 +35,8 @@
#include "public/platform/WebURL.h"
#include "public/platform/WebURLError.h"
#include "public/platform/WebURLLoadTiming.h"
+#include "public/platform/WebURLLoaderMockFactory.h"
#include "public/platform/WebURLResponse.h"
-#include "public/platform/WebUnitTestSupport.h"
namespace blink {
namespace URLTestHelpers {
@@ -79,7 +79,7 @@ void registerMockedErrorURLLoad(const WebURL& fullURL)
WebURLError error;
error.reason = 404;
- Platform::current()->unitTestSupport()->registerMockedErrorURL(fullURL, response, error);
+ Platform::current()->getURLLoaderMockFactory()->registerErrorURL(fullURL, response, error);
}
void registerMockedURLLoadWithCustomResponse(const WebURL& fullURL, const WebString& fileName, const WebString& relativeBaseDirectory, WebURLResponse response)
@@ -90,7 +90,7 @@ void registerMockedURLLoadWithCustomResponse(const WebURL& fullURL, const WebStr
filePath.append(relativeBaseDirectory);
filePath.append(fileName);
- Platform::current()->unitTestSupport()->registerMockedURL(fullURL, response, filePath);
+ Platform::current()->getURLLoaderMockFactory()->registerURL(fullURL, response, filePath);
}
} // namespace URLTestHelpers

Powered by Google App Engine
This is Rietveld 408576698