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

Unified Diff: content/test/test_blink_web_unit_test_support.h

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: content/test/test_blink_web_unit_test_support.h
diff --git a/content/test/test_blink_web_unit_test_support.h b/content/test/test_blink_web_unit_test_support.h
index c192b157cfb072116eb7262a075fa683922f150c..5139de885a882d0b75f50e2e84aec7bad96c856b 100644
--- a/content/test/test_blink_web_unit_test_support.h
+++ b/content/test/test_blink_web_unit_test_support.h
@@ -16,7 +16,6 @@
#include "content/test/mock_webblob_registry_impl.h"
#include "content/test/mock_webclipboard_impl.h"
#include "third_party/WebKit/public/platform/WebURLLoaderMockFactory.h"
-#include "third_party/WebKit/public/platform/WebUnitTestSupport.h"
namespace base {
class StatsTable;
@@ -32,10 +31,8 @@ class RendererScheduler;
namespace content {
-// An implementation of blink::WebUnitTestSupport and BlinkPlatformImpl for
-// tests.
-class TestBlinkWebUnitTestSupport : public blink::WebUnitTestSupport,
- public BlinkPlatformImpl {
+// An implementation of BlinkPlatformImpl for tests.
+class TestBlinkWebUnitTestSupport : public BlinkPlatformImpl {
public:
TestBlinkWebUnitTestSupport();
~TestBlinkWebUnitTestSupport() override;
@@ -71,20 +68,8 @@ class TestBlinkWebUnitTestSupport : public blink::WebUnitTestSupport,
const blink::WebFloatPoint& velocity,
const blink::WebSize& cumulative_scroll) override;
- blink::WebUnitTestSupport* unitTestSupport() override;
-
- // WebUnitTestSupport implementation
- // TODO(kinuko): Remove these methods.
- void registerMockedURL(const blink::WebURL& url,
- const blink::WebURLResponse& response,
- const blink::WebString& filePath) override;
- void registerMockedErrorURL(const blink::WebURL& url,
- const blink::WebURLResponse& response,
- const blink::WebURLError& error) override;
- void unregisterMockedURL(const blink::WebURL& url) override;
- void unregisterAllMockedURLs() override;
- void serveAsynchronousMockedRequests() override;
- void setLoaderDelegate(blink::WebURLLoaderTestDelegate* delegate) override;
+ blink::WebURLLoaderMockFactory* getURLLoaderMockFactory() override;
+
blink::WebThread* currentThread() override;
void getPluginList(bool refresh,

Powered by Google App Engine
This is Rietveld 408576698