Chromium Code Reviews| Index: third_party/WebKit/Source/platform/wtf/PtrUtilTest.cpp |
| diff --git a/third_party/WebKit/Source/platform/wtf/PtrUtilTest.cpp b/third_party/WebKit/Source/platform/wtf/PtrUtilTest.cpp |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..9bfadd7b7f72a04382d858575ce1f4b2131cab9f |
| --- /dev/null |
| +++ b/third_party/WebKit/Source/platform/wtf/PtrUtilTest.cpp |
| @@ -0,0 +1,14 @@ |
| +// Copyright (c) 2017 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +#include "wtf/PtrUtil.h" |
|
Yuta Kitamura
2017/03/30 07:00:33
Use "platform/wtf/PtrUtil.h"
cblume
2017/03/30 07:11:22
Done.
|
| + |
| +#include "testing/gtest/include/gtest/gtest.h" |
| + |
| +TEST(WTF_PtrUtilTest, canMakeUniqueArray) { |
| + constexpr size_t bufferSize = 20; |
| + auto charArray = WTF::makeUnique<char[]>(bufferSize); |
| + |
| + ASSERT_TRUE(charArray.get()); |
| +} |