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

Unified Diff: third_party/WebKit/Source/core/html/HTMLVideoElementTest.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/core/html/HTMLVideoElementTest.cpp
diff --git a/third_party/WebKit/Source/core/html/HTMLVideoElementTest.cpp b/third_party/WebKit/Source/core/html/HTMLVideoElementTest.cpp
index 23c88ae28ba6b29730e6015a445d24fe6cb49047..d50e429a3777a58bd47feea77582c39eaad14e73 100644
--- a/third_party/WebKit/Source/core/html/HTMLVideoElementTest.cpp
+++ b/third_party/WebKit/Source/core/html/HTMLVideoElementTest.cpp
@@ -14,6 +14,8 @@
#include "public/platform/WebSize.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
+#include "wtf/PtrUtil.h"
+#include <memory>
namespace blink {
@@ -64,9 +66,9 @@ public:
return new StubFrameLoaderClient;
}
- PassOwnPtr<WebMediaPlayer> createWebMediaPlayer(HTMLMediaElement&, const WebMediaPlayerSource&, WebMediaPlayerClient*) override
+ std::unique_ptr<WebMediaPlayer> createWebMediaPlayer(HTMLMediaElement&, const WebMediaPlayerSource&, WebMediaPlayerClient*) override
{
- return adoptPtr(new MockWebMediaPlayer);
+ return wrapUnique(new MockWebMediaPlayer);
}
};
@@ -93,7 +95,7 @@ protected:
return static_cast<MockWebMediaPlayer*>(m_video->webMediaPlayer());
}
- OwnPtr<DummyPageHolder> m_dummyPageHolder;
+ std::unique_ptr<DummyPageHolder> m_dummyPageHolder;
Persistent<HTMLVideoElement> m_video;
};
« no previous file with comments | « third_party/WebKit/Source/core/html/HTMLVideoElement.cpp ('k') | third_party/WebKit/Source/core/html/LinkManifest.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698