| OLD | NEW |
| 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 27 matching lines...) Expand all Loading... |
| 38 #include <gmock/gmock.h> | 38 #include <gmock/gmock.h> |
| 39 #include <gtest/gtest.h> | 39 #include <gtest/gtest.h> |
| 40 #include <sstream> | 40 #include <sstream> |
| 41 #include <string> | 41 #include <string> |
| 42 | 42 |
| 43 | 43 |
| 44 namespace blink { | 44 namespace blink { |
| 45 | 45 |
| 46 class AnimationAnimatableValueTestHelperTest : public ::testing::Test { | 46 class AnimationAnimatableValueTestHelperTest : public ::testing::Test { |
| 47 protected: | 47 protected: |
| 48 ::std::string PrintToString(PassRefPtrWillBeRawPtr<AnimatableValue> animValu
e) | 48 ::std::string PrintToString(PassRefPtr<AnimatableValue> animValue) |
| 49 { | 49 { |
| 50 return ::testing::PrintToString(*animValue.get()); | 50 return ::testing::PrintToString(*animValue.get()); |
| 51 } | 51 } |
| 52 }; | 52 }; |
| 53 | 53 |
| 54 TEST_F(AnimationAnimatableValueTestHelperTest, PrintTo) | 54 TEST_F(AnimationAnimatableValueTestHelperTest, PrintTo) |
| 55 { | 55 { |
| 56 EXPECT_THAT( | 56 EXPECT_THAT( |
| 57 PrintToString(AnimatableClipPathOperation::create(ShapeClipPathOperation
::create(BasicShapeCircle::create().get()).get())), | 57 PrintToString(AnimatableClipPathOperation::create(ShapeClipPathOperation
::create(BasicShapeCircle::create().get()).get())), |
| 58 testing::StartsWith("AnimatableClipPathOperation") | 58 testing::StartsWith("AnimatableClipPathOperation") |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 92 EXPECT_EQ( | 92 EXPECT_EQ( |
| 93 ::std::string("AnimatableUnknown(none)"), | 93 ::std::string("AnimatableUnknown(none)"), |
| 94 PrintToString(AnimatableUnknown::create(CSSPrimitiveValue::createIdentif
ier(CSSValueNone).get()))); | 94 PrintToString(AnimatableUnknown::create(CSSPrimitiveValue::createIdentif
ier(CSSValueNone).get()))); |
| 95 | 95 |
| 96 EXPECT_EQ( | 96 EXPECT_EQ( |
| 97 ::std::string("AnimatableVisibility(VISIBLE)"), | 97 ::std::string("AnimatableVisibility(VISIBLE)"), |
| 98 PrintToString(AnimatableVisibility::create(VISIBLE))); | 98 PrintToString(AnimatableVisibility::create(VISIBLE))); |
| 99 } | 99 } |
| 100 | 100 |
| 101 } // namespace blink | 101 } // namespace blink |
| OLD | NEW |