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

Unified Diff: cc/test/mock_compositor_frame_sink_support_client.h

Issue 2802023002: Remove SurfaceFactory And SurfaceFactoryClient (Closed)
Patch Set: Rebase SurfaceSynchronizationTest Created 3 years, 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « cc/test/compositor_frame_helpers.cc ('k') | cc/test/mock_compositor_frame_sink_support_client.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/test/mock_compositor_frame_sink_support_client.h
diff --git a/cc/test/mock_compositor_frame_sink_support_client.h b/cc/test/mock_compositor_frame_sink_support_client.h
new file mode 100644
index 0000000000000000000000000000000000000000..792bb9d8706d0d1f90a4f57e130688f155b7ea75
--- /dev/null
+++ b/cc/test/mock_compositor_frame_sink_support_client.h
@@ -0,0 +1,31 @@
+// Copyright 2017 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CC_TEST_MOCK_COMPOSITOR_FRAME_SINK_SUPPORT_CLIENT_H_
+#define CC_TEST_MOCK_COMPOSITOR_FRAME_SINK_SUPPORT_CLIENT_H_
+
+#include "cc/surfaces/compositor_frame_sink_support_client.h"
+#include "testing/gmock/include/gmock/gmock.h"
+
+namespace cc {
+namespace test {
+
+class MockCompositorFrameSinkSupportClient
+ : public CompositorFrameSinkSupportClient {
+ public:
+ MockCompositorFrameSinkSupportClient();
+ ~MockCompositorFrameSinkSupportClient() override;
+
+ // CompositorFrameSinkSupportClient implementation.
+ MOCK_METHOD1(DidReceiveCompositorFrameAck,
+ void(const ReturnedResourceArray&));
+ MOCK_METHOD1(OnBeginFrame, void(const BeginFrameArgs&));
+ MOCK_METHOD1(ReclaimResources, void(const ReturnedResourceArray&));
+ MOCK_METHOD2(WillDrawSurface, void(const LocalSurfaceId&, const gfx::Rect&));
+};
+
+} // namespace test
+} // namespace cc
+
+#endif // CC_TEST_MOCK_COMPOSITOR_FRAME_SINK_SUPPORT_CLIENT_H_
« no previous file with comments | « cc/test/compositor_frame_helpers.cc ('k') | cc/test/mock_compositor_frame_sink_support_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698