From: Duna Oh Date: Thu, 3 Sep 2020 02:05:11 +0000 (+0900) Subject: DSZone: add testDestroyWindow() for test cases X-Git-Tag: accepted/tizen/unified/20200908.003021~8 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d77b08274443beee0f2ab1dcc5bf094defcb933b;p=platform%2Fcore%2Fuifw%2Flibds.git DSZone: add testDestroyWindow() for test cases Change-Id: I870cd47f2544f8ff0813b8b1a77bd78acc175e19 --- diff --git a/src/DSZone/DSZone.cpp b/src/DSZone/DSZone.cpp index eedc406..3997032 100644 --- a/src/DSZone/DSZone.cpp +++ b/src/DSZone/DSZone.cpp @@ -242,6 +242,15 @@ bool DSZone::testCreateWindow(std::shared_ptr waylandSurface) return true; } +bool DSZone::testDestroyWindow(std::shared_ptr waylandSurface) +{ + if (waylandSurface == nullptr) + return false; + + __onSurfaceDestroy(waylandSurface); + return true; +} + std::list> DSZone::getWindowList() { return __windowList; diff --git a/src/DSZone/DSZone.h b/src/DSZone/DSZone.h index 0fdd351..3857d70 100644 --- a/src/DSZone/DSZone.h +++ b/src/DSZone/DSZone.h @@ -62,6 +62,7 @@ public: void callCallbackWindowShellCreated(std::shared_ptr winShell); // for test bool testCreateWindow(std::shared_ptr waylandSurface); + bool testDestroyWindow(std::shared_ptr waylandSurface); // for window property bool setWindowParent(DSWaylandSurface *dswlSurface, DSWaylandSurface *dswlParentSurface);