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

Unified Diff: webkit/renderer/compositor_bindings/web_animation_unittest.cc

Issue 317163002: Moving compositor_bindings from webkit to content (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Changing dependencies due to failing ios bots Created 6 years, 6 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
Index: webkit/renderer/compositor_bindings/web_animation_unittest.cc
diff --git a/webkit/renderer/compositor_bindings/web_animation_unittest.cc b/webkit/renderer/compositor_bindings/web_animation_unittest.cc
deleted file mode 100644
index 9d0f666850f749da397ea073814d35ffdf353053..0000000000000000000000000000000000000000
--- a/webkit/renderer/compositor_bindings/web_animation_unittest.cc
+++ /dev/null
@@ -1,59 +0,0 @@
-// Copyright 2012 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 "testing/gtest/include/gtest/gtest.h"
-#include "webkit/renderer/compositor_bindings/web_animation_impl.h"
-#include "webkit/renderer/compositor_bindings/web_float_animation_curve_impl.h"
-
-using blink::WebAnimation;
-using blink::WebAnimationCurve;
-using blink::WebFloatAnimationCurve;
-
-namespace webkit {
-namespace {
-
-TEST(WebAnimationTest, DefaultSettings) {
- scoped_ptr<WebAnimationCurve> curve(new WebFloatAnimationCurveImpl());
- scoped_ptr<WebAnimation> animation(
- new WebAnimationImpl(*curve, WebAnimation::TargetPropertyOpacity, 1, 0));
-
- // Ensure that the defaults are correct.
- EXPECT_EQ(1, animation->iterations());
- EXPECT_EQ(0, animation->startTime());
- EXPECT_EQ(0, animation->timeOffset());
-#if WEB_ANIMATION_SUPPORTS_FULL_DIRECTION
- EXPECT_EQ(WebAnimation::DirectionNormal, animation->direction());
-#else
- EXPECT_FALSE(animation->alternatesDirection());
-#endif
-}
-
-TEST(WebAnimationTest, ModifiedSettings) {
- scoped_ptr<WebFloatAnimationCurve> curve(new WebFloatAnimationCurveImpl());
- scoped_ptr<WebAnimation> animation(
- new WebAnimationImpl(*curve, WebAnimation::TargetPropertyOpacity, 1, 0));
- animation->setIterations(2);
- animation->setStartTime(2);
- animation->setTimeOffset(2);
-#if WEB_ANIMATION_SUPPORTS_FULL_DIRECTION
- animation->setDirection(WebAnimation::DirectionReverse);
-#else
- animation->setAlternatesDirection(true);
-#endif
-
- EXPECT_EQ(2, animation->iterations());
- EXPECT_EQ(2, animation->startTime());
- EXPECT_EQ(2, animation->timeOffset());
-#if WEB_ANIMATION_SUPPORTS_FULL_DIRECTION
- EXPECT_EQ(WebAnimation::DirectionReverse, animation->direction());
-#else
- EXPECT_TRUE(animation->alternatesDirection());
- animation->setAlternatesDirection(false);
- EXPECT_FALSE(animation->alternatesDirection());
-#endif
-}
-
-} // namespace
-} // namespace webkit
« no previous file with comments | « webkit/renderer/compositor_bindings/web_animation_impl.cc ('k') | webkit/renderer/compositor_bindings/web_blend_mode.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698