From d7ce62b3cbedf109fce7a7582ec72abc369cb23c Mon Sep 17 00:00:00 2001 From: Doyoun Kang Date: Tue, 1 Sep 2020 16:40:24 +0900 Subject: [PATCH] DSWindowShell: add testcase Change-Id: I5f9a9f76fd21299f43b203f9ff3c06e13edc1d0d --- tests/DSWindowShell-test.cpp | 370 +++++++++++++++++++++++++++++-------------- 1 file changed, 249 insertions(+), 121 deletions(-) diff --git a/tests/DSWindowShell-test.cpp b/tests/DSWindowShell-test.cpp index 0ac8b4d..43ce069 100644 --- a/tests/DSWindowShell-test.cpp +++ b/tests/DSWindowShell-test.cpp @@ -23,8 +23,11 @@ #include "libds-tests.h" #include "DSObject.h" +#include "DSZone.h" #include "DSWindow.h" #include "DSWindowShell.h" +#include "IDSWaylandShell.h" +#include "DSWaylandZxdgShellV6.h" using namespace display_server; @@ -40,72 +43,150 @@ public: TEST_F(DSWindowShellTest, NewDSWindowShell) { auto window = std::make_shared(); - std::unique_ptr shell = std::make_unique(window.get()); - EXPECT_TRUE(shell != nullptr); + std::unique_ptr winShell = std::make_unique(window.get()); + EXPECT_TRUE(winShell != nullptr); } TEST_F(DSWindowShellTest, create_P1) { auto window = std::make_shared(); - std::unique_ptr shell = std::make_unique(window.get()); - EXPECT_TRUE(shell != nullptr); + std::unique_ptr winShell = std::make_unique(window.get()); + EXPECT_TRUE(winShell != nullptr); - EXPECT_TRUE(shell->create(nullptr) == true); + EXPECT_TRUE(winShell->create(nullptr) == true); } TEST_F(DSWindowShellTest, create_P2) { auto window = std::make_shared(); - std::unique_ptr shell = std::make_unique(window.get()); - EXPECT_TRUE(shell != nullptr); + std::unique_ptr winShell = std::make_unique(window.get()); + EXPECT_TRUE(winShell != nullptr); - EXPECT_TRUE(shell->create(0, 0, 720, 1280, nullptr) == true); + EXPECT_TRUE(winShell->create(0, 0, 720, 1280, nullptr) == true); +} + +TEST_F(DSWindowShellTest, zone_P1) +{ + auto zone = std::make_shared(); + auto window = std::make_shared(); + std::unique_ptr winShell = std::make_unique(window.get()); + EXPECT_TRUE(winShell != nullptr); + + EXPECT_TRUE(winShell->setZone(zone.get())); + + DSZone *tZone = winShell->getZone(); + EXPECT_TRUE(zone.get() == tZone); +} + +TEST_F(DSWindowShellTest, shellSurface_P1) +{ +/* + DSWaylandCompositor *comp = DSWaylandCompositor::getInstance(); + EXPECT_TRUE(comp != nullptr); + + auto zone = std::make_shared(); + auto window = std::make_shared(); + auto zxdgShell = std::make_shared(comp); + auto shellSurface = std::make_shared(zxdgShell.get()); + std::unique_ptr winShell = std::make_unique(window.get()); + EXPECT_TRUE(winShell != nullptr); + + winShell->setShellSurface(shellSurface.get()); + + DSWaylandZxdgSurfaceV6 *tShellSurface = (DSWaylandZxdgSurfaceV6*)winShell->getShellSurface(); + EXPECT_TRUE(shellSurface.get() == tShellSurface); + + DSWaylandCompositor::releaseInstance(); +*/ +} + +TEST_F(DSWindowShellTest, window_P1) +{ + auto zone = std::make_shared(); + auto window = std::make_shared(); + std::unique_ptr winShell = std::make_unique(window.get()); + EXPECT_TRUE(winShell != nullptr); + + DSWindow *tWindow = winShell->getWindow(); + EXPECT_TRUE(window.get() == tWindow); } TEST_F(DSWindowShellTest, parent_P1) { auto window = std::make_shared(); - std::unique_ptr shell = std::make_unique(window.get()); - EXPECT_TRUE(shell != nullptr); + std::unique_ptr winShell = std::make_unique(window.get()); + EXPECT_TRUE(winShell != nullptr); - EXPECT_TRUE(shell->getParent() == nullptr); + EXPECT_TRUE(winShell->getParent() == nullptr); auto childWindow = std::make_shared(); - std::unique_ptr childShell = std::make_unique(childWindow.get()); - EXPECT_TRUE(childShell != nullptr); + std::unique_ptr childWinShell = std::make_unique(childWindow.get()); + EXPECT_TRUE(childWinShell != nullptr); - EXPECT_TRUE(childShell->setParent(shell.get()) == true); - EXPECT_TRUE(childShell->getParent() == shell.get()); + EXPECT_TRUE(childWinShell->setParent(winShell.get()) == true); + EXPECT_TRUE(childWinShell->getParent() == winShell.get()); // test for set parent each other - EXPECT_TRUE(shell->setParent(childShell.get()) == false); + EXPECT_TRUE(winShell->setParent(childWinShell.get()) == false); // test for set parent itself - EXPECT_TRUE(childShell->setParent(childShell.get()) == false); + EXPECT_TRUE(childWinShell->setParent(childWinShell.get()) == false); + + EXPECT_TRUE(childWinShell->setParent(nullptr) == true); + EXPECT_TRUE(childWinShell->getParent() == nullptr); +} + +TEST_F(DSWindowShellTest, child_P1) +{ + auto zone = std::make_shared(); + auto window = std::make_shared(); + std::unique_ptr winShell = std::make_unique(window.get()); + EXPECT_TRUE(winShell != nullptr); + + auto cWindow = std::make_shared(); + std::unique_ptr cShell = std::make_unique(cWindow.get()); + + EXPECT_TRUE(winShell->addChild(cShell.get())); + winShell->removeChild(cShell.get()); +} + +TEST_F(DSWindowShellTest, setTitle_P1) +{ + auto window = std::make_shared(); + std::unique_ptr winShell = std::make_unique(window.get()); + EXPECT_TRUE(winShell != nullptr); + + EXPECT_TRUE(winShell->setTitle("test setTitle") == true); +} + +TEST_F(DSWindowShellTest, setSkipFocus_P1) +{ + auto window = std::make_shared(); + std::unique_ptr winShell = std::make_unique(window.get()); + EXPECT_TRUE(winShell != nullptr); - EXPECT_TRUE(childShell->setParent(nullptr) == true); - EXPECT_TRUE(childShell->getParent() == nullptr); + EXPECT_TRUE(winShell->setSkipFocus(true)); } TEST_F(DSWindowShellTest, setPosition_P1) { auto window = std::make_shared(); - std::unique_ptr shell = std::make_unique(window.get()); - EXPECT_TRUE(shell != nullptr); + std::unique_ptr winShell = std::make_unique(window.get()); + EXPECT_TRUE(winShell != nullptr); - EXPECT_TRUE(shell->create(0, 0, 720, 1280, nullptr) == true); - EXPECT_TRUE(shell->setPosition(100, 150) == true); + EXPECT_TRUE(winShell->create(0, 0, 720, 1280, nullptr) == true); + EXPECT_TRUE(winShell->setPosition(100, 150) == true); } TEST_F(DSWindowShellTest, getPosition_P1) { stPosition pos; auto window = std::make_shared(); - std::unique_ptr shell = std::make_unique(window.get()); - EXPECT_TRUE(shell != nullptr); + std::unique_ptr winShell = std::make_unique(window.get()); + EXPECT_TRUE(winShell != nullptr); - EXPECT_TRUE(shell->setPosition(100, 150) == true); - pos = shell->getPosition(); + EXPECT_TRUE(winShell->setPosition(100, 150) == true); + pos = winShell->getPosition(); EXPECT_TRUE(pos.x == 0); EXPECT_TRUE(pos.y == 0); @@ -115,15 +196,15 @@ TEST_F(DSWindowShellTest, getPosition_P2) { stPosition pos; auto window = std::make_shared(); - std::unique_ptr shell = std::make_unique(window.get()); - EXPECT_TRUE(shell != nullptr); + std::unique_ptr winShell = std::make_unique(window.get()); + EXPECT_TRUE(winShell != nullptr); // set user geometry - shell->addAuxHint(1, "wm.policy.win.user.geometry", "1"); + winShell->addAuxHint(1, "wm.policy.win.user.geometry", "1"); - EXPECT_TRUE(shell->setPosition(100, 150) == true); + EXPECT_TRUE(winShell->setPosition(100, 150) == true); - pos = shell->getPosition(); + pos = winShell->getPosition(); EXPECT_TRUE(pos.x == 100); EXPECT_TRUE(pos.y == 150); @@ -132,11 +213,11 @@ TEST_F(DSWindowShellTest, getPosition_P2) TEST_F(DSWindowShellTest, setSize_P1) { auto window = std::make_shared(); - std::unique_ptr shell = std::make_unique(window.get()); - EXPECT_TRUE(shell != nullptr); + std::unique_ptr winShell = std::make_unique(window.get()); + EXPECT_TRUE(winShell != nullptr); - EXPECT_TRUE(shell->create(0, 0, 720, 1280, nullptr) == true); - EXPECT_TRUE(shell->setSize(720, 1280) == true); + EXPECT_TRUE(winShell->create(0, 0, 720, 1280, nullptr) == true); + EXPECT_TRUE(winShell->setSize(720, 1280) == true); } TEST_F(DSWindowShellTest, Geometry_P1) @@ -144,11 +225,11 @@ TEST_F(DSWindowShellTest, Geometry_P1) stGeometry geo; auto window = std::make_shared(); - std::unique_ptr shell = std::make_unique(window.get()); - EXPECT_TRUE(shell != nullptr); + std::unique_ptr winShell = std::make_unique(window.get()); + EXPECT_TRUE(winShell != nullptr); - shell->setGeometry(100, 150, 480, 800); - geo = shell->getGeometry(); + winShell->setGeometry(100, 150, 480, 800); + geo = winShell->getGeometry(); EXPECT_TRUE(geo.x == 0); EXPECT_TRUE(geo.y == 0); @@ -161,14 +242,14 @@ TEST_F(DSWindowShellTest, Geometry_P2) stGeometry geo; auto window = std::make_shared(); - std::unique_ptr shell = std::make_unique(window.get()); - EXPECT_TRUE(shell != nullptr); + std::unique_ptr winShell = std::make_unique(window.get()); + EXPECT_TRUE(winShell != nullptr); // set user geometry - shell->addAuxHint(1, "wm.policy.win.user.geometry", "1"); + winShell->addAuxHint(1, "wm.policy.win.user.geometry", "1"); - shell->setGeometry(100, 150, 480, 800); - geo = shell->getGeometry(); + winShell->setGeometry(100, 150, 480, 800); + geo = winShell->getGeometry(); EXPECT_TRUE(geo.x == 100); EXPECT_TRUE(geo.y == 150); @@ -176,129 +257,148 @@ TEST_F(DSWindowShellTest, Geometry_P2) EXPECT_TRUE(geo.h == 800); } +TEST_F(DSWindowShellTest, auxHints_P1) +{ + auto window = std::make_shared(); + std::unique_ptr winShell = std::make_unique(window.get()); + EXPECT_TRUE(winShell != nullptr); + + winShell->addAuxHint(1, "wm.policy.win.user.geometry", "1"); + winShell->changeAuxHint(1, "0"); + winShell->removeAuxHint(1); +} + TEST_F(DSWindowShellTest, show_P1) { auto window = std::make_shared(); - std::unique_ptr shell = std::make_unique(window.get()); - EXPECT_TRUE(shell != nullptr); + std::unique_ptr winShell = std::make_unique(window.get()); + EXPECT_TRUE(winShell != nullptr); - EXPECT_TRUE(shell->create(0, 0, 720, 1280, nullptr) == true); - EXPECT_TRUE(shell->show() == true); + EXPECT_TRUE(winShell->create(0, 0, 720, 1280, nullptr) == true); + EXPECT_TRUE(winShell->show() == true); } TEST_F(DSWindowShellTest, hide_P1) { auto window = std::make_shared(); - std::unique_ptr shell = std::make_unique(window.get()); - EXPECT_TRUE(shell != nullptr); + std::unique_ptr winShell = std::make_unique(window.get()); + EXPECT_TRUE(winShell != nullptr); - EXPECT_TRUE(shell->create(0, 0, 720, 1280, nullptr) == true); - EXPECT_TRUE(shell->hide(true) == true); + EXPECT_TRUE(winShell->create(0, 0, 720, 1280, nullptr) == true); + EXPECT_TRUE(winShell->hide(true) == true); } TEST_F(DSWindowShellTest, showState_P1) { auto window = std::make_shared(); - std::unique_ptr shell = std::make_unique(window.get()); - EXPECT_TRUE(shell != nullptr); + std::unique_ptr winShell = std::make_unique(window.get()); + EXPECT_TRUE(winShell != nullptr); - EXPECT_TRUE(shell->create(0, 0, 720, 1280, nullptr) == true); - EXPECT_TRUE(shell->showState() == 0); + EXPECT_TRUE(winShell->create(0, 0, 720, 1280, nullptr) == true); + EXPECT_TRUE(winShell->showState() == 0); } TEST_F(DSWindowShellTest, setLayer_P1) { auto window = std::make_shared(); - std::unique_ptr shell = std::make_unique(window.get()); - EXPECT_TRUE(shell != nullptr); + std::unique_ptr winShell = std::make_unique(window.get()); + EXPECT_TRUE(winShell != nullptr); - EXPECT_TRUE(shell->create(0, 0, 720, 1280, nullptr) == true); - EXPECT_TRUE(shell->setLayer(100) == true); + EXPECT_TRUE(winShell->create(0, 0, 720, 1280, nullptr) == true); + EXPECT_TRUE(winShell->setLayer(100) == true); } TEST_F(DSWindowShellTest, getLayer_P1) { int layer = -1; auto window = std::make_shared(); - std::unique_ptr shell = std::make_unique(window.get()); - EXPECT_TRUE(shell != nullptr); + std::unique_ptr winShell = std::make_unique(window.get()); + EXPECT_TRUE(winShell != nullptr); - EXPECT_TRUE(shell->create(0, 0, 720, 1280, nullptr) == true); - EXPECT_TRUE(shell->setLayer(100) == true); + EXPECT_TRUE(winShell->create(0, 0, 720, 1280, nullptr) == true); + EXPECT_TRUE(winShell->setLayer(100) == true); - layer = shell->getLayer(); + layer = winShell->getLayer(); EXPECT_TRUE(layer == 100); } TEST_F(DSWindowShellTest, raise_P1) { auto window = std::make_shared(); - std::unique_ptr shell = std::make_unique(window.get()); - EXPECT_TRUE(shell != nullptr); + std::unique_ptr winShell = std::make_unique(window.get()); + EXPECT_TRUE(winShell != nullptr); - EXPECT_TRUE(shell->create(0, 0, 720, 1280, nullptr) == true); - EXPECT_TRUE(shell->raise() == true); + EXPECT_TRUE(winShell->create(0, 0, 720, 1280, nullptr) == true); + EXPECT_TRUE(winShell->raise() == true); } TEST_F(DSWindowShellTest, lower_P1) { auto window = std::make_shared(); - std::unique_ptr shell = std::make_unique(window.get()); - EXPECT_TRUE(shell != nullptr); + std::unique_ptr winShell = std::make_unique(window.get()); + EXPECT_TRUE(winShell != nullptr); - EXPECT_TRUE(shell->create(0, 0, 720, 1280, nullptr) == true); - EXPECT_TRUE(shell->lower() == true); + EXPECT_TRUE(winShell->create(0, 0, 720, 1280, nullptr) == true); + EXPECT_TRUE(winShell->lower() == true); } TEST_F(DSWindowShellTest, setFocus_P1) { auto window = std::make_shared(); - std::unique_ptr shell = std::make_unique(window.get()); - EXPECT_TRUE(shell != nullptr); + std::unique_ptr winShell = std::make_unique(window.get()); + EXPECT_TRUE(winShell != nullptr); - EXPECT_TRUE(shell->create(0, 0, 720, 1280, nullptr) == true); - EXPECT_TRUE(shell->setFocus() == true); + EXPECT_TRUE(winShell->create(0, 0, 720, 1280, nullptr) == true); + EXPECT_TRUE(winShell->setFocus() == true); } TEST_F(DSWindowShellTest, isFocused_P1) { auto window = std::make_shared(); - std::unique_ptr shell = std::make_unique(window.get()); - EXPECT_TRUE(shell != nullptr); + std::unique_ptr winShell = std::make_unique(window.get()); + EXPECT_TRUE(winShell != nullptr); - EXPECT_TRUE(shell->create(0, 0, 720, 1280, nullptr) == true); - EXPECT_TRUE(shell->setFocus() == true); + EXPECT_TRUE(winShell->create(0, 0, 720, 1280, nullptr) == true); + EXPECT_TRUE(winShell->setFocus() == true); - EXPECT_TRUE(shell->isFocused() == true); + EXPECT_TRUE(winShell->isFocused() == true); } TEST_F(DSWindowShellTest, unsetFocus) { auto window = std::make_shared(); - std::unique_ptr shell = std::make_unique(window.get()); - EXPECT_TRUE(shell != nullptr); + std::unique_ptr winShell = std::make_unique(window.get()); + EXPECT_TRUE(winShell != nullptr); - EXPECT_TRUE(shell->create(0, 0, 720, 1280, nullptr) == true); - EXPECT_TRUE(shell->setFocus() == true); - EXPECT_TRUE(shell->isFocused() == true); - EXPECT_TRUE(shell->unsetFocus() == true); - EXPECT_TRUE(shell->isFocused() != true); + EXPECT_TRUE(winShell->create(0, 0, 720, 1280, nullptr) == true); + EXPECT_TRUE(winShell->setFocus() == true); + EXPECT_TRUE(winShell->isFocused() == true); + EXPECT_TRUE(winShell->unsetFocus() == true); + EXPECT_TRUE(winShell->isFocused() != true); } TEST_F(DSWindowShellTest, activate_P1) { auto window = std::make_shared(); - std::unique_ptr shell = std::make_unique(window.get()); - EXPECT_TRUE(shell != nullptr); + std::unique_ptr winShell = std::make_unique(window.get()); + EXPECT_TRUE(winShell != nullptr); - // do something + EXPECT_TRUE(winShell->activate()); +} + +TEST_F(DSWindowShellTest, activate_N1) +{ + std::unique_ptr winShell = std::make_unique(nullptr); + EXPECT_TRUE(winShell != nullptr); + + EXPECT_FALSE(winShell->activate()); } TEST_F(DSWindowShellTest, isActivated_P1) { auto window = std::make_shared(); - std::unique_ptr shell = std::make_unique(window.get()); - EXPECT_TRUE(shell != nullptr); + std::unique_ptr winShell = std::make_unique(window.get()); + EXPECT_TRUE(winShell != nullptr); // do something } @@ -306,8 +406,8 @@ TEST_F(DSWindowShellTest, isActivated_P1) TEST_F(DSWindowShellTest, iconify_P1) { auto window = std::make_shared(); - std::unique_ptr shell = std::make_unique(window.get()); - EXPECT_TRUE(shell != nullptr); + std::unique_ptr winShell = std::make_unique(window.get()); + EXPECT_TRUE(winShell != nullptr); // do something } @@ -315,8 +415,8 @@ TEST_F(DSWindowShellTest, iconify_P1) TEST_F(DSWindowShellTest, iconify_P2) { auto window = std::make_shared(); - std::unique_ptr shell = std::make_unique(window.get()); - EXPECT_TRUE(shell != nullptr); + std::unique_ptr winShell = std::make_unique(window.get()); + EXPECT_TRUE(winShell != nullptr); // do something } @@ -324,8 +424,8 @@ TEST_F(DSWindowShellTest, iconify_P2) TEST_F(DSWindowShellTest, uniconify_P1) { auto window = std::make_shared(); - std::unique_ptr shell = std::make_unique(window.get()); - EXPECT_TRUE(shell != nullptr); + std::unique_ptr winShell = std::make_unique(window.get()); + EXPECT_TRUE(winShell != nullptr); // do something } @@ -333,8 +433,8 @@ TEST_F(DSWindowShellTest, uniconify_P1) TEST_F(DSWindowShellTest, uniconify_P2) { auto window = std::make_shared(); - std::unique_ptr shell = std::make_unique(window.get()); - EXPECT_TRUE(shell != nullptr); + std::unique_ptr winShell = std::make_unique(window.get()); + EXPECT_TRUE(winShell != nullptr); // do something } @@ -342,8 +442,8 @@ TEST_F(DSWindowShellTest, uniconify_P2) TEST_F(DSWindowShellTest, getIconicState_P1) { auto window = std::make_shared(); - std::unique_ptr shell = std::make_unique(window.get()); - EXPECT_TRUE(shell != nullptr); + std::unique_ptr winShell = std::make_unique(window.get()); + EXPECT_TRUE(winShell != nullptr); // do something } @@ -351,8 +451,8 @@ TEST_F(DSWindowShellTest, getIconicState_P1) TEST_F(DSWindowShellTest, setType_P1) { auto window = std::make_shared(); - std::unique_ptr shell = std::make_unique(window.get()); - EXPECT_TRUE(shell != nullptr); + std::unique_ptr winShell = std::make_unique(window.get()); + EXPECT_TRUE(winShell != nullptr); // do something } @@ -360,8 +460,8 @@ TEST_F(DSWindowShellTest, setType_P1) TEST_F(DSWindowShellTest, getType_P1) { auto window = std::make_shared(); - std::unique_ptr shell = std::make_unique(window.get()); - EXPECT_TRUE(shell != nullptr); + std::unique_ptr winShell = std::make_unique(window.get()); + EXPECT_TRUE(winShell != nullptr); // do something } @@ -369,8 +469,8 @@ TEST_F(DSWindowShellTest, getType_P1) TEST_F(DSWindowShellTest, maximize_P1) { auto window = std::make_shared(); - std::unique_ptr shell = std::make_unique(window.get()); - EXPECT_TRUE(shell != nullptr); + std::unique_ptr winShell = std::make_unique(window.get()); + EXPECT_TRUE(winShell != nullptr); // do something } @@ -378,8 +478,8 @@ TEST_F(DSWindowShellTest, maximize_P1) TEST_F(DSWindowShellTest, isMaximized_P1) { auto window = std::make_shared(); - std::unique_ptr shell = std::make_unique(window.get()); - EXPECT_TRUE(shell != nullptr); + std::unique_ptr winShell = std::make_unique(window.get()); + EXPECT_TRUE(winShell != nullptr); // do something } @@ -387,8 +487,8 @@ TEST_F(DSWindowShellTest, isMaximized_P1) TEST_F(DSWindowShellTest, fullscreen_P1) { auto window = std::make_shared(); - std::unique_ptr shell = std::make_unique(window.get()); - EXPECT_TRUE(shell != nullptr); + std::unique_ptr winShell = std::make_unique(window.get()); + EXPECT_TRUE(winShell != nullptr); // do something } @@ -396,8 +496,8 @@ TEST_F(DSWindowShellTest, fullscreen_P1) TEST_F(DSWindowShellTest, isFullscreen_P1) { auto window = std::make_shared(); - std::unique_ptr shell = std::make_unique(window.get()); - EXPECT_TRUE(shell != nullptr); + std::unique_ptr winShell = std::make_unique(window.get()); + EXPECT_TRUE(winShell != nullptr); // do something } @@ -405,8 +505,8 @@ TEST_F(DSWindowShellTest, isFullscreen_P1) TEST_F(DSWindowShellTest, setRole_P1) { auto window = std::make_shared(); - std::unique_ptr shell = std::make_unique(window.get()); - EXPECT_TRUE(shell != nullptr); + std::unique_ptr winShell = std::make_unique(window.get()); + EXPECT_TRUE(winShell != nullptr); // do something } @@ -414,8 +514,36 @@ TEST_F(DSWindowShellTest, setRole_P1) TEST_F(DSWindowShellTest, getRole_P1) { auto window = std::make_shared(); - std::unique_ptr shell = std::make_unique(window.get()); - EXPECT_TRUE(shell != nullptr); + std::unique_ptr winShell = std::make_unique(window.get()); + EXPECT_TRUE(winShell != nullptr); // do something } + +TEST_F(DSWindowShellTest, vkbdFloating_P1) +{ + auto window = std::make_shared(); + std::unique_ptr winShell = std::make_unique(window.get()); + EXPECT_TRUE(winShell != nullptr); + + EXPECT_TRUE(winShell->getVkbdFloating() == false); + + EXPECT_TRUE(winShell->setVkbdFloating(true)); + EXPECT_TRUE(winShell->getVkbdFloating()); + + EXPECT_TRUE(winShell->setVkbdFloating(false)); + EXPECT_TRUE(winShell->getVkbdFloating() == false); +} + +TEST_F(DSWindowShellTest, allowUserGeometry_P1) +{ + auto window = std::make_shared(); + std::unique_ptr winShell = std::make_unique(window.get()); + EXPECT_TRUE(winShell != nullptr); + + winShell->setAllowUserGeometry(true); + + // do something for checking this property +} + + -- 2.7.4