| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2013 Google Inc. All rights reserved. | 2 * Copyright (C) 2013 Google Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
| 6 * met: | 6 * met: |
| 7 * | 7 * |
| 8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
| (...skipping 3861 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3872 // Collect |vec| and |one|. | 3872 // Collect |vec| and |one|. |
| 3873 vec = 0; | 3873 vec = 0; |
| 3874 preciselyCollectGarbage(); | 3874 preciselyCollectGarbage(); |
| 3875 EXPECT_EQ(1, IntWrapper::s_destructorCalls); | 3875 EXPECT_EQ(1, IntWrapper::s_destructorCalls); |
| 3876 | 3876 |
| 3877 EXPECT_EQ(2u, pVec.size()); | 3877 EXPECT_EQ(2u, pVec.size()); |
| 3878 EXPECT_EQ(two, pVec.at(0)); | 3878 EXPECT_EQ(two, pVec.at(0)); |
| 3879 EXPECT_EQ(three, pVec.at(1)); | 3879 EXPECT_EQ(three, pVec.at(1)); |
| 3880 | 3880 |
| 3881 EXPECT_EQ(2u, pDeque.size()); | 3881 EXPECT_EQ(2u, pDeque.size()); |
| 3882 EXPECT_EQ(seven, pDeque.first()); | 3882 EXPECT_EQ(seven, pDeque.front()); |
| 3883 EXPECT_EQ(seven, pDeque.takeFirst()); | 3883 EXPECT_EQ(seven, pDeque.takeFirst()); |
| 3884 EXPECT_EQ(two, pDeque.first()); | 3884 EXPECT_EQ(two, pDeque.front()); |
| 3885 | 3885 |
| 3886 EXPECT_EQ(1u, pDeque.size()); | 3886 EXPECT_EQ(1u, pDeque.size()); |
| 3887 | 3887 |
| 3888 EXPECT_EQ(1u, pSet.size()); | 3888 EXPECT_EQ(1u, pSet.size()); |
| 3889 EXPECT_TRUE(pSet.contains(four)); | 3889 EXPECT_TRUE(pSet.contains(four)); |
| 3890 | 3890 |
| 3891 EXPECT_EQ(1u, pListSet.size()); | 3891 EXPECT_EQ(1u, pListSet.size()); |
| 3892 EXPECT_TRUE(pListSet.contains(eight)); | 3892 EXPECT_TRUE(pListSet.contains(eight)); |
| 3893 | 3893 |
| 3894 EXPECT_EQ(1u, pLinkedSet.size()); | 3894 EXPECT_EQ(1u, pLinkedSet.size()); |
| (...skipping 2450 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6345 "HeapVector"); | 6345 "HeapVector"); |
| 6346 static_assert( | 6346 static_assert( |
| 6347 WTF::IsGarbageCollectedType<HeapDeque<Member<IntWrapper>>>::value, | 6347 WTF::IsGarbageCollectedType<HeapDeque<Member<IntWrapper>>>::value, |
| 6348 "HeapDeque"); | 6348 "HeapDeque"); |
| 6349 static_assert(WTF::IsGarbageCollectedType< | 6349 static_assert(WTF::IsGarbageCollectedType< |
| 6350 HeapTerminatedArray<Member<IntWrapper>>>::value, | 6350 HeapTerminatedArray<Member<IntWrapper>>>::value, |
| 6351 "HeapTerminatedArray"); | 6351 "HeapTerminatedArray"); |
| 6352 } | 6352 } |
| 6353 | 6353 |
| 6354 } // namespace blink | 6354 } // namespace blink |
| OLD | NEW |