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

Unified Diff: third_party/WebKit/Source/web/LinkHighlightImplTest.cpp

Issue 2683033005: URLLoaderMockFactory: clear MemoryCache in unregisterAllURLs (Closed)
Patch Set: Created 3 years, 10 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/LinkHighlightImplTest.cpp
diff --git a/third_party/WebKit/Source/web/LinkHighlightImplTest.cpp b/third_party/WebKit/Source/web/LinkHighlightImplTest.cpp
index 28c879fbe5a747c59aacbe1bce13d88f6384a9d3..cb9b79c1a1eb05235cac451a293fb61ebabc4b98 100644
--- a/third_party/WebKit/Source/web/LinkHighlightImplTest.cpp
+++ b/third_party/WebKit/Source/web/LinkHighlightImplTest.cpp
@@ -36,7 +36,6 @@
#include "platform/testing/URLTestHelpers.h"
#include "platform/testing/UnitTestHelpers.h"
#include "public/platform/Platform.h"
-#include "public/platform/WebCache.h"
#include "public/platform/WebContentLayer.h"
#include "public/platform/WebFloatPoint.h"
#include "public/platform/WebInputEvent.h"
@@ -128,7 +127,6 @@ TEST(LinkHighlightImplTest, verifyWebViewImplIntegration) {
ASSERT_EQ(0U, webViewImpl->numLinkHighlights());
Platform::current()->getURLLoaderMockFactory()->unregisterAllURLs();
- WebCache::clear();
}
namespace {
@@ -182,7 +180,6 @@ TEST(LinkHighlightImplTest, resetDuringNodeRemoval) {
ASSERT_EQ(0U, highlightLayer->numLinkHighlights());
Platform::current()->getURLLoaderMockFactory()->unregisterAllURLs();
- WebCache::clear();
}
// A lifetime test: delete LayerTreeView while running LinkHighlights.
@@ -225,7 +222,6 @@ TEST(LinkHighlightImplTest, resetLayerTreeView) {
webViewHelper.reset();
Platform::current()->getURLLoaderMockFactory()->unregisterAllURLs();
- WebCache::clear();
}
TEST(LinkHighlightImplTest, multipleHighlights) {
@@ -257,7 +253,6 @@ TEST(LinkHighlightImplTest, multipleHighlights) {
EXPECT_EQ(2U, webViewImpl->numLinkHighlights());
Platform::current()->getURLLoaderMockFactory()->unregisterAllURLs();
- WebCache::clear();
}
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698