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

Unified Diff: third_party/WebKit/Source/platform/scheduler/base/intrusive_heap_unittest.cc

Issue 2453013004: Fix use-after-scope bug in IntrusiveHeapTest.HeapIndex. (Closed)
Patch Set: Created 4 years, 2 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/platform/scheduler/base/intrusive_heap_unittest.cc
diff --git a/third_party/WebKit/Source/platform/scheduler/base/intrusive_heap_unittest.cc b/third_party/WebKit/Source/platform/scheduler/base/intrusive_heap_unittest.cc
index 1f7bb6f6a716dcbd59954c45b354a14268d2b36c..e28d2ed4897327d4d4574ee509424fe7e1951d92 100644
--- a/third_party/WebKit/Source/platform/scheduler/base/intrusive_heap_unittest.cc
+++ b/third_party/WebKit/Source/platform/scheduler/base/intrusive_heap_unittest.cc
@@ -104,12 +104,12 @@ TEST(IntrusiveHeapTest, InsertDescending) {
}
TEST(IntrusiveHeapTest, HeapIndex) {
- IntrusiveHeap<TestElement> heap;
HeapHandle index5;
HeapHandle index4;
HeapHandle index3;
HeapHandle index2;
HeapHandle index1;
+ IntrusiveHeap<TestElement> heap;
EXPECT_FALSE(index1.IsValid());
EXPECT_FALSE(index2.IsValid());
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698