Chromium Code Reviews| Index: Source/core/animation/AnimatableValueTestHelperTest.cpp |
| diff --git a/Source/core/animation/AnimatableValueTestHelperTest.cpp b/Source/core/animation/AnimatableValueTestHelperTest.cpp |
| index d7f98ca3d0aaa2c06d6a99e14c6d375e3068be40..ef23fddf29b7491b4c2e9928dd26ace53cc8bda7 100644 |
| --- a/Source/core/animation/AnimatableValueTestHelperTest.cpp |
| +++ b/Source/core/animation/AnimatableValueTestHelperTest.cpp |
| @@ -50,15 +50,10 @@ namespace { |
| class AnimationAnimatableValueTestHelperTest : public ::testing::Test { |
| protected: |
| - ::std::string PrintToString(PassRefPtr<AnimatableValue> animValue) |
| + ::std::string PrintToString(PassRefPtrWillBeRawPtr<AnimatableValue> animValue) |
| { |
| return PrintToString(animValue.get()); |
| } |
| - |
| - ::std::string PrintToString(const AnimatableValue* animValue) |
| - { |
| - return ::testing::PrintToString(*animValue); |
| - } |
| }; |
| TEST_F(AnimationAnimatableValueTestHelperTest, PrintTo) |
| @@ -104,10 +99,10 @@ TEST_F(AnimationAnimatableValueTestHelperTest, PrintTo) |
| ))); |
| EXPECT_THAT( |
| - PrintToString(AnimatableValue::neutralValue()), |
| + PrintToString(const_cast<AnimatableValue*>(AnimatableValue::neutralValue())), |
|
haraken
2014/03/21 17:21:33
I think you're talking about this const_cast, but
|
| testing::StartsWith("AnimatableNeutral@")); |
| - Vector<RefPtr<AnimatableValue> > v1; |
| + WillBeHeapVector<RefPtrWillBeMember<AnimatableValue> > v1; |
| v1.append(AnimatableLength::create(CSSPrimitiveValue::create(3, CSSPrimitiveValue::CSS_REMS).get())); |
| v1.append(AnimatableLength::create(CSSPrimitiveValue::create(4, CSSPrimitiveValue::CSS_PT).get())); |
| EXPECT_EQ( |