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

Side by Side Diff: third_party/WebKit/Source/core/animation/animatable/AnimatableUnknownTest.cpp

Issue 2382653006: Split CSSPrimitiveValue into CSSPrimitiveValue and CSSIdentifierValue (Closed)
Patch Set: Make check-webkit-style happy Created 4 years, 2 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
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 21 matching lines...) Expand all
32 32
33 #include "core/animation/animatable/AnimatableNeutral.h" 33 #include "core/animation/animatable/AnimatableNeutral.h"
34 #include "core/css/CSSPrimitiveValue.h" 34 #include "core/css/CSSPrimitiveValue.h"
35 #include "testing/gtest/include/gtest/gtest.h" 35 #include "testing/gtest/include/gtest/gtest.h"
36 36
37 namespace blink { 37 namespace blink {
38 38
39 class AnimationAnimatableUnknownTest : public ::testing::Test { 39 class AnimationAnimatableUnknownTest : public ::testing::Test {
40 protected: 40 protected:
41 virtual void SetUp() { 41 virtual void SetUp() {
42 cssValue = CSSPrimitiveValue::createIdentifier(CSSValueYellow); 42 cssValue = CSSIdentifierValue::create(CSSValueYellow);
43 animatableUnknown = AnimatableUnknown::create(cssValue); 43 animatableUnknown = AnimatableUnknown::create(cssValue);
44 44
45 otherCSSValue = CSSPrimitiveValue::createIdentifier(CSSValueOrange); 45 otherCSSValue = CSSIdentifierValue::create(CSSValueOrange);
46 otherAnimatableUnknown = AnimatableUnknown::create(otherCSSValue); 46 otherAnimatableUnknown = AnimatableUnknown::create(otherCSSValue);
47 } 47 }
48 48
49 Persistent<CSSValue> cssValue; 49 Persistent<CSSValue> cssValue;
50 RefPtr<AnimatableValue> animatableUnknown; 50 RefPtr<AnimatableValue> animatableUnknown;
51 Persistent<CSSValue> otherCSSValue; 51 Persistent<CSSValue> otherCSSValue;
52 RefPtr<AnimatableValue> otherAnimatableUnknown; 52 RefPtr<AnimatableValue> otherAnimatableUnknown;
53 }; 53 };
54 54
55 TEST_F(AnimationAnimatableUnknownTest, Create) { 55 TEST_F(AnimationAnimatableUnknownTest, Create) {
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
112 .get()) 112 .get())
113 ->toCSSValue()); 113 ->toCSSValue());
114 EXPECT_EQ(cssValue, toAnimatableUnknown(AnimatableValue::interpolate( 114 EXPECT_EQ(cssValue, toAnimatableUnknown(AnimatableValue::interpolate(
115 otherAnimatableUnknown.get(), 115 otherAnimatableUnknown.get(),
116 animatableUnknown.get(), 1) 116 animatableUnknown.get(), 1)
117 .get()) 117 .get())
118 ->toCSSValue()); 118 ->toCSSValue());
119 } 119 }
120 120
121 } // namespace blink 121 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698