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

Side by Side Diff: Source/core/animation/CompositorAnimationsTestHelper.h

Issue 69813008: Web Animations CSS: Renamed tests to be less confusing (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 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) 2012 Google Inc. All rights reserved. 2 * Copyright (C) 2012 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 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
106 MOCK_METHOD0(delete_, void()); 106 MOCK_METHOD0(delete_, void());
107 ~WebAnimationCurveMock() { delete_(); } 107 ~WebAnimationCurveMock() { delete_(); }
108 }; 108 };
109 109
110 typedef WebAnimationCurveMock<blink::WebFloatAnimationCurve, blink::WebAnimation Curve::AnimationCurveTypeFloat, blink::WebFloatKeyframe> WebFloatAnimationCurveM ock; 110 typedef WebAnimationCurveMock<blink::WebFloatAnimationCurve, blink::WebAnimation Curve::AnimationCurveTypeFloat, blink::WebFloatKeyframe> WebFloatAnimationCurveM ock;
111 111
112 } // namespace blink 112 } // namespace blink
113 113
114 namespace WebCore { 114 namespace WebCore {
115 115
116 class CoreAnimationCompositorAnimationsTestBase : public ::testing::Test { 116 class AnimationCompositorAnimationsTestBase : public ::testing::Test {
117 public: 117 public:
118 CoreAnimationCompositorAnimationsTestBase() : m_proxyPlatform(&m_mockComposi tor) { }; 118 AnimationCompositorAnimationsTestBase() : m_proxyPlatform(&m_mockCompositor) { };
119 119
120 class WebCompositorSupportMock : public blink::WebCompositorSupport { 120 class WebCompositorSupportMock : public blink::WebCompositorSupport {
121 public: 121 public:
122 MOCK_METHOD3(createAnimation, blink::WebAnimation*(const blink::WebAnima tionCurve& curve, blink::WebAnimation::TargetProperty target, int animationId)); 122 MOCK_METHOD3(createAnimation, blink::WebAnimation*(const blink::WebAnima tionCurve& curve, blink::WebAnimation::TargetProperty target, int animationId));
123 MOCK_METHOD0(createFloatAnimationCurve, blink::WebFloatAnimationCurve*() ); 123 MOCK_METHOD0(createFloatAnimationCurve, blink::WebFloatAnimationCurve*() );
124 }; 124 };
125 125
126 private: 126 private:
127 class PlatformProxy : public blink::Platform { 127 class PlatformProxy : public blink::Platform {
128 public: 128 public:
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
161 void setCompositorForTesting(WebCompositorSupportMock& mock) 161 void setCompositorForTesting(WebCompositorSupportMock& mock)
162 { 162 {
163 ASSERT(!m_mockCompositor); 163 ASSERT(!m_mockCompositor);
164 m_mockCompositor = &mock; 164 m_mockCompositor = &mock;
165 } 165 }
166 }; 166 };
167 167
168 } 168 }
169 169
170 #endif 170 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698