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

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

Issue 2870543002: Removed PassRefPtr to RefPtr copies from unit tests. (Closed)
Patch Set: Created 3 years, 7 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/modules/fetch/BytesConsumerTest.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/CompositorAnimationsTest.cpp
diff --git a/third_party/WebKit/Source/core/animation/CompositorAnimationsTest.cpp b/third_party/WebKit/Source/core/animation/CompositorAnimationsTest.cpp
index e681582e0ae9346c73e8c1edce85a81ed93043a1..0b4fc4030e642cc8060b2c23d68113800aa2cd6e 100644
--- a/third_party/WebKit/Source/core/animation/CompositorAnimationsTest.cpp
+++ b/third_party/WebKit/Source/core/animation/CompositorAnimationsTest.cpp
@@ -242,15 +242,10 @@ class AnimationCompositorAnimationsTest : public ::testing::Test {
}
AnimatableValueKeyframeEffectModel* CreateKeyframeEffectModel(
- PassRefPtr<AnimatableValueKeyframe> prp_from,
- PassRefPtr<AnimatableValueKeyframe> prp_to,
- PassRefPtr<AnimatableValueKeyframe> prp_c = nullptr,
- PassRefPtr<AnimatableValueKeyframe> prp_d = nullptr) {
- RefPtr<AnimatableValueKeyframe> from = prp_from;
- RefPtr<AnimatableValueKeyframe> to = prp_to;
- RefPtr<AnimatableValueKeyframe> c = prp_c;
- RefPtr<AnimatableValueKeyframe> d = prp_d;
-
+ RefPtr<AnimatableValueKeyframe> from,
+ RefPtr<AnimatableValueKeyframe> to,
+ RefPtr<AnimatableValueKeyframe> c = nullptr,
+ RefPtr<AnimatableValueKeyframe> d = nullptr) {
EXPECT_EQ(from->Offset(), 0);
AnimatableValueKeyframeVector frames;
frames.push_back(from);
« no previous file with comments | « no previous file | third_party/WebKit/Source/modules/fetch/BytesConsumerTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698