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

Unified Diff: Source/core/animation/ColorStyleInterpolationTest.cpp

Issue 1303173007: Oilpan: Unship Oilpan from CSSValues Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 4 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: Source/core/animation/ColorStyleInterpolationTest.cpp
diff --git a/Source/core/animation/ColorStyleInterpolationTest.cpp b/Source/core/animation/ColorStyleInterpolationTest.cpp
index 2cf4a04b425ddcc9a39c6073efde1c43ffeb4947..8a6fa3a92fd4e7b5d0a04a3da8fbfa906587c00b 100644
--- a/Source/core/animation/ColorStyleInterpolationTest.cpp
+++ b/Source/core/animation/ColorStyleInterpolationTest.cpp
@@ -20,17 +20,17 @@ protected:
return ColorStyleInterpolation::colorToInterpolableValue(value);
}
- static PassRefPtrWillBeRawPtr<CSSValue> interpolableValueToColor(InterpolableValue* value)
+ static PassRefPtr<CSSValue> interpolableValueToColor(InterpolableValue* value)
{
return ColorStyleInterpolation::interpolableValueToColor(*value);
}
- static PassRefPtrWillBeRawPtr<CSSValue> roundTrip(PassRefPtrWillBeRawPtr<CSSValue> value)
+ static PassRefPtr<CSSValue> roundTrip(PassRefPtr<CSSValue> value)
{
return interpolableValueToColor(colorToInterpolableValue(*value).get());
}
- static void testPrimitiveValue(PassRefPtrWillBeRawPtr<CSSValue> value, RGBA32 rgbaValue)
+ static void testPrimitiveValue(PassRefPtr<CSSValue> value, RGBA32 rgbaValue)
{
EXPECT_TRUE(value->isPrimitiveValue());
EXPECT_EQ(toCSSPrimitiveValue(value.get())->getRGBA32Value(), rgbaValue);
@@ -44,13 +44,13 @@ protected:
TEST_F(AnimationColorStyleInterpolationTest, Color)
{
- RefPtrWillBeRawPtr<CSSValue> value = roundTrip(CSSPrimitiveValue::createColor(makeRGBA(54, 48, 214, 64)));
+ RefPtr<CSSValue> value = roundTrip(CSSPrimitiveValue::createColor(makeRGBA(54, 48, 214, 64)));
testPrimitiveValue(value, makeRGBA(54, 48, 214, 64));
}
TEST_F(AnimationColorStyleInterpolationTest, ClampedColor)
{
- RefPtrWillBeRawPtr<CSSValue> value = roundTrip(CSSPrimitiveValue::createColor(makeRGBA(-10, -10, -10, -10)));
+ RefPtr<CSSValue> value = roundTrip(CSSPrimitiveValue::createColor(makeRGBA(-10, -10, -10, -10)));
testPrimitiveValue(value, makeRGBA(-10, -10, -10, -10));
value = roundTrip(CSSPrimitiveValue::createColor(makeRGBA(-260, -260, -260, -260)));
@@ -59,13 +59,13 @@ TEST_F(AnimationColorStyleInterpolationTest, ClampedColor)
TEST_F(AnimationColorStyleInterpolationTest, ZeroAlpha)
{
- RefPtrWillBeRawPtr<CSSValue> value = roundTrip(CSSPrimitiveValue::createColor(makeRGBA(54, 58, 214, 0)));
+ RefPtr<CSSValue> value = roundTrip(CSSPrimitiveValue::createColor(makeRGBA(54, 58, 214, 0)));
testPrimitiveValue(value, Color::transparent);
}
TEST_F(AnimationColorStyleInterpolationTest, ValueIDColor)
{
- RefPtrWillBeRawPtr<CSSValue> value = roundTrip(CSSPrimitiveValue::createIdentifier(CSSValueID::CSSValueBlue));
+ RefPtr<CSSValue> value = roundTrip(CSSPrimitiveValue::createIdentifier(CSSValueID::CSSValueBlue));
testPrimitiveValue(value, makeRGB(0, 0, 255));
}
@@ -78,7 +78,7 @@ TEST_F(AnimationColorStyleInterpolationTest, Interpolation)
);
interpolation->interpolate(0, 0.5);
- RefPtrWillBeRawPtr<CSSValue> value = interpolableValueToColor(interpolationValue(*interpolation));
+ RefPtr<CSSValue> value = interpolableValueToColor(interpolationValue(*interpolation));
testPrimitiveValue(value, makeRGBA(128, 128, 128, 255));
}
« no previous file with comments | « Source/core/animation/ColorStyleInterpolation.cpp ('k') | Source/core/animation/ConstantStyleInterpolation.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698