| 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);
|
| }
|
|
|
|
|