| 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 "bindings/core/v8/TraceWrapperMember.h" | 5 #include "platform/bindings/TraceWrapperMember.h" |
| 6 | 6 |
| 7 #include "core/testing/DeathAwareScriptWrappable.h" | 7 #include "core/testing/DeathAwareScriptWrappable.h" |
| 8 #include "testing/gtest/include/gtest/gtest.h" | 8 #include "testing/gtest/include/gtest/gtest.h" |
| 9 | 9 |
| 10 namespace blink { | 10 namespace blink { |
| 11 | 11 |
| 12 namespace { | 12 namespace { |
| 13 | 13 |
| 14 using Wrapper = TraceWrapperMember<DeathAwareScriptWrappable>; | 14 using Wrapper = TraceWrapperMember<DeathAwareScriptWrappable>; |
| 15 | 15 |
| (...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 86 | 86 |
| 87 for (int i = 1; i < 10000; ++i) { | 87 for (int i = 1; i < 10000; ++i) { |
| 88 auto wrapper = map.Take(i); | 88 auto wrapper = map.Take(i); |
| 89 EXPECT_EQ(wrapper.Parent(), parent); | 89 EXPECT_EQ(wrapper.Parent(), parent); |
| 90 } | 90 } |
| 91 | 91 |
| 92 EXPECT_EQ(0u, map.size()); | 92 EXPECT_EQ(0u, map.size()); |
| 93 } | 93 } |
| 94 | 94 |
| 95 } // namespace blink | 95 } // namespace blink |
| OLD | NEW |