Chromium Code Reviews| Index: components/mus/ws/platform_display.h |
| diff --git a/components/mus/ws/platform_display.h b/components/mus/ws/platform_display.h |
| index 9b19220f23469c7adea1c198ef0fc0ade5fa6b9f..a7f2600c52cfdecad4cccc3af7b57458aa62bd15 100644 |
| --- a/components/mus/ws/platform_display.h |
| +++ b/components/mus/ws/platform_display.h |
| @@ -53,6 +53,10 @@ class DisplayCompositor; |
| namespace ws { |
| +namespace test { |
| +class PlatformDisplayTest; |
| +} |
| + |
| class EventDispatcher; |
| class PlatformDisplayFactory; |
| class ServerWindow; |
| @@ -137,7 +141,13 @@ class DefaultPlatformDisplay : public PlatformDisplay, |
| std::unique_ptr<cc::CopyOutputRequest> output_request) override; |
| int64_t GetDisplayId() const override; |
| + void set_delegate_for_testing(PlatformDisplayDelegate* delegate) { |
| + delegate_ = delegate; |
| + } |
| + |
| private: |
| + friend class mus::ws::test::PlatformDisplayTest; |
|
sky
2016/06/27 15:17:08
If you're going to friend this, then don't bother
mfomitchev
2016/06/30 22:06:03
Done.
|
| + |
| void WantToDraw(); |
| // This method initiates a top level redraw of the display. |