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

Unified Diff: cc/blink/web_animation_unittest.cc

Issue 1616653002: CC Animation: Move files from cc_blink to Source/platform/animation (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase. Fix copyrights and years. Created 4 years, 10 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « cc/blink/web_animation_impl.cc ('k') | cc/blink/web_compositor_animation_player_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/blink/web_animation_unittest.cc
diff --git a/cc/blink/web_animation_unittest.cc b/cc/blink/web_animation_unittest.cc
deleted file mode 100644
index a059e080b9c0f951e7b24f1fa115a45ac9ba3525..0000000000000000000000000000000000000000
--- a/cc/blink/web_animation_unittest.cc
+++ /dev/null
@@ -1,46 +0,0 @@
-// Copyright 2014 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "base/memory/scoped_ptr.h"
-#include "cc/blink/web_animation_impl.h"
-#include "cc/blink/web_float_animation_curve_impl.h"
-#include "testing/gtest/include/gtest/gtest.h"
-
-using blink::WebCompositorAnimation;
-using blink::WebCompositorAnimationCurve;
-using blink::WebFloatAnimationCurve;
-
-namespace cc_blink {
-namespace {
-
-TEST(WebCompositorAnimationTest, DefaultSettings) {
- scoped_ptr<WebCompositorAnimationCurve> curve(
- new WebFloatAnimationCurveImpl());
- scoped_ptr<WebCompositorAnimation> animation(new WebCompositorAnimationImpl(
- *curve, WebCompositorAnimation::TargetPropertyOpacity, 1, 0));
-
- // Ensure that the defaults are correct.
- EXPECT_EQ(1, animation->iterations());
- EXPECT_EQ(0, animation->startTime());
- EXPECT_EQ(0, animation->timeOffset());
- EXPECT_EQ(WebCompositorAnimation::DirectionNormal, animation->direction());
-}
-
-TEST(WebCompositorAnimationTest, ModifiedSettings) {
- scoped_ptr<WebFloatAnimationCurve> curve(new WebFloatAnimationCurveImpl());
- scoped_ptr<WebCompositorAnimation> animation(new WebCompositorAnimationImpl(
- *curve, WebCompositorAnimation::TargetPropertyOpacity, 1, 0));
- animation->setIterations(2);
- animation->setStartTime(2);
- animation->setTimeOffset(2);
- animation->setDirection(WebCompositorAnimation::DirectionReverse);
-
- EXPECT_EQ(2, animation->iterations());
- EXPECT_EQ(2, animation->startTime());
- EXPECT_EQ(2, animation->timeOffset());
- EXPECT_EQ(WebCompositorAnimation::DirectionReverse, animation->direction());
-}
-
-} // namespace
-} // namespace cc_blink
« no previous file with comments | « cc/blink/web_animation_impl.cc ('k') | cc/blink/web_compositor_animation_player_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698