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

Unified Diff: third_party/WebKit/Source/web/tests/ActiveConnectionThrottlingTest.cpp

Issue 2846843002: [blink] Unique pointers in Platform.h (Closed)
Patch Set: fix compilation (and again) 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « third_party/WebKit/Source/web/WebViewImpl.cpp ('k') | third_party/WebKit/Source/web/tests/SpinLockTest.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/web/tests/ActiveConnectionThrottlingTest.cpp
diff --git a/third_party/WebKit/Source/web/tests/ActiveConnectionThrottlingTest.cpp b/third_party/WebKit/Source/web/tests/ActiveConnectionThrottlingTest.cpp
index 5173e794ba2f2f0020b67d560a938b0c55c6e4d9..7997723f2ad8b4721807100d81bfdf9716ef228a 100644
--- a/third_party/WebKit/Source/web/tests/ActiveConnectionThrottlingTest.cpp
+++ b/third_party/WebKit/Source/web/tests/ActiveConnectionThrottlingTest.cpp
@@ -5,6 +5,7 @@
#include "core/exported/WebViewBase.h"
#include "platform/scheduler/renderer/web_view_scheduler.h"
#include "platform/testing/TestingPlatformSupport.h"
+#include "platform/wtf/PtrUtil.h"
#include "public/platform/WebRTCError.h"
#include "public/platform/WebRTCPeerConnectionHandler.h"
#include "public/platform/WebRTCRtpReceiver.h"
@@ -97,9 +98,10 @@ class MockWebRTCPeerConnectionHandler : public WebRTCPeerConnectionHandler {
class TestingPlatformSupportWithWebRTC : public TestingPlatformSupport {
public:
- blink::WebRTCPeerConnectionHandler* CreateRTCPeerConnectionHandler(
+ std::unique_ptr<blink::WebRTCPeerConnectionHandler>
+ CreateRTCPeerConnectionHandler(
blink::WebRTCPeerConnectionHandlerClient*) override {
- return new MockWebRTCPeerConnectionHandler();
+ return WTF::MakeUnique<MockWebRTCPeerConnectionHandler>();
}
};
« no previous file with comments | « third_party/WebKit/Source/web/WebViewImpl.cpp ('k') | third_party/WebKit/Source/web/tests/SpinLockTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698