on xenial help sign in
Add forceClose Impl for MirSurface Mock
commit61e58b78484d182fec0e783b9674a2e2b89eec83 authorMarius Gripsgard <marius@ubports.com> dateSun 30 Jun 2019, 23:21 (7 years ago) parent2931b2f
3 files changed+3
tests/mocks/Unity/Application/MirSurface.h+1 tests/plugins/Unity/Launcher/launchermodeltest.cpp+1 tests/plugins/WindowManager/UnityApplicationMocks.h+1
tests/mocks/Unity/Application/MirSurface.h+1
@@ -103,6 +103,7 @@ public:
103103 unity::shell::application::MirSurfaceListInterface* childSurfaceList() const override;
104104
105105 Q_INVOKABLE void close() override;
106+ Q_INVOKABLE void forceClose() override { }
106107 Q_INVOKABLE void activate() override;
107108
108109 ////
tests/plugins/Unity/Launcher/launchermodeltest.cpp+1
@@ -75,6 +75,7 @@ public:
7575 MirSurfaceInterface* parentSurface() const override { return nullptr; }
7676 MirSurfaceListInterface* childSurfaceList() const override { return nullptr; }
7777 void close() override {}
78+ void forceClose() override {}
7879 void activate() override {}
7980 void requestState(Mir::State) override {}
8081
tests/plugins/WindowManager/UnityApplicationMocks.h+1
@@ -65,6 +65,7 @@ public:
6565 MirSurfaceInterface* parentSurface() const override { return nullptr; }
6666 unity::shell::application::MirSurfaceListInterface* childSurfaceList() const override { return nullptr; }
6767 void close() override {}
68+ void forceClose() override {}
6869 void activate() override {}
6970
7071public Q_SLOTS: