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

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

Issue 225183014: Handle direction control in compositor Animations (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: same patch with a manual test added Created 6 years, 3 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 /* 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 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
78 78
79 MOCK_CONST_METHOD0(iterations, double()); 79 MOCK_CONST_METHOD0(iterations, double());
80 MOCK_METHOD1(setIterations, void(double)); 80 MOCK_METHOD1(setIterations, void(double));
81 81
82 MOCK_CONST_METHOD0(startTime, double()); 82 MOCK_CONST_METHOD0(startTime, double());
83 MOCK_METHOD1(setStartTime, void(double)); 83 MOCK_METHOD1(setStartTime, void(double));
84 84
85 MOCK_CONST_METHOD0(timeOffset, double()); 85 MOCK_CONST_METHOD0(timeOffset, double());
86 MOCK_METHOD1(setTimeOffset, void(double)); 86 MOCK_METHOD1(setTimeOffset, void(double));
87 87
88 MOCK_CONST_METHOD0(alternatesDirection, bool()); 88 MOCK_CONST_METHOD0(direction, Direction());
89 MOCK_METHOD1(setAlternatesDirection, void(bool)); 89 MOCK_METHOD1(setDirection, void(Direction));
90 90
91 MOCK_METHOD0(delete_, void()); 91 MOCK_METHOD0(delete_, void());
92 ~WebCompositorAnimationMock() { delete_(); } 92 ~WebCompositorAnimationMock() { delete_(); }
93 }; 93 };
94 94
95 template<typename CurveType, WebCompositorAnimationCurve::AnimationCurveType Cur veId, typename KeyframeType> 95 template<typename CurveType, WebCompositorAnimationCurve::AnimationCurveType Cur veId, typename KeyframeType>
96 class WebCompositorAnimationCurveMock : public CurveType { 96 class WebCompositorAnimationCurveMock : public CurveType {
97 public: 97 public:
98 MOCK_METHOD1_T(add, void(const KeyframeType&)); 98 MOCK_METHOD1_T(add, void(const KeyframeType&));
99 MOCK_METHOD2_T(add, void(const KeyframeType&, WebCompositorAnimationCurve::T imingFunctionType)); 99 MOCK_METHOD2_T(add, void(const KeyframeType&, WebCompositorAnimationCurve::T imingFunctionType));
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
155 void setCompositorForTesting(WebCompositorSupportMock& mock) 155 void setCompositorForTesting(WebCompositorSupportMock& mock)
156 { 156 {
157 ASSERT(!m_mockCompositor); 157 ASSERT(!m_mockCompositor);
158 m_mockCompositor = &mock; 158 m_mockCompositor = &mock;
159 } 159 }
160 }; 160 };
161 161
162 } 162 }
163 163
164 #endif 164 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698