| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2012 Apple Inc. All rights reserved. | 2 * Copyright (C) 2012 Apple 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 | 5 * modification, are permitted provided that the following conditions |
| 6 * are met: | 6 * are met: |
| 7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
| 8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
| 9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
| 10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
| (...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 121 EXPECT_TRUE(deleted1); | 121 EXPECT_TRUE(deleted1); |
| 122 | 122 |
| 123 set.clear(); | 123 set.clear(); |
| 124 EXPECT_TRUE(deleted2); | 124 EXPECT_TRUE(deleted2); |
| 125 EXPECT_TRUE(set.isEmpty()); | 125 EXPECT_TRUE(set.isEmpty()); |
| 126 | 126 |
| 127 deleted1 = false; | 127 deleted1 = false; |
| 128 deleted2 = false; | 128 deleted2 = false; |
| 129 { | 129 { |
| 130 OwnPtrSet set; | 130 OwnPtrSet set; |
| 131 set.add(wrapUnique(new Dummy(deleted1))); | 131 set.add(makeUnique<Dummy>(deleted1)); |
| 132 set.add(wrapUnique(new Dummy(deleted2))); | 132 set.add(makeUnique<Dummy>(deleted2)); |
| 133 } | 133 } |
| 134 EXPECT_TRUE(deleted1); | 134 EXPECT_TRUE(deleted1); |
| 135 EXPECT_TRUE(deleted2); | 135 EXPECT_TRUE(deleted2); |
| 136 | 136 |
| 137 deleted1 = false; | 137 deleted1 = false; |
| 138 deleted2 = false; | 138 deleted2 = false; |
| 139 std::unique_ptr<Dummy> ownPtr1; | 139 std::unique_ptr<Dummy> ownPtr1; |
| 140 std::unique_ptr<Dummy> ownPtr2; | 140 std::unique_ptr<Dummy> ownPtr2; |
| 141 ptr1 = new Dummy(deleted1); | 141 ptr1 = new Dummy(deleted1); |
| 142 ptr2 = new Dummy(deleted2); | 142 ptr2 = new Dummy(deleted2); |
| (...skipping 354 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 497 | 497 |
| 498 // Other ways of construction: as a function parameter and in a return | 498 // Other ways of construction: as a function parameter and in a return |
| 499 // statement. | 499 // statement. |
| 500 EXPECT_TRUE(isOneTwoThree({1, 2, 3})); | 500 EXPECT_TRUE(isOneTwoThree({1, 2, 3})); |
| 501 EXPECT_TRUE(isOneTwoThree(returnOneTwoThree())); | 501 EXPECT_TRUE(isOneTwoThree(returnOneTwoThree())); |
| 502 } | 502 } |
| 503 | 503 |
| 504 } // anonymous namespace | 504 } // anonymous namespace |
| 505 | 505 |
| 506 } // namespace WTF | 506 } // namespace WTF |
| OLD | NEW |