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