implement the skeleton methods of DSSeat 36/241536/1
authorSooChan Lim <sc1.lim@samsung.com>
Thu, 18 Jun 2020 02:32:29 +0000 (11:32 +0900)
committerSung-Jin Park <sj76.park@samsung.com>
Thu, 20 Aug 2020 09:44:51 +0000 (18:44 +0900)
At this time, the test case fails.

Change-Id: Ib8b2c7a47168be836e5ab5db67ff0ce99e068599

src/DSSeat/DSSeat.cpp
src/DSSeat/DSSeat.h
tests/DSInput-test.cpp
tests/DSSeat-test.cpp

index 559e703..ba66418 100644 (file)
@@ -2,9 +2,22 @@
 
 namespace display_server
 {
+
 DSSeat::DSSeat()
+       : __input(nullptr)
 {}
 
 DSSeat::~DSSeat()
 {}
+
+bool DSSeat::addInput(DSInput *input)
+{
+       return false;
+}
+
+bool DSSeat::removeInput(DSInput *input)
+{
+       return false;
+}
+
 } // namespace display_server
\ No newline at end of file
index c3e64ab..78f06b4 100644 (file)
@@ -1,17 +1,24 @@
 #ifndef _DSSEAT_H_
 #define _DSSEAT_H_
 
+#include <DSInput.h>
+
 namespace display_server
 {
+
 class DSSeat
 {
 public:
        DSSeat();
        virtual ~DSSeat();
 
+       bool addInput(DSInput *input);
+       bool removeInput(DSInput *input);
+
 private:
-       /* data */
+       DSInput *__input;
 };
+
 }
 
 #endif
\ No newline at end of file
index 657803c..3e4f18c 100644 (file)
@@ -18,3 +18,10 @@ TEST_F(DSInputTest, NewDSInput)
        delete input;
        ASSERT_TRUE(true);
 }
+
+TEST_F(DSInputTest, BasicMethods)
+{
+       DSInput input;
+
+       EXPECT_TRUE(true);
+}
index 72c53d9..40128cd 100644 (file)
@@ -18,3 +18,12 @@ TEST_F(DSSeatTest, NewDSSeat)
        delete seat;
        ASSERT_TRUE(true);
 }
+
+TEST_F(DSSeatTest, BasicMethods)
+{
+       DSSeat seat;
+       DSInput input;
+
+       EXPECT_TRUE(seat.addInput(&input) == true);
+       EXPECT_TRUE(seat.removeInput(&input) == true);
+}