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

Side by Side Diff: Source/core/animation/animatable/AnimatableValueTestHelperTest.cpp

Issue 1164413003: Fix unit test style in core/{animation,css,fetch,frame,layout,style,timing}/. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: anonymous Created 5 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 unified diff | Download patch | Annotate | Revision Log
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 11 matching lines...) Expand all
22 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 22 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
23 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 23 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
24 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 24 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
25 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 25 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
29 */ 29 */
30 30
31 #include "config.h" 31 #include "config.h"
32
33 #include "core/animation/animatable/AnimatableValueTestHelper.h" 32 #include "core/animation/animatable/AnimatableValueTestHelper.h"
34 33
35 #include "core/layout/ClipPathOperation.h" 34 #include "core/layout/ClipPathOperation.h"
36 #include "core/style/BasicShapes.h" 35 #include "core/style/BasicShapes.h"
37 #include "platform/transforms/ScaleTransformOperation.h" 36 #include "platform/transforms/ScaleTransformOperation.h"
38 #include "platform/transforms/TranslateTransformOperation.h" 37 #include "platform/transforms/TranslateTransformOperation.h"
39
40 #include <gmock/gmock.h> 38 #include <gmock/gmock.h>
41 #include <gtest/gtest.h> 39 #include <gtest/gtest.h>
42 #include <sstream> 40 #include <sstream>
43 #include <string> 41 #include <string>
44 42
45 43
46 using namespace blink; 44 namespace blink {
47
48 namespace {
49 45
50 class AnimationAnimatableValueTestHelperTest : public ::testing::Test { 46 class AnimationAnimatableValueTestHelperTest : public ::testing::Test {
51 protected: 47 protected:
52 ::std::string PrintToString(PassRefPtrWillBeRawPtr<AnimatableValue> animValu e) 48 ::std::string PrintToString(PassRefPtrWillBeRawPtr<AnimatableValue> animValu e)
53 { 49 {
54 return ::testing::PrintToString(*animValue.get()); 50 return ::testing::PrintToString(*animValue.get());
55 } 51 }
56 }; 52 };
57 53
58 TEST_F(AnimationAnimatableValueTestHelperTest, PrintTo) 54 TEST_F(AnimationAnimatableValueTestHelperTest, PrintTo)
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
95 91
96 EXPECT_EQ( 92 EXPECT_EQ(
97 ::std::string("AnimatableUnknown(none)"), 93 ::std::string("AnimatableUnknown(none)"),
98 PrintToString(AnimatableUnknown::create(CSSPrimitiveValue::createIdentif ier(CSSValueNone).get()))); 94 PrintToString(AnimatableUnknown::create(CSSPrimitiveValue::createIdentif ier(CSSValueNone).get())));
99 95
100 EXPECT_EQ( 96 EXPECT_EQ(
101 ::std::string("AnimatableVisibility(VISIBLE)"), 97 ::std::string("AnimatableVisibility(VISIBLE)"),
102 PrintToString(AnimatableVisibility::create(VISIBLE))); 98 PrintToString(AnimatableVisibility::create(VISIBLE)));
103 } 99 }
104 100
105 } // namespace 101 } // namespace blink
OLDNEW
« no previous file with comments | « Source/core/animation/animatable/AnimatableUnknownTest.cpp ('k') | Source/core/css/AffectedByFocusTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698