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

Side by Side Diff: cc/animation/keyframed_animation_curve_unittest.cc

Issue 12822004: Part 3 of cc/ directory shuffles: animation (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 9 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « cc/animation/keyframed_animation_curve.cc ('k') | cc/animation/layer_animation_controller.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « cc/animation/keyframed_animation_curve.cc ('k') | cc/animation/layer_animation_controller.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698