Index: cc/layers/layer_unittest.cc |
diff --git a/cc/layers/layer_unittest.cc b/cc/layers/layer_unittest.cc |
index 4dfe86a4cc52126a313df43b7e9448d44e4e92d3..460726f55335658ec76239bc5608fe9ea0e9314e 100644 |
--- a/cc/layers/layer_unittest.cc |
+++ b/cc/layers/layer_unittest.cc |
@@ -1144,8 +1144,9 @@ TEST(LayerLayerTreeHostTest, DestroyHostWithNonNullRootLayer) { |
static bool AddTestAnimation(Layer* layer) { |
scoped_ptr<KeyframedFloatAnimationCurve> curve = |
KeyframedFloatAnimationCurve::Create(); |
- curve->AddKeyframe(FloatKeyframe::Create(0.0, 0.3f, nullptr)); |
- curve->AddKeyframe(FloatKeyframe::Create(1.0, 0.7f, nullptr)); |
+ curve->AddKeyframe(FloatKeyframe::Create(base::TimeDelta(), 0.3f, nullptr)); |
+ curve->AddKeyframe( |
+ FloatKeyframe::Create(base::TimeDelta::FromSecondsD(1.0), 0.7f, nullptr)); |
scoped_ptr<Animation> animation = |
Animation::Create(curve.Pass(), 0, 0, Animation::Opacity); |