| OLD | NEW |
| 1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "config.h" | 5 #include "config.h" |
| 6 | 6 |
| 7 #include <public/WebTransformAnimationCurve.h> | 7 #include <public/WebTransformAnimationCurve.h> |
| 8 | 8 |
| 9 #include "CCTimingFunction.h" | 9 #include "cc/timing_function.h" |
| 10 | 10 |
| 11 #include <gtest/gtest.h> | 11 #include <gtest/gtest.h> |
| 12 #include <public/WebTransformOperations.h> | 12 #include <public/WebTransformOperations.h> |
| 13 #include <public/WebTransformationMatrix.h> | 13 #include <public/WebTransformationMatrix.h> |
| 14 #include <wtf/OwnPtr.h> | 14 #include <wtf/OwnPtr.h> |
| 15 #include <wtf/PassOwnPtr.h> | 15 #include <wtf/PassOwnPtr.h> |
| 16 | 16 |
| 17 using namespace WebKit; | 17 using namespace WebKit; |
| 18 | 18 |
| 19 namespace { | 19 namespace { |
| (...skipping 248 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 268 curve->add(WebTransformKeyframe(1, operations2), WebAnimationCurve::TimingFu
nctionTypeLinear); | 268 curve->add(WebTransformKeyframe(1, operations2), WebAnimationCurve::TimingFu
nctionTypeLinear); |
| 269 | 269 |
| 270 scoped_ptr<cc::CCTimingFunction> timingFunction(cc::CCEaseTimingFunction::cr
eate()); | 270 scoped_ptr<cc::CCTimingFunction> timingFunction(cc::CCEaseTimingFunction::cr
eate()); |
| 271 for (int i = 0; i <= 4; ++i) { | 271 for (int i = 0; i <= 4; ++i) { |
| 272 const double time = i * 0.25; | 272 const double time = i * 0.25; |
| 273 EXPECT_FLOAT_EQ(timingFunction->getValue(time), curve->getValue(time).m4
1()); | 273 EXPECT_FLOAT_EQ(timingFunction->getValue(time), curve->getValue(time).m4
1()); |
| 274 } | 274 } |
| 275 } | 275 } |
| 276 | 276 |
| 277 } // namespace | 277 } // namespace |
| OLD | NEW |