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 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
71 EXPECT_CALL(*this, serviceOnNextFrame()).InSequence(sequence); | 71 EXPECT_CALL(*this, serviceOnNextFrame()).InSequence(sequence); |
72 } | 72 } |
73 | 73 |
74 void expectDelayedAction(double when) | 74 void expectDelayedAction(double when) |
75 { | 75 { |
76 ::testing::Sequence sequence; | 76 ::testing::Sequence sequence; |
77 EXPECT_CALL(*this, cancelWake()).InSequence(sequence); | 77 EXPECT_CALL(*this, cancelWake()).InSequence(sequence); |
78 EXPECT_CALL(*this, wakeAfter(when)).InSequence(sequence); | 78 EXPECT_CALL(*this, wakeAfter(when)).InSequence(sequence); |
79 } | 79 } |
80 | 80 |
81 void trace(Visitor* visitor) | 81 DEFINE_INLINE_TRACE() |
82 { | 82 { |
83 AnimationTimeline::PlatformTiming::trace(visitor); | 83 AnimationTimeline::PlatformTiming::trace(visitor); |
84 } | 84 } |
85 }; | 85 }; |
86 | 86 |
87 class AnimationAnimationTimelineTest : public ::testing::Test { | 87 class AnimationAnimationTimelineTest : public ::testing::Test { |
88 protected: | 88 protected: |
89 virtual void SetUp() | 89 virtual void SetUp() |
90 { | 90 { |
91 document = Document::create(); | 91 document = Document::create(); |
(...skipping 303 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
395 | 395 |
396 TEST_F(AnimationAnimationTimelineTest, UseAnimationPlayerAfterTimelineDeref) | 396 TEST_F(AnimationAnimationTimelineTest, UseAnimationPlayerAfterTimelineDeref) |
397 { | 397 { |
398 RefPtrWillBeRawPtr<AnimationPlayer> player = timeline->play(0); | 398 RefPtrWillBeRawPtr<AnimationPlayer> player = timeline->play(0); |
399 timeline.clear(); | 399 timeline.clear(); |
400 // Test passes if this does not crash. | 400 // Test passes if this does not crash. |
401 player->setStartTime(0); | 401 player->setStartTime(0); |
402 } | 402 } |
403 | 403 |
404 } | 404 } |
OLD | NEW |