DSWindow: add TCs 66/243466/1
authorDoyoun Kang <doyoun.kang@samsung.com>
Thu, 3 Sep 2020 02:14:45 +0000 (11:14 +0900)
committerSung-Jin Park <sj76.park@samsung.com>
Mon, 7 Sep 2020 10:36:15 +0000 (19:36 +0900)
Change-Id: I15d8b6af8bce600fea21da5e50687129eccfab9f

tests/DSWindow-test.cpp

index d0f7695..0cb0eaf 100644 (file)
@@ -194,3 +194,17 @@ TEST_F(DSWindowTest, UserGeometryTest)
        EXPECT_TRUE(win->isAllowUserGeometry());
 }
 
+TEST_F(DSWindowTest, TypeTest)
+{
+       auto win = std::make_shared<DSWindow>();
+       EXPECT_TRUE(win != nullptr);
+
+       int type;
+       type = win->getType();
+       EXPECT_TRUE(type == 0);
+
+       win->setType(3);
+
+       type = win->getType();
+       EXPECT_TRUE(type == 3);
+}