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

Unified Diff: third_party/WebKit/Source/core/css/CSSStyleSheetResourceTest.cpp

Issue 1807323002: [WeakMemoryCache 1a] Make Reference from Inspector to Resource weak, remove removedFromMemoryCache() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove some comments Created 4 years, 7 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/core/css/CSSStyleSheetResourceTest.cpp
diff --git a/third_party/WebKit/Source/core/css/CSSStyleSheetResourceTest.cpp b/third_party/WebKit/Source/core/css/CSSStyleSheetResourceTest.cpp
index 439cf17d303e5fc484b578a155251b9d20c0dbcf..c109a8594e3b04429a56c2dfffd54f57dd26684f 100644
--- a/third_party/WebKit/Source/core/css/CSSStyleSheetResourceTest.cpp
+++ b/third_party/WebKit/Source/core/css/CSSStyleSheetResourceTest.cpp
@@ -23,6 +23,7 @@
#include "core/fetch/ResourceFetcher.h"
#include "core/testing/DummyPageHolder.h"
#include "platform/heap/Handle.h"
+#include "platform/heap/Heap.h"
#include "platform/network/ResourceRequest.h"
#include "platform/testing/URLTestHelpers.h"
#include "platform/testing/UnitTestHelpers.h"
@@ -144,10 +145,10 @@ TEST_F(CSSStyleSheetResourceTest, DuplicateResourceNotCached)
// Verify that the cache will have a mapping for |imageResource| at |url|.
// The underlying |contents| for the stylesheet resource must have a
- // matching cache status.
+ // matching reference status.
EXPECT_TRUE(memoryCache()->contains(imageResource));
EXPECT_FALSE(memoryCache()->contains(cssResource));
- EXPECT_FALSE(contents->isInMemoryCache());
+ EXPECT_FALSE(contents->isReferencedFromResource());
EXPECT_FALSE(cssResource->restoreParsedStyleSheet(parserContext));
}
« no previous file with comments | « third_party/WebKit/Source/core/css/CSSStyleSheet.cpp ('k') | third_party/WebKit/Source/core/css/StyleSheetContents.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698