| OLD | NEW |
| 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 Loading... |
| 78 | 78 |
| 79 MOCK_CONST_METHOD0(iterations, int()); | 79 MOCK_CONST_METHOD0(iterations, int()); |
| 80 MOCK_METHOD1(setIterations, void(int)); | 80 MOCK_METHOD1(setIterations, void(int)); |
| 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 ~WebAnimationMock() { delete_(); } | 92 ~WebAnimationMock() { delete_(); } |
| 93 }; | 93 }; |
| 94 | 94 |
| 95 template<typename CurveType, blink::WebAnimationCurve::AnimationCurveType CurveI
d, typename KeyframeType> | 95 template<typename CurveType, blink::WebAnimationCurve::AnimationCurveType CurveI
d, typename KeyframeType> |
| 96 class WebAnimationCurveMock : public CurveType { | 96 class WebAnimationCurveMock : 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&, blink::WebAnimationCurve::Timi
ngFunctionType)); | 99 MOCK_METHOD2_T(add, void(const KeyframeType&, blink::WebAnimationCurve::Timi
ngFunctionType)); |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 |
| OLD | NEW |