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

Side by Side Diff: webkit/compositor_bindings/WebFloatAnimationCurveTest.cpp

Issue 11145033: cc: Get rid of CC*.h temporary header files. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 2 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
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 "config.h" 5 #include "config.h"
6 6
7 #include <public/WebFloatAnimationCurve.h> 7 #include <public/WebFloatAnimationCurve.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 <wtf/OwnPtr.h> 12 #include <wtf/OwnPtr.h>
13 #include <wtf/PassOwnPtr.h> 13 #include <wtf/PassOwnPtr.h>
14 14
15 using namespace WebKit; 15 using namespace WebKit;
16 16
17 namespace { 17 namespace {
18 18
19 // Tests that a float animation with one keyframe works as expected. 19 // Tests that a float animation with one keyframe works as expected.
(...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after
207 curve->add(WebFloatKeyframe(1, 1), WebAnimationCurve::TimingFunctionTypeLine ar); 207 curve->add(WebFloatKeyframe(1, 1), WebAnimationCurve::TimingFunctionTypeLine ar);
208 208
209 scoped_ptr<cc::CCTimingFunction> timingFunction(cc::CCEaseTimingFunction::cr eate()); 209 scoped_ptr<cc::CCTimingFunction> timingFunction(cc::CCEaseTimingFunction::cr eate());
210 for (int i = 0; i <= 4; ++i) { 210 for (int i = 0; i <= 4; ++i) {
211 const double time = i * 0.25; 211 const double time = i * 0.25;
212 EXPECT_FLOAT_EQ(timingFunction->getValue(time), curve->getValue(time)); 212 EXPECT_FLOAT_EQ(timingFunction->getValue(time), curve->getValue(time));
213 } 213 }
214 } 214 }
215 215
216 } // namespace 216 } // namespace
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698