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

Unified Diff: Source/core/fetch/RawResourceTest.cpp

Issue 1327653004: Have uses of MockImageResourceClient leak less. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Clean up MockImageResourceClient somewhat Created 5 years, 3 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
« no previous file with comments | « Source/core/fetch/MockImageResourceClient.cpp ('k') | Source/core/fetch/ResourceFetcherTest.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/fetch/RawResourceTest.cpp
diff --git a/Source/core/fetch/RawResourceTest.cpp b/Source/core/fetch/RawResourceTest.cpp
index 47b63e60edaf2a5e9f2528aceab5145ce8a9b7b3..2b0a4801469f83139dadab5eee8d11da6dc99169 100644
--- a/Source/core/fetch/RawResourceTest.cpp
+++ b/Source/core/fetch/RawResourceTest.cpp
@@ -43,6 +43,8 @@
#include "public/platform/WebURLResponse.h"
#include "public/platform/WebUnitTestSupport.h"
+#include <gtest/gtest.h>
+
namespace blink {
TEST(RawResourceTest, DontIgnoreAcceptForCacheReuse)
@@ -80,6 +82,7 @@ TEST(RawResourceTest, RevalidationSucceeded)
EXPECT_EQ(memoryCache()->resourceForURL(KURL(ParsedURLString, "data:text/html,")), oldResource.get());
EXPECT_EQ(oldResource.get(), newResource.get());
EXPECT_NE(newResource.get(), newResourcePointer);
+ memoryCache()->remove(newResource.get());
}
class DummyClient : public RawResourceClient {
« no previous file with comments | « Source/core/fetch/MockImageResourceClient.cpp ('k') | Source/core/fetch/ResourceFetcherTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698