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

Unified Diff: third_party/WebKit/Source/modules/mediastream/RTCDataChannelTest.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
Index: third_party/WebKit/Source/modules/mediastream/RTCDataChannelTest.cpp
diff --git a/third_party/WebKit/Source/modules/mediastream/RTCDataChannelTest.cpp b/third_party/WebKit/Source/modules/mediastream/RTCDataChannelTest.cpp
index 500a4c2d93d395e0c7deebea363cbd38ae861372..de660958b53d8b14d169ba175828ccdebd0a7d77 100644
--- a/third_party/WebKit/Source/modules/mediastream/RTCDataChannelTest.cpp
+++ b/third_party/WebKit/Source/modules/mediastream/RTCDataChannelTest.cpp
@@ -12,6 +12,7 @@
#include "public/platform/WebRTCDataChannelHandler.h"
#include "public/platform/WebVector.h"
#include "testing/gtest/include/gtest/gtest.h"
+#include "wtf/PtrUtil.h"
#include "wtf/RefPtr.h"
#include "wtf/text/WTFString.h"
@@ -77,7 +78,7 @@ private:
TEST(RTCDataChannelTest, BufferedAmount)
{
MockHandler* handler = new MockHandler();
- RTCDataChannel* channel = RTCDataChannel::create(0, adoptPtr(handler));
+ RTCDataChannel* channel = RTCDataChannel::create(0, wrapUnique(handler));
handler->changeState(WebRTCDataChannelHandlerClient::ReadyStateOpen);
String message(std::string(100, 'A').c_str());
@@ -88,7 +89,7 @@ TEST(RTCDataChannelTest, BufferedAmount)
TEST(RTCDataChannelTest, BufferedAmountLow)
{
MockHandler* handler = new MockHandler();
- RTCDataChannel* channel = RTCDataChannel::create(0, adoptPtr(handler));
+ RTCDataChannel* channel = RTCDataChannel::create(0, wrapUnique(handler));
// Add and drain 100 bytes
handler->changeState(WebRTCDataChannelHandlerClient::ReadyStateOpen);

Powered by Google App Engine
This is Rietveld 408576698