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

Unified Diff: third_party/WebKit/Source/platform/animation/CompositorAnimationTest.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/platform/animation/CompositorAnimationTest.cpp
diff --git a/third_party/WebKit/Source/platform/animation/CompositorAnimationTest.cpp b/third_party/WebKit/Source/platform/animation/CompositorAnimationTest.cpp
index b2301931a18dbefa1f486f5cf9b02879bc2711e3..066b14e0f7b3c4262e28ebc54e7933d3f02c5b41 100644
--- a/third_party/WebKit/Source/platform/animation/CompositorAnimationTest.cpp
+++ b/third_party/WebKit/Source/platform/animation/CompositorAnimationTest.cpp
@@ -11,8 +11,8 @@ namespace blink {
TEST(WebCompositorAnimationTest, DefaultSettings)
{
- std::unique_ptr<CompositorAnimationCurve> curve = CompositorFloatAnimationCurve::create();
- std::unique_ptr<CompositorAnimation> animation = CompositorAnimation::create(
+ OwnPtr<CompositorAnimationCurve> curve = CompositorFloatAnimationCurve::create();
+ OwnPtr<CompositorAnimation> animation = CompositorAnimation::create(
*curve, CompositorTargetProperty::OPACITY, 1, 0);
// Ensure that the defaults are correct.
@@ -24,8 +24,8 @@ TEST(WebCompositorAnimationTest, DefaultSettings)
TEST(WebCompositorAnimationTest, ModifiedSettings)
{
- std::unique_ptr<CompositorFloatAnimationCurve> curve = CompositorFloatAnimationCurve::create();
- std::unique_ptr<CompositorAnimation> animation = CompositorAnimation::create(
+ OwnPtr<CompositorFloatAnimationCurve> curve = CompositorFloatAnimationCurve::create();
+ OwnPtr<CompositorAnimation> animation = CompositorAnimation::create(
*curve, CompositorTargetProperty::OPACITY, 1, 0);
animation->setIterations(2);
animation->setStartTime(2);

Powered by Google App Engine
This is Rietveld 408576698