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

Unified Diff: third_party/WebKit/Source/platform/animation/CompositorAnimationTimelineTest.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/platform/animation/CompositorAnimationTimelineTest.cpp
diff --git a/third_party/WebKit/Source/platform/animation/CompositorAnimationTimelineTest.cpp b/third_party/WebKit/Source/platform/animation/CompositorAnimationTimelineTest.cpp
index 99912f9884f1aded3fd2a75c43a2cc1e51ae19d1..c4d4d5d006fd0d508be3096a2786f88d093c6764 100644
--- a/third_party/WebKit/Source/platform/animation/CompositorAnimationTimelineTest.cpp
+++ b/third_party/WebKit/Source/platform/animation/CompositorAnimationTimelineTest.cpp
@@ -9,6 +9,8 @@
#include "platform/animation/CompositorAnimationPlayer.h"
#include "platform/testing/CompositorTest.h"
#include "platform/testing/WebLayerTreeViewImplForTesting.h"
+#include "wtf/PtrUtil.h"
+#include <memory>
namespace blink {
@@ -17,12 +19,12 @@ class CompositorAnimationTimelineTest : public CompositorTest {
TEST_F(CompositorAnimationTimelineTest, CompositorTimelineDeletionDetachesFromAnimationHost)
{
- OwnPtr<CompositorAnimationTimeline> timeline = CompositorAnimationTimeline::create();
+ std::unique_ptr<CompositorAnimationTimeline> timeline = CompositorAnimationTimeline::create();
scoped_refptr<cc::AnimationTimeline> ccTimeline = timeline->animationTimeline();
EXPECT_FALSE(ccTimeline->animation_host());
- OwnPtr<WebLayerTreeView> layerTreeHost = adoptPtr(new WebLayerTreeViewImplForTesting);
+ std::unique_ptr<WebLayerTreeView> layerTreeHost = wrapUnique(new WebLayerTreeViewImplForTesting);
DCHECK(layerTreeHost);
layerTreeHost->attachCompositorAnimationTimeline(timeline->animationTimeline());

Powered by Google App Engine
This is Rietveld 408576698