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

Unified Diff: cc/test/fake_compositor_frame_sink.h

Issue 2752303002: views/mus: Install a mus-friend ContextFactory for tests. (Closed)
Patch Set: . Created 3 years, 9 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 | « ash/mus/non_client_frame_controller_unittest.cc ('k') | cc/test/fake_compositor_frame_sink.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/test/fake_compositor_frame_sink.h
diff --git a/cc/test/fake_compositor_frame_sink.h b/cc/test/fake_compositor_frame_sink.h
index c404d58b301f0485e572b6ec496452fd90f4fe05..098b28aeadc3f242f0278fbcbe37b0b09f0aa005 100644
--- a/cc/test/fake_compositor_frame_sink.h
+++ b/cc/test/fake_compositor_frame_sink.h
@@ -24,6 +24,8 @@
namespace cc {
+class BeginFrameSource;
+
class FakeCompositorFrameSink : public CompositorFrameSink {
public:
~FakeCompositorFrameSink() override;
@@ -61,6 +63,7 @@ class FakeCompositorFrameSink : public CompositorFrameSink {
// CompositorFrameSink implementation.
void SubmitCompositorFrame(CompositorFrame frame) override;
+ bool BindToClient(CompositorFrameSinkClient* client) override;
void DetachFromClient() override;
CompositorFrame* last_sent_frame() { return last_sent_frame_.get(); }
@@ -96,6 +99,7 @@ class FakeCompositorFrameSink : public CompositorFrameSink {
private:
void DidReceiveCompositorFrameAck();
+ std::unique_ptr<BeginFrameSource> begin_frame_source_;
base::WeakPtrFactory<FakeCompositorFrameSink> weak_ptr_factory_;
};
« no previous file with comments | « ash/mus/non_client_frame_controller_unittest.cc ('k') | cc/test/fake_compositor_frame_sink.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698