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

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

Issue 1858753003: Remove RawPtr from core/css (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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 25 matching lines...) Expand all
36 #include "core/css/CSSPrimitiveValue.h" 36 #include "core/css/CSSPrimitiveValue.h"
37 #include "core/dom/Element.h" 37 #include "core/dom/Element.h"
38 #include "testing/gtest/include/gtest/gtest.h" 38 #include "testing/gtest/include/gtest/gtest.h"
39 39
40 namespace blink { 40 namespace blink {
41 41
42 const double duration = 1.0; 42 const double duration = 1.0;
43 43
44 PassRefPtr<AnimatableValue> unknownAnimatableValue(double n) 44 PassRefPtr<AnimatableValue> unknownAnimatableValue(double n)
45 { 45 {
46 return AnimatableUnknown::create(CSSPrimitiveValue::create(n, CSSPrimitiveVa lue::UnitType::Unknown).get()); 46 return AnimatableUnknown::create(CSSPrimitiveValue::create(n, CSSPrimitiveVa lue::UnitType::Unknown));
47 } 47 }
48 48
49 PassRefPtr<AnimatableValue> pixelAnimatableValue(double n) 49 PassRefPtr<AnimatableValue> pixelAnimatableValue(double n)
50 { 50 {
51 return AnimatableLength::create(Length(n, Fixed), 1); 51 return AnimatableLength::create(Length(n, Fixed), 1);
52 } 52 }
53 53
54 AnimatableValueKeyframeVector keyframesAtZeroAndOne(PassRefPtr<AnimatableValue> zeroValue, PassRefPtr<AnimatableValue> oneValue) 54 AnimatableValueKeyframeVector keyframesAtZeroAndOne(PassRefPtr<AnimatableValue> zeroValue, PassRefPtr<AnimatableValue> oneValue)
55 { 55 {
56 AnimatableValueKeyframeVector keyframes(2); 56 AnimatableValueKeyframeVector keyframes(2);
(...skipping 506 matching lines...) Expand 10 before | Expand all | Expand 10 after
563 EXPECT_DOUBLE_EQ(0.6, result[5]->offset()); 563 EXPECT_DOUBLE_EQ(0.6, result[5]->offset());
564 EXPECT_DOUBLE_EQ(0.7, result[6]->offset()); 564 EXPECT_DOUBLE_EQ(0.7, result[6]->offset());
565 EXPECT_DOUBLE_EQ(0.8, result[7]->offset()); 565 EXPECT_DOUBLE_EQ(0.8, result[7]->offset());
566 EXPECT_DOUBLE_EQ(0.85, result[8]->offset()); 566 EXPECT_DOUBLE_EQ(0.85, result[8]->offset());
567 EXPECT_DOUBLE_EQ(0.9, result[9]->offset()); 567 EXPECT_DOUBLE_EQ(0.9, result[9]->offset());
568 EXPECT_DOUBLE_EQ(0.95, result[10]->offset()); 568 EXPECT_DOUBLE_EQ(0.95, result[10]->offset());
569 EXPECT_DOUBLE_EQ(1.0, result[11]->offset()); 569 EXPECT_DOUBLE_EQ(1.0, result[11]->offset());
570 } 570 }
571 571
572 } // namespace blink 572 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698