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

Side by Side Diff: sky/engine/core/animation/AnimationTimelineTest.cpp

Issue 723253004: Remove tons of OILPAN. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years, 1 month 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 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 EXPECT_CALL(*this, cancelWake()).InSequence(sequence); 70 EXPECT_CALL(*this, cancelWake()).InSequence(sequence);
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
81 void trace(Visitor* visitor)
82 {
83 AnimationTimeline::PlatformTiming::trace(visitor);
84 }
85 }; 80 };
86 81
87 class AnimationAnimationTimelineTest : public ::testing::Test { 82 class AnimationAnimationTimelineTest : public ::testing::Test {
88 protected: 83 protected:
89 virtual void SetUp() 84 virtual void SetUp()
90 { 85 {
91 document = Document::create(); 86 document = Document::create();
92 document->animationClock().resetTimeForTesting(); 87 document->animationClock().resetTimeForTesting();
93 element = Element::create(nullName, document.get()); 88 element = Element::create(nullName, document.get());
94 platformTiming = new MockPlatformTiming; 89 platformTiming = new MockPlatformTiming;
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after
236 231
237 TEST_F(AnimationAnimationTimelineTest, UseAnimationPlayerAfterTimelineDeref) 232 TEST_F(AnimationAnimationTimelineTest, UseAnimationPlayerAfterTimelineDeref)
238 { 233 {
239 RefPtr<AnimationPlayer> player = timeline->createAnimationPlayer(0); 234 RefPtr<AnimationPlayer> player = timeline->createAnimationPlayer(0);
240 timeline.clear(); 235 timeline.clear();
241 // Test passes if this does not crash. 236 // Test passes if this does not crash.
242 player->setStartTime(0); 237 player->setStartTime(0);
243 } 238 }
244 239
245 } 240 }
OLDNEW
« no previous file with comments | « sky/engine/core/animation/AnimationTimeline.cpp ('k') | sky/engine/core/animation/CompositorPendingAnimations.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698