| OLD | NEW |
| 1 // Copyright (c) 2017 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2017 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/wtf/PtrUtil.h" | 5 #include "platform/wtf/PtrUtil.h" |
| 6 | 6 |
| 7 #include "testing/gtest/include/gtest/gtest.h" | 7 #include "testing/gtest/include/gtest/gtest.h" |
| 8 | 8 |
| 9 namespace WTF { | 9 namespace WTF { |
| 10 | 10 |
| (...skipping 17 matching lines...) Expand all Loading... |
| 28 | 28 |
| 29 ASSERT_TRUE(char_ptr.get()); | 29 ASSERT_TRUE(char_ptr.get()); |
| 30 } | 30 } |
| 31 | 31 |
| 32 TEST(WTF_PtrUtilTest, canMakeUniqueArray) { | 32 TEST(WTF_PtrUtilTest, canMakeUniqueArray) { |
| 33 constexpr size_t kBufferSize = 20; | 33 constexpr size_t kBufferSize = 20; |
| 34 auto char_array = MakeUnique<char[]>(kBufferSize); | 34 auto char_array = MakeUnique<char[]>(kBufferSize); |
| 35 | 35 |
| 36 ASSERT_TRUE(char_array.get()); | 36 ASSERT_TRUE(char_array.get()); |
| 37 } | 37 } |
| 38 } | 38 } // namespace WTF |
| OLD | NEW |