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

Side by Side Diff: webkit/compositor_bindings/web_transform_animation_curve_unittest.cc

Issue 11824010: Normalize includes in webkit/compositor_bindings to chromium style (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 11 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 | « webkit/compositor_bindings/web_transform_animation_curve_impl.cc ('k') | no next file » | 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 "base/memory/scoped_ptr.h" 5 #include "base/memory/scoped_ptr.h"
6 #include "cc/timing_function.h" 6 #include "cc/timing_function.h"
7 #include "testing/gtest/include/gtest/gtest.h" 7 #include "testing/gtest/include/gtest/gtest.h"
8 #include "third_party/WebKit/Source/Platform/chromium/public/WebTransformationMa trix.h" 8 #include "third_party/WebKit/Source/Platform/chromium/public/WebTransformationMa trix.h"
9 #include "third_party/WebKit/Source/Platform/chromium/public/WebTransformOperati ons.h" 9 #include "third_party/WebKit/Source/Platform/chromium/public/WebTransformOperati ons.h"
10 #include "web_transform_animation_curve_impl.h" 10 #include "webkit/compositor_bindings/web_transform_animation_curve_impl.h"
11 11
12 using namespace WebKit; 12 using namespace WebKit;
13 13
14 namespace { 14 namespace {
15 15
16 // Tests that a transform animation with one keyframe works as expected. 16 // Tests that a transform animation with one keyframe works as expected.
17 TEST(WebTransformAnimationCurveTest, OneTransformKeyframe) 17 TEST(WebTransformAnimationCurveTest, OneTransformKeyframe)
18 { 18 {
19 scoped_ptr<WebTransformAnimationCurve> curve(new WebTransformAnimationCurveI mpl); 19 scoped_ptr<WebTransformAnimationCurve> curve(new WebTransformAnimationCurveI mpl);
20 WebKit::WebTransformOperations operations; 20 WebKit::WebTransformOperations operations;
(...skipping 242 matching lines...) Expand 10 before | Expand all | Expand 10 after
263 curve->add(WebTransformKeyframe(1, operations2), WebAnimationCurve::TimingFu nctionTypeLinear); 263 curve->add(WebTransformKeyframe(1, operations2), WebAnimationCurve::TimingFu nctionTypeLinear);
264 264
265 scoped_ptr<cc::TimingFunction> timingFunction(cc::EaseTimingFunction::create ()); 265 scoped_ptr<cc::TimingFunction> timingFunction(cc::EaseTimingFunction::create ());
266 for (int i = 0; i <= 4; ++i) { 266 for (int i = 0; i <= 4; ++i) {
267 const double time = i * 0.25; 267 const double time = i * 0.25;
268 EXPECT_FLOAT_EQ(timingFunction->getValue(time), curve->getValue(time).m4 1()); 268 EXPECT_FLOAT_EQ(timingFunction->getValue(time), curve->getValue(time).m4 1());
269 } 269 }
270 } 270 }
271 271
272 } // namespace 272 } // namespace
OLDNEW
« no previous file with comments | « webkit/compositor_bindings/web_transform_animation_curve_impl.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698