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 "cc/keyframed_animation_curve.h" | 5 #include "cc/animation/keyframed_animation_curve.h" |
6 | 6 |
7 #include "cc/transform_operations.h" | 7 #include "cc/transform_operations.h" |
8 #include "testing/gmock/include/gmock/gmock.h" | 8 #include "testing/gmock/include/gmock/gmock.h" |
9 #include "testing/gtest/include/gtest/gtest.h" | 9 #include "testing/gtest/include/gtest/gtest.h" |
10 | 10 |
11 namespace cc { | 11 namespace cc { |
12 namespace { | 12 namespace { |
13 | 13 |
14 void expectTranslateX(double translateX, const gfx::Transform& transform) | 14 void expectTranslateX(double translateX, const gfx::Transform& transform) |
15 { | 15 { |
(...skipping 218 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
234 EXPECT_LT(0.f, curve->GetValue(0.25f)); | 234 EXPECT_LT(0.f, curve->GetValue(0.25f)); |
235 EXPECT_GT(0.25f, curve->GetValue(0.25f)); | 235 EXPECT_GT(0.25f, curve->GetValue(0.25f)); |
236 EXPECT_NEAR(curve->GetValue(0.5f), 0.5f, 0.00015f); | 236 EXPECT_NEAR(curve->GetValue(0.5f), 0.5f, 0.00015f); |
237 EXPECT_LT(0.75f, curve->GetValue(0.75f)); | 237 EXPECT_LT(0.75f, curve->GetValue(0.75f)); |
238 EXPECT_GT(1.f, curve->GetValue(0.75f)); | 238 EXPECT_GT(1.f, curve->GetValue(0.75f)); |
239 EXPECT_FLOAT_EQ(1.f, curve->GetValue(1.f)); | 239 EXPECT_FLOAT_EQ(1.f, curve->GetValue(1.f)); |
240 } | 240 } |
241 | 241 |
242 } // namespace | 242 } // namespace |
243 } // namespace cc | 243 } // namespace cc |
OLD | NEW |