summaryrefslogtreecommitdiff
path: root/chromium/third_party/blink/renderer/platform/heap/address_cache_test.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/third_party/blink/renderer/platform/heap/address_cache_test.cc')
-rw-r--r--chromium/third_party/blink/renderer/platform/heap/address_cache_test.cc6
1 files changed, 6 insertions, 0 deletions
diff --git a/chromium/third_party/blink/renderer/platform/heap/address_cache_test.cc b/chromium/third_party/blink/renderer/platform/heap/address_cache_test.cc
index 001b32ce553..280920dd1c4 100644
--- a/chromium/third_party/blink/renderer/platform/heap/address_cache_test.cc
+++ b/chromium/third_party/blink/renderer/platform/heap/address_cache_test.cc
@@ -15,6 +15,12 @@ const Address kObjectAddress = reinterpret_cast<Address>(kBlinkPageSize);
} // namespace
+TEST(AddressCacheTest, Scope) {
+ AddressCache cache;
+ AddressCache::EnabledScope scope(&cache);
+ EXPECT_FALSE(cache.Lookup(kObjectAddress));
+}
+
TEST(AddressCacheTest, InitialIsEmpty) {
AddressCache cache;
cache.EnableLookup();