Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 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 | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #include "platform/wtf/PtrUtil.h" | |
| 6 | |
| 7 #include "testing/gtest/include/gtest/gtest.h" | |
| 8 | |
| 9 TEST(WTF_PtrUtilTest, canMakeUniqueArray) { | |
| 10 constexpr size_t bufferSize = 20; | |
| 11 auto charArray = WTF::makeUnique<char[]>(bufferSize); | |
| 12 | |
| 13 ASSERT_TRUE(charArray.get()); | |
| 14 } | |
| OLD | NEW |