| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "platform/heap/HeapCompact.h" | 5 #include "platform/heap/HeapCompact.h" |
| 6 | 6 |
| 7 #include "platform/heap/Handle.h" | 7 #include "platform/heap/Handle.h" |
| 8 #include "platform/heap/SparseHeapBitmap.h" | 8 #include "platform/heap/SparseHeapBitmap.h" |
| 9 #include "platform/wtf/Deque.h" |
| 10 #include "platform/wtf/HashMap.h" |
| 11 #include "platform/wtf/LinkedHashSet.h" |
| 12 #include "platform/wtf/Vector.h" |
| 9 #include "testing/gtest/include/gtest/gtest.h" | 13 #include "testing/gtest/include/gtest/gtest.h" |
| 10 #include "wtf/Deque.h" | |
| 11 #include "wtf/HashMap.h" | |
| 12 #include "wtf/LinkedHashSet.h" | |
| 13 #include "wtf/Vector.h" | |
| 14 | 14 |
| 15 #include <memory> | 15 #include <memory> |
| 16 | 16 |
| 17 namespace blink { | 17 namespace blink { |
| 18 class IntWrapper; | 18 class IntWrapper; |
| 19 } | 19 } |
| 20 | 20 |
| 21 using IntVector = blink::HeapVector<blink::Member<blink::IntWrapper>>; | 21 using IntVector = blink::HeapVector<blink::Member<blink::IntWrapper>>; |
| 22 using IntDeque = blink::HeapDeque<blink::Member<blink::IntWrapper>>; | 22 using IntDeque = blink::HeapDeque<blink::Member<blink::IntWrapper>>; |
| 23 using IntMap = blink::HeapHashMap<blink::Member<blink::IntWrapper>, int>; | 23 using IntMap = blink::HeapHashMap<blink::Member<blink::IntWrapper>, int>; |
| (...skipping 428 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 452 | 452 |
| 453 expected = 0; | 453 expected = 0; |
| 454 for (const Inner* v : *set) { | 454 for (const Inner* v : *set) { |
| 455 EXPECT_EQ(1u, v->size()); | 455 EXPECT_EQ(1u, v->size()); |
| 456 EXPECT_EQ(expected, (*v->begin())->value()); | 456 EXPECT_EQ(expected, (*v->begin())->value()); |
| 457 expected++; | 457 expected++; |
| 458 } | 458 } |
| 459 } | 459 } |
| 460 | 460 |
| 461 } // namespace blink | 461 } // namespace blink |
| OLD | NEW |