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

Unified Diff: third_party/WebKit/Source/platform/SharedBufferTest.cpp

Issue 2050123002: Remove OwnPtr from Blink. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: First attempt to land. Created 4 years, 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « third_party/WebKit/Source/platform/SharedBuffer.h ('k') | third_party/WebKit/Source/platform/TimerTest.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/platform/SharedBufferTest.cpp
diff --git a/third_party/WebKit/Source/platform/SharedBufferTest.cpp b/third_party/WebKit/Source/platform/SharedBufferTest.cpp
index 5dfda03d95418fbc32ee110b021e0ccbad8a0547..a93154e52890ee1e4963f1e05745a1b296f5ff5f 100644
--- a/third_party/WebKit/Source/platform/SharedBufferTest.cpp
+++ b/third_party/WebKit/Source/platform/SharedBufferTest.cpp
@@ -31,12 +31,12 @@
#include "platform/SharedBuffer.h"
#include "testing/gtest/include/gtest/gtest.h"
-#include "wtf/OwnPtr.h"
-#include "wtf/PassOwnPtr.h"
+#include "wtf/PtrUtil.h"
#include "wtf/RefPtr.h"
#include "wtf/Vector.h"
#include <algorithm>
#include <cstdlib>
+#include <memory>
namespace blink {
@@ -51,7 +51,7 @@ TEST(SharedBufferTest, getAsBytes)
sharedBuffer->append(testData2, strlen(testData2));
const size_t size = sharedBuffer->size();
- OwnPtr<char[]> data = adoptArrayPtr(new char[size]);
+ std::unique_ptr<char[]> data = wrapArrayUnique(new char[size]);
ASSERT_TRUE(sharedBuffer->getAsBytes(data.get(), size));
char expectedConcatenation[] = "HelloWorldGoodbye";
@@ -76,7 +76,7 @@ TEST(SharedBufferTest, getAsBytesLargeSegments)
sharedBuffer->append(vector2);
const size_t size = sharedBuffer->size();
- OwnPtr<char[]> data = adoptArrayPtr(new char[size]);
+ std::unique_ptr<char[]> data = wrapArrayUnique(new char[size]);
ASSERT_TRUE(sharedBuffer->getAsBytes(data.get(), size));
ASSERT_EQ(0x4000U + 0x4000U + 0x4000U, size);
« no previous file with comments | « third_party/WebKit/Source/platform/SharedBuffer.h ('k') | third_party/WebKit/Source/platform/TimerTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698