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

Side by Side Diff: cc/keyframed_animation_curve_unittest.cc

Issue 11615020: Clean up cc and webkit/compositor_bindings include path shenanigans (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebased Created 8 years 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/keyframed_animation_curve.h ('k') | cc/layer.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/keyframed_animation_curve.h"
6 6
7 #include "testing/gmock/include/gmock/gmock.h" 7 #include "testing/gmock/include/gmock/gmock.h"
8 #include "testing/gtest/include/gtest/gtest.h" 8 #include "testing/gtest/include/gtest/gtest.h"
9 #include <public/WebTransformOperations.h> 9 #include "third_party/WebKit/Source/Platform/chromium/public/WebTransformOperati ons.h"
10 #include <public/WebTransformationMatrix.h> 10 #include "third_party/WebKit/Source/Platform/chromium/public/WebTransformationMa trix.h"
11 11
12 using WebKit::WebTransformationMatrix; 12 using WebKit::WebTransformationMatrix;
13 13
14 namespace cc { 14 namespace cc {
15 namespace { 15 namespace {
16 16
17 void expectTranslateX(double translateX, const WebTransformationMatrix& matrix) 17 void expectTranslateX(double translateX, const WebTransformationMatrix& matrix)
18 { 18 {
19 EXPECT_FLOAT_EQ(translateX, matrix.m41()); 19 EXPECT_FLOAT_EQ(translateX, matrix.m41());
20 } 20 }
(...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after
196 EXPECT_LT(0, curve->getValue(0.25)); 196 EXPECT_LT(0, curve->getValue(0.25));
197 EXPECT_GT(0.25, curve->getValue(0.25)); 197 EXPECT_GT(0.25, curve->getValue(0.25));
198 EXPECT_NEAR(curve->getValue(0.5), 0.5, 0.00015); 198 EXPECT_NEAR(curve->getValue(0.5), 0.5, 0.00015);
199 EXPECT_LT(0.75, curve->getValue(0.75)); 199 EXPECT_LT(0.75, curve->getValue(0.75));
200 EXPECT_GT(1, curve->getValue(0.75)); 200 EXPECT_GT(1, curve->getValue(0.75));
201 EXPECT_FLOAT_EQ(1, curve->getValue(1)); 201 EXPECT_FLOAT_EQ(1, curve->getValue(1));
202 } 202 }
203 203
204 } // namespace 204 } // namespace
205 } // namespace cc 205 } // namespace cc
OLDNEW
« no previous file with comments | « cc/keyframed_animation_curve.h ('k') | cc/layer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698