| OLD | NEW |
| 1 // Copyright 2017 The Chromium Authors. All rights reserved. | 1 // Copyright 2017 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 #ifndef CC_TEST_MOCK_COMPOSITOR_FRAME_SINK_SUPPORT_CLIENT_H_ | 5 #ifndef CC_TEST_MOCK_COMPOSITOR_FRAME_SINK_SUPPORT_CLIENT_H_ |
| 6 #define CC_TEST_MOCK_COMPOSITOR_FRAME_SINK_SUPPORT_CLIENT_H_ | 6 #define CC_TEST_MOCK_COMPOSITOR_FRAME_SINK_SUPPORT_CLIENT_H_ |
| 7 | 7 |
| 8 #include "cc/surfaces/compositor_frame_sink_support_client.h" | 8 #include "cc/surfaces/compositor_frame_sink_support_client.h" |
| 9 #include "testing/gmock/include/gmock/gmock.h" | 9 #include "testing/gmock/include/gmock/gmock.h" |
| 10 | 10 |
| 11 namespace cc { | 11 namespace cc { |
| 12 namespace test { | 12 namespace test { |
| 13 | 13 |
| 14 class MockCompositorFrameSinkSupportClient | 14 class MockCompositorFrameSinkSupportClient |
| 15 : public CompositorFrameSinkSupportClient { | 15 : public CompositorFrameSinkSupportClient { |
| 16 public: | 16 public: |
| 17 MockCompositorFrameSinkSupportClient(); | 17 MockCompositorFrameSinkSupportClient(); |
| 18 ~MockCompositorFrameSinkSupportClient() override; | 18 ~MockCompositorFrameSinkSupportClient() override; |
| 19 | 19 |
| 20 // CompositorFrameSinkSupportClient implementation. | 20 // CompositorFrameSinkSupportClient implementation. |
| 21 MOCK_METHOD1(DidReceiveCompositorFrameAck, | 21 MOCK_METHOD1(DidReceiveCompositorFrameAck, |
| 22 void(const ReturnedResourceArray&)); | 22 void(const ReturnedResourceArray&)); |
| 23 MOCK_METHOD1(OnBeginFrame, void(const BeginFrameArgs&)); | 23 MOCK_METHOD1(OnBeginFrame, void(const BeginFrameArgs&)); |
| 24 MOCK_METHOD1(ReclaimResources, void(const ReturnedResourceArray&)); | 24 MOCK_METHOD1(ReclaimResources, void(const ReturnedResourceArray&)); |
| 25 MOCK_METHOD2(WillDrawSurface, void(const LocalSurfaceId&, const gfx::Rect&)); | 25 MOCK_METHOD2(WillDrawSurface, void(const LocalSurfaceId&, const gfx::Rect&)); |
| 26 void DidRejectCompositorFrame() override; |
| 26 }; | 27 }; |
| 27 | 28 |
| 28 } // namespace test | 29 } // namespace test |
| 29 } // namespace cc | 30 } // namespace cc |
| 30 | 31 |
| 31 #endif // CC_TEST_MOCK_COMPOSITOR_FRAME_SINK_SUPPORT_CLIENT_H_ | 32 #endif // CC_TEST_MOCK_COMPOSITOR_FRAME_SINK_SUPPORT_CLIENT_H_ |
| OLD | NEW |