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

Unified Diff: cc/test/mock_compositor_frame_sink_support_client.cc

Issue 2802023002: Remove SurfaceFactory And SurfaceFactoryClient (Closed)
Patch Set: Address Comments Created 3 years, 8 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
Index: cc/test/mock_compositor_frame_sink_support_client.cc
diff --git a/cc/test/mock_compositor_frame_sink_support_client.cc b/cc/test/mock_compositor_frame_sink_support_client.cc
new file mode 100644
index 0000000000000000000000000000000000000000..53f28a89d43b6a2752f89e962bfd285fc2154085
--- /dev/null
+++ b/cc/test/mock_compositor_frame_sink_support_client.cc
@@ -0,0 +1,28 @@
+// 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.
+
+#include "cc/test/mock_compositor_frame_sink_support_client.h"
+
+namespace cc {
+namespace test {
+
+MockCompositorFrameSinkSupportClient::MockCompositorFrameSinkSupportClient(
+ bool create_surface_during_eviction) {
+ ON_CALL(*this, ReclaimResources(_))
+ .WillByDefault(Invoke(
+ this,
+ &MockCompositorFrameSinkSupportClient::ReclaimResourcesInternal));
+ ON_CALL(*this, DidReceiveCompositorFrameAck(_))
+ .WillByDefault(Invoke(
+ this,
+ create_surface_during_eviction
+ ? &MockCompositorFrameSinkSupportClient::CreateSurfaceDrawCallback
+ : &MockCompositorFrameSinkSupportClient::
+ ReclaimResourcesInternal));
+}
+
+MockCompositorFrameSinkSupportClient::~MockCompositorFrameSinkSupportClient() =
+ default;
+} // namespace test
+} // namespace cc

Powered by Google App Engine
This is Rietveld 408576698