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

Unified Diff: third_party/WebKit/Source/core/html/HTMLVideoElementTest.cpp

Issue 2080623002: Revert "Remove OwnPtr from Blink." (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 d50e429a3777a58bd47feea77582c39eaad14e73..23c88ae28ba6b29730e6015a445d24fe6cb49047 100644
--- a/third_party/WebKit/Source/core/html/HTMLVideoElementTest.cpp
+++ b/third_party/WebKit/Source/core/html/HTMLVideoElementTest.cpp
@@ -14,8 +14,6 @@
#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 {
@@ -66,9 +64,9 @@ public:
return new StubFrameLoaderClient;
}
- std::unique_ptr<WebMediaPlayer> createWebMediaPlayer(HTMLMediaElement&, const WebMediaPlayerSource&, WebMediaPlayerClient*) override
+ PassOwnPtr<WebMediaPlayer> createWebMediaPlayer(HTMLMediaElement&, const WebMediaPlayerSource&, WebMediaPlayerClient*) override
{
- return wrapUnique(new MockWebMediaPlayer);
+ return adoptPtr(new MockWebMediaPlayer);
}
};
@@ -95,7 +93,7 @@ protected:
return static_cast<MockWebMediaPlayer*>(m_video->webMediaPlayer());
}
- std::unique_ptr<DummyPageHolder> m_dummyPageHolder;
+ OwnPtr<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