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

Unified Diff: cc/test/fake_surface_resource_holder_client.h

Issue 2824053003: Split SurfaceFactoryClient Into Four Interfaces (Closed)
Patch Set: Address Nits 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
« no previous file with comments | « cc/surfaces/surface_resource_holder_client.h ('k') | cc/test/fake_surface_resource_holder_client.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/test/fake_surface_resource_holder_client.h
diff --git a/cc/test/fake_surface_resource_holder_client.h b/cc/test/fake_surface_resource_holder_client.h
new file mode 100644
index 0000000000000000000000000000000000000000..aa0e69061952f63e6c84a5aedb179828672b0ced
--- /dev/null
+++ b/cc/test/fake_surface_resource_holder_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_FAKE_SURFACE_RESOURCE_HOLDER_CLIENT_H_
+#define CC_TEST_FAKE_SURFACE_RESOURCE_HOLDER_CLIENT_H_
+
+#include "cc/surfaces/surface_resource_holder_client.h"
+
+namespace cc {
+
+class FakeSurfaceResourceHolderClient : public SurfaceResourceHolderClient {
+ public:
+ FakeSurfaceResourceHolderClient();
+ ~FakeSurfaceResourceHolderClient() override;
+
+ // SurfaceResourceHolderClient implementation.
+ void ReturnResources(const ReturnedResourceArray& resources) override;
+
+ void clear_returned_resources() { returned_resources_.clear(); }
+ const ReturnedResourceArray& returned_resources() {
+ return returned_resources_;
+ }
+
+ private:
+ ReturnedResourceArray returned_resources_;
+};
+
+} // namespace cc
+
+#endif // CC_TEST_FAKE_SURFACE_RESOURCE_HOLDER_CLIENT_H_
« no previous file with comments | « cc/surfaces/surface_resource_holder_client.h ('k') | cc/test/fake_surface_resource_holder_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698