Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(350)

Side by Side Diff: third_party/WebKit/Source/platform/wtf/PtrUtilTest.cpp

Issue 2790463002: Fix WTF::makeUnique for arrays (Closed)
Patch Set: Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(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 "wtf/PtrUtil.h"
Yuta Kitamura 2017/03/30 07:00:33 Use "platform/wtf/PtrUtil.h"
cblume 2017/03/30 07:11:22 Done.
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 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698