Chromium Code Reviews| 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.h" | |
|
danakj
2017/05/05 19:47:52
not used
Alex Z.
2017/05/05 19:57:28
Done.
| |
| 9 #include "cc/surfaces/compositor_frame_sink_support_client.h" | |
| 10 #include "cc/test/compositor_frame_helpers.h" | |
|
danakj
2017/05/05 19:47:52
not used
Alex Z.
2017/05/05 19:57:29
Done.
| |
| 11 #include "testing/gmock/include/gmock/gmock.h" | |
| 12 #include "testing/gtest/include/gtest/gtest.h" | |
|
danakj
2017/05/05 19:47:53
same?
Alex Z.
2017/05/05 19:57:29
Done.
| |
| 13 | |
| 14 namespace cc { | |
| 15 namespace test { | |
| 16 | |
| 17 class MockCompositorFrameSinkSupportClient | |
| 18 : public CompositorFrameSinkSupportClient { | |
| 19 public: | |
| 20 MockCompositorFrameSinkSupportClient(); | |
| 21 ~MockCompositorFrameSinkSupportClient() override; | |
| 22 | |
| 23 // CompositorFrameSinkSupportClient implementation. | |
| 24 MOCK_METHOD1(DidReceiveCompositorFrameAck, | |
| 25 void(const ReturnedResourceArray&)); | |
| 26 MOCK_METHOD1(OnBeginFrame, void(const BeginFrameArgs&)); | |
| 27 MOCK_METHOD1(ReclaimResources, void(const ReturnedResourceArray&)); | |
| 28 MOCK_METHOD2(WillDrawSurface, void(const LocalSurfaceId&, const gfx::Rect&)); | |
| 29 }; | |
| 30 | |
| 31 } // namespace test | |
| 32 } // namespace cc | |
| 33 | |
| 34 #endif // CC_TEST_MOCK_COMPOSITOR_FRAME_SINK_SUPPORT_CLIENT_H_ | |
| OLD | NEW |