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

Unified Diff: third_party/WebKit/Source/core/animation/AnimationSimTest.cpp

Issue 2956583002: Removed usage of RefPtr::Release in unit tests (Closed)
Patch Set: Created 3 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
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/animation/CompositorAnimationsTest.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/animation/AnimationSimTest.cpp
diff --git a/third_party/WebKit/Source/core/animation/AnimationSimTest.cpp b/third_party/WebKit/Source/core/animation/AnimationSimTest.cpp
index d4496f3458bbd17c05903975733c6352f8ef5c9b..72e6654127c39cd4951b54788a417db5263e0e1a 100644
--- a/third_party/WebKit/Source/core/animation/AnimationSimTest.cpp
+++ b/third_party/WebKit/Source/core/animation/AnimationSimTest.cpp
@@ -66,7 +66,7 @@ TEST_F(AnimationSimTest, CustomPropertyBaseComputedStyle) {
"100%",
GetDocument().ElementSheet().Contents());
StringKeyframeVector keyframes;
- keyframes.push_back(keyframe.Release());
+ keyframes.push_back(std::move(keyframe));
Timing timing;
timing.iteration_duration = 1; // Seconds.
ElementAnimation::animateInternal(
@@ -86,7 +86,7 @@ TEST_F(AnimationSimTest, CustomPropertyBaseComputedStyle) {
"100%",
GetDocument().ElementSheet().Contents());
keyframes.clear();
- keyframes.push_back(keyframe.Release());
+ keyframes.push_back(std::move(keyframe));
timing = Timing::Defaults();
timing.iteration_duration = 1; // Seconds.
ElementAnimation::animateInternal(
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/animation/CompositorAnimationsTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698