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

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

Issue 27664002: Web Animations: Regularise unit test names (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Updated to head Created 7 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 30 matching lines...) Expand all
41 #include <gmock/gmock.h> 41 #include <gmock/gmock.h>
42 #include <gtest/gtest.h> 42 #include <gtest/gtest.h>
43 #include <sstream> 43 #include <sstream>
44 #include <string> 44 #include <string>
45 45
46 46
47 using namespace WebCore; 47 using namespace WebCore;
48 48
49 namespace { 49 namespace {
50 50
51 class AnimatableValueTestHelperTest : public ::testing::Test { 51 class CoreAnimationAnimatableValueTestHelperTest : public ::testing::Test {
52 protected: 52 protected:
53 ::std::string PrintToString(PassRefPtr<AnimatableValue> animValue) 53 ::std::string PrintToString(PassRefPtr<AnimatableValue> animValue)
54 { 54 {
55 return PrintToString(animValue.get()); 55 return PrintToString(animValue.get());
56 } 56 }
57 57
58 ::std::string PrintToString(const AnimatableValue* animValue) 58 ::std::string PrintToString(const AnimatableValue* animValue)
59 { 59 {
60 return ::testing::PrintToString(*animValue); 60 return ::testing::PrintToString(*animValue);
61 } 61 }
62 }; 62 };
63 63
64 TEST_F(AnimatableValueTestHelperTest, PrintTo) 64 TEST_F(CoreAnimationAnimatableValueTestHelperTest, PrintTo)
65 { 65 {
66 EXPECT_THAT( 66 EXPECT_THAT(
67 PrintToString(AnimatableClipPathOperation::create(ShapeClipPathOperation ::create(BasicShapeCircle::create().get()).get())), 67 PrintToString(AnimatableClipPathOperation::create(ShapeClipPathOperation ::create(BasicShapeCircle::create().get()).get())),
68 testing::StartsWith("AnimatableClipPathOperation") 68 testing::StartsWith("AnimatableClipPathOperation")
69 ); 69 );
70 70
71 EXPECT_EQ( 71 EXPECT_EQ(
72 ::std::string("AnimatableColor(rgba(0, 0, 0, 0), #ff0000)"), 72 ::std::string("AnimatableColor(rgba(0, 0, 0, 0), #ff0000)"),
73 PrintToString(AnimatableColor::create(Color(0x000000FF), Color(0xFFFF000 0)))); 73 PrintToString(AnimatableColor::create(Color(0x000000FF), Color(0xFFFF000 0))));
74 74
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
145 EXPECT_EQ( 145 EXPECT_EQ(
146 ::std::string("AnimatableUnknown(none)"), 146 ::std::string("AnimatableUnknown(none)"),
147 PrintToString(AnimatableUnknown::create(CSSPrimitiveValue::createIdentif ier(CSSValueNone).get()))); 147 PrintToString(AnimatableUnknown::create(CSSPrimitiveValue::createIdentif ier(CSSValueNone).get())));
148 148
149 EXPECT_EQ( 149 EXPECT_EQ(
150 ::std::string("AnimatableVisibility(VISIBLE)"), 150 ::std::string("AnimatableVisibility(VISIBLE)"),
151 PrintToString(AnimatableVisibility::create(VISIBLE))); 151 PrintToString(AnimatableVisibility::create(VISIBLE)));
152 } 152 }
153 153
154 } // namespace 154 } // namespace
OLDNEW
« no previous file with comments | « Source/core/animation/AnimatableUnknownTest.cpp ('k') | Source/core/animation/DocumentTimelineTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698