| Index: services/ui/ws/test_utils.h
|
| diff --git a/services/ui/ws/test_utils.h b/services/ui/ws/test_utils.h
|
| index cabef6e3c5b95958174b35a4f78df67090cea008..a177c611a9a5e0d9ceedb84c5c0a13022fce428d 100644
|
| --- a/services/ui/ws/test_utils.h
|
| +++ b/services/ui/ws/test_utils.h
|
| @@ -244,6 +244,26 @@ class TestPlatformDisplayFactory : public PlatformDisplayFactory {
|
|
|
| // -----------------------------------------------------------------------------
|
|
|
| +// A stub implementation of FrameGeneratorDelegate.
|
| +class TestFrameGeneratorDelegate : public FrameGeneratorDelegate {
|
| + public:
|
| + explicit TestFrameGeneratorDelegate(std::unique_ptr<ServerWindow> root);
|
| + ~TestFrameGeneratorDelegate() override;
|
| +
|
| + // FrameGeneratorDelegate:
|
| + ServerWindow* GetRootWindow() override;
|
| + void OnCompositorFrameDrawn() override {}
|
| + const ViewportMetrics& GetViewportMetrics() override;
|
| +
|
| + private:
|
| + std::unique_ptr<ServerWindow> root_;
|
| + ViewportMetrics metrics_;
|
| +
|
| + DISALLOW_COPY_AND_ASSIGN(TestFrameGeneratorDelegate);
|
| +};
|
| +
|
| +// -----------------------------------------------------------------------------
|
| +
|
| class TestWindowManager : public mojom::WindowManager {
|
| public:
|
| TestWindowManager()
|
|
|