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

Unified Diff: third_party/WebKit/Source/core/loader/resource/FontResourceTest.cpp

Issue 2592363002: FontResourceTest: call unregisterURL() respectively (Closed)
Patch Set: done Created 4 years 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
« no previous file with comments | « no previous file | third_party/WebKit/Source/platform/testing/weburl_loader_mock_factory_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/loader/resource/FontResourceTest.cpp
diff --git a/third_party/WebKit/Source/core/loader/resource/FontResourceTest.cpp b/third_party/WebKit/Source/core/loader/resource/FontResourceTest.cpp
index b30d380b392983c74e948f79743843941ed9b870..988beedacca7834659ddc9d90a4c710f29ba58a7 100644
--- a/third_party/WebKit/Source/core/loader/resource/FontResourceTest.cpp
+++ b/third_party/WebKit/Source/core/loader/resource/FontResourceTest.cpp
@@ -23,7 +23,11 @@
namespace blink {
-class FontResourceTest : public ::testing::Test {};
+class FontResourceTest : public ::testing::Test {
+ void TearDown() override {
+ Platform::current()->getURLLoaderMockFactory()->unregisterAllURLs();
+ }
+};
// Tests if ResourceFetcher works fine with FontResource that requires defered
// loading supports.
@@ -138,7 +142,6 @@ TEST_F(FontResourceTest, CacheAwareFontLoading) {
EXPECT_TRUE(client3->fontLoadLongLimitExceededCalled());
Platform::current()->getURLLoaderMockFactory()->serveAsynchronousRequests();
- Platform::current()->getURLLoaderMockFactory()->unregisterURL(url);
memoryCache()->remove(resource);
}
« no previous file with comments | « no previous file | third_party/WebKit/Source/platform/testing/weburl_loader_mock_factory_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698