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

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

Issue 2627793002: Remove unused code in InvalidatableInterpolation (Closed)
Patch Set: Simplify test in response to review Created 3 years, 11 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: third_party/WebKit/Source/core/animation/InterpolationEffectTest.cpp
diff --git a/third_party/WebKit/Source/core/animation/InterpolationEffectTest.cpp b/third_party/WebKit/Source/core/animation/InterpolationEffectTest.cpp
index df2589377a9e912e3c76eaf8ddb2b420f4d2dc1e..070ff2b28bf38ddd0872e2cc9b4b5e724e6d8caa 100644
--- a/third_party/WebKit/Source/core/animation/InterpolationEffectTest.cpp
+++ b/third_party/WebKit/Source/core/animation/InterpolationEffectTest.cpp
@@ -14,7 +14,7 @@ namespace {
class SampleInterpolation : public LegacyStyleInterpolation {
public:
- static PassRefPtr<Interpolation> create(
+ static PassRefPtr<LegacyStyleInterpolation> create(
std::unique_ptr<InterpolableValue> start,
std::unique_ptr<InterpolableValue> end) {
return adoptRef(new SampleInterpolation(std::move(start), std::move(end)));
@@ -34,12 +34,15 @@ const double duration = 1.0;
class AnimationInterpolationEffectTest : public ::testing::Test {
protected:
- InterpolableValue* interpolationValue(Interpolation& interpolation) {
+ InterpolableValue* interpolationValue(
+ LegacyStyleInterpolation& interpolation) {
return interpolation.getCachedValueForTesting();
}
double getInterpolableNumber(PassRefPtr<Interpolation> value) {
- return toInterpolableNumber(interpolationValue(*value.get()))->value();
+ LegacyStyleInterpolation& interpolation =
+ toLegacyStyleInterpolation(*value.get());
+ return toInterpolableNumber(interpolationValue(interpolation))->value();
}
};

Powered by Google App Engine
This is Rietveld 408576698