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

Side by Side Diff: sky/engine/core/animation/AnimationStackTest.cpp

Issue 746023002: Make absolute and sort all Sky headers (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 "sky/engine/config.h"
6 #include "core/animation/AnimationStack.h" 6 #include "sky/engine/core/animation/AnimationStack.h"
7 7
8 #include "core/animation/ActiveAnimations.h"
9 #include "core/animation/AnimationClock.h"
10 #include "core/animation/AnimationTimeline.h"
11 #include "core/animation/KeyframeEffectModel.h"
12 #include "core/animation/LegacyStyleInterpolation.h"
13 #include "core/animation/animatable/AnimatableDouble.h"
14 #include <gtest/gtest.h> 8 #include <gtest/gtest.h>
9 #include "sky/engine/core/animation/ActiveAnimations.h"
10 #include "sky/engine/core/animation/AnimationClock.h"
11 #include "sky/engine/core/animation/AnimationTimeline.h"
12 #include "sky/engine/core/animation/KeyframeEffectModel.h"
13 #include "sky/engine/core/animation/LegacyStyleInterpolation.h"
14 #include "sky/engine/core/animation/animatable/AnimatableDouble.h"
15 15
16 namespace blink { 16 namespace blink {
17 17
18 class AnimationAnimationStackTest : public ::testing::Test { 18 class AnimationAnimationStackTest : public ::testing::Test {
19 protected: 19 protected:
20 virtual void SetUp() 20 virtual void SetUp()
21 { 21 {
22 document = Document::create(); 22 document = Document::create();
23 document->animationClock().resetTimeForTesting(); 23 document->animationClock().resetTimeForTesting();
24 timeline = AnimationTimeline::create(document.get()); 24 timeline = AnimationTimeline::create(document.get());
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after
141 EXPECT_TRUE(interpolationValue(interpolations.get(CSSPropertyFontSize))->equ als(AnimatableDouble::create(3).get())); 141 EXPECT_TRUE(interpolationValue(interpolations.get(CSSPropertyFontSize))->equ als(AnimatableDouble::create(3).get()));
142 EXPECT_EQ(2u, effects().size()); 142 EXPECT_EQ(2u, effects().size());
143 143
144 updateTimeline(17); 144 updateTimeline(17);
145 interpolations = AnimationStack::activeInterpolations(&element->activeAnimat ions()->defaultStack(), 0, 0, Animation::DefaultPriority, 0); 145 interpolations = AnimationStack::activeInterpolations(&element->activeAnimat ions()->defaultStack(), 0, 0, Animation::DefaultPriority, 0);
146 EXPECT_TRUE(interpolationValue(interpolations.get(CSSPropertyFontSize))->equ als(AnimatableDouble::create(3).get())); 146 EXPECT_TRUE(interpolationValue(interpolations.get(CSSPropertyFontSize))->equ als(AnimatableDouble::create(3).get()));
147 EXPECT_EQ(1u, effects().size()); 147 EXPECT_EQ(1u, effects().size());
148 } 148 }
149 149
150 } 150 }
OLDNEW
« no previous file with comments | « sky/engine/core/animation/AnimationStack.cpp ('k') | sky/engine/core/animation/AnimationTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698