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

Side by Side Diff: Source/core/animation/AnimatableUnknownTest.cpp

Issue 184853009: Revert of Move all RefPtr's to CSSValue to oilpan transition types (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 9 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 | « Source/core/animation/AnimatableUnknown.h ('k') | Source/core/css/CSSProperty.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (c) 2013, Google Inc. All rights reserved. 2 * Copyright (c) 2013, Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 protected: 44 protected:
45 virtual void SetUp() 45 virtual void SetUp()
46 { 46 {
47 cssValue = CSSArrayFunctionValue::create(); 47 cssValue = CSSArrayFunctionValue::create();
48 animatableUnknown = AnimatableUnknown::create(cssValue); 48 animatableUnknown = AnimatableUnknown::create(cssValue);
49 49
50 otherCSSValue = CSSArrayFunctionValue::create(); 50 otherCSSValue = CSSArrayFunctionValue::create();
51 otherAnimatableUnknown = AnimatableUnknown::create(otherCSSValue); 51 otherAnimatableUnknown = AnimatableUnknown::create(otherCSSValue);
52 } 52 }
53 53
54 RefPtrWillBePersistent<CSSValue> cssValue; 54 RefPtr<CSSValue> cssValue;
55 RefPtr<AnimatableValue> animatableUnknown; 55 RefPtr<AnimatableValue> animatableUnknown;
56 56
57 RefPtrWillBePersistent<CSSValue> otherCSSValue; 57 RefPtr<CSSValue> otherCSSValue;
58 RefPtr<AnimatableValue> otherAnimatableUnknown; 58 RefPtr<AnimatableValue> otherAnimatableUnknown;
59 }; 59 };
60 60
61 TEST_F(AnimationAnimatableUnknownTest, Create) 61 TEST_F(AnimationAnimatableUnknownTest, Create)
62 { 62 {
63 EXPECT_TRUE(animatableUnknown); 63 EXPECT_TRUE(animatableUnknown);
64 } 64 }
65 65
66 TEST_F(AnimationAnimatableUnknownTest, ToCSSValue) 66 TEST_F(AnimationAnimatableUnknownTest, ToCSSValue)
67 { 67 {
(...skipping 15 matching lines...) Expand all
83 EXPECT_EQ(cssValue, toAnimatableUnknown(AnimatableValue::interpolate(otherAn imatableUnknown.get(), animatableUnknown.get(), 1).get())->toCSSValue()); 83 EXPECT_EQ(cssValue, toAnimatableUnknown(AnimatableValue::interpolate(otherAn imatableUnknown.get(), animatableUnknown.get(), 1).get())->toCSSValue());
84 } 84 }
85 85
86 TEST_F(AnimationAnimatableUnknownTest, Add) 86 TEST_F(AnimationAnimatableUnknownTest, Add)
87 { 87 {
88 EXPECT_EQ(otherCSSValue, toAnimatableUnknown(AnimatableValue::add(animatable Unknown.get(), otherAnimatableUnknown.get()).get())->toCSSValue()); 88 EXPECT_EQ(otherCSSValue, toAnimatableUnknown(AnimatableValue::add(animatable Unknown.get(), otherAnimatableUnknown.get()).get())->toCSSValue());
89 EXPECT_EQ(cssValue, toAnimatableUnknown(AnimatableValue::add(otherAnimatable Unknown.get(), animatableUnknown.get()).get())->toCSSValue()); 89 EXPECT_EQ(cssValue, toAnimatableUnknown(AnimatableValue::add(otherAnimatable Unknown.get(), animatableUnknown.get()).get())->toCSSValue());
90 } 90 }
91 91
92 } 92 }
OLDNEW
« no previous file with comments | « Source/core/animation/AnimatableUnknown.h ('k') | Source/core/css/CSSProperty.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698