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

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

Issue 2700123003: DO NOT COMMIT: Results of running old (current) clang-format on Blink (Closed)
Patch Set: Created 3 years, 10 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 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "core/animation/KeyframeEffect.h" 5 #include "core/animation/KeyframeEffect.h"
6 6
7 #include <v8.h>
8 #include <memory>
7 #include "bindings/core/v8/Dictionary.h" 9 #include "bindings/core/v8/Dictionary.h"
8 #include "bindings/core/v8/DictionarySequenceOrDictionary.h" 10 #include "bindings/core/v8/DictionarySequenceOrDictionary.h"
9 #include "bindings/core/v8/V8BindingForTesting.h" 11 #include "bindings/core/v8/V8BindingForTesting.h"
10 #include "bindings/core/v8/V8KeyframeEffectOptions.h" 12 #include "bindings/core/v8/V8KeyframeEffectOptions.h"
11 #include "core/animation/AnimationClock.h" 13 #include "core/animation/AnimationClock.h"
12 #include "core/animation/AnimationEffectTiming.h" 14 #include "core/animation/AnimationEffectTiming.h"
13 #include "core/animation/AnimationTestHelper.h" 15 #include "core/animation/AnimationTestHelper.h"
14 #include "core/animation/DocumentTimeline.h" 16 #include "core/animation/DocumentTimeline.h"
15 #include "core/animation/KeyframeEffectModel.h" 17 #include "core/animation/KeyframeEffectModel.h"
16 #include "core/animation/Timing.h" 18 #include "core/animation/Timing.h"
17 #include "core/dom/Document.h" 19 #include "core/dom/Document.h"
18 #include "core/testing/DummyPageHolder.h" 20 #include "core/testing/DummyPageHolder.h"
19 #include "testing/gtest/include/gtest/gtest.h" 21 #include "testing/gtest/include/gtest/gtest.h"
20 #include <memory>
21 #include <v8.h>
22 22
23 namespace blink { 23 namespace blink {
24 24
25 class KeyframeEffectTest : public ::testing::Test { 25 class KeyframeEffectTest : public ::testing::Test {
26 protected: 26 protected:
27 KeyframeEffectTest() : pageHolder(DummyPageHolder::create()) { 27 KeyframeEffectTest() : pageHolder(DummyPageHolder::create()) {
28 element = document().createElement("foo"); 28 element = document().createElement("foo");
29 29
30 document().animationClock().resetTimeForTesting( 30 document().animationClock().resetTimeForTesting(
31 document().timeline().zeroTime()); 31 document().timeline().zeroTime());
(...skipping 367 matching lines...) Expand 10 before | Expand all | Expand 10 after
399 timing.iterationDuration = 5; 399 timing.iterationDuration = 5;
400 KeyframeEffect* animation = 400 KeyframeEffect* animation =
401 KeyframeEffect::create(element.get(), nullptr, timing); 401 KeyframeEffect::create(element.get(), nullptr, timing);
402 EXPECT_EQ(element.get(), animation->target()); 402 EXPECT_EQ(element.get(), animation->target());
403 document().timeline().play(animation); 403 document().timeline().play(animation);
404 pageHolder.reset(); 404 pageHolder.reset();
405 element.clear(); 405 element.clear();
406 } 406 }
407 407
408 } // namespace blink 408 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698