| 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 20 matching lines...) Expand all Loading... |
| 31 #include "config.h" | 31 #include "config.h" |
| 32 #include "core/animation/DocumentTimeline.h" | 32 #include "core/animation/DocumentTimeline.h" |
| 33 | 33 |
| 34 #include "core/animation/Animation.h" | 34 #include "core/animation/Animation.h" |
| 35 #include "core/animation/AnimationClock.h" | 35 #include "core/animation/AnimationClock.h" |
| 36 #include "core/animation/KeyframeAnimationEffect.h" | 36 #include "core/animation/KeyframeAnimationEffect.h" |
| 37 #include "core/animation/TimedItem.h" | 37 #include "core/animation/TimedItem.h" |
| 38 #include "core/dom/Document.h" | 38 #include "core/dom/Document.h" |
| 39 #include "core/dom/Element.h" | 39 #include "core/dom/Element.h" |
| 40 #include "core/dom/QualifiedName.h" | 40 #include "core/dom/QualifiedName.h" |
| 41 #include "weborigin/KURL.h" | 41 #include "platform/weborigin/KURL.h" |
| 42 | 42 |
| 43 #include <gmock/gmock.h> | 43 #include <gmock/gmock.h> |
| 44 #include <gtest/gtest.h> | 44 #include <gtest/gtest.h> |
| 45 | 45 |
| 46 namespace WebCore { | 46 namespace WebCore { |
| 47 | 47 |
| 48 class MockPlatformTiming : public DocumentTimeline::PlatformTiming { | 48 class MockPlatformTiming : public DocumentTimeline::PlatformTiming { |
| 49 public: | 49 public: |
| 50 | 50 |
| 51 MOCK_METHOD1(wakeAfter, void(double)); | 51 MOCK_METHOD1(wakeAfter, void(double)); |
| (...skipping 218 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 270 updateClockAndService(1.5); | 270 updateClockAndService(1.5); |
| 271 | 271 |
| 272 EXPECT_CALL(*platformTiming, serviceOnNextFrame()); | 272 EXPECT_CALL(*platformTiming, serviceOnNextFrame()); |
| 273 wake(); | 273 wake(); |
| 274 | 274 |
| 275 platformTiming->expectNextFrameAction(); | 275 platformTiming->expectNextFrameAction(); |
| 276 updateClockAndService(4.98); | 276 updateClockAndService(4.98); |
| 277 } | 277 } |
| 278 | 278 |
| 279 } | 279 } |
| OLD | NEW |