From: SooChan Lim Date: Thu, 18 Jun 2020 02:32:29 +0000 (+0900) Subject: implement the skeleton methods of DSSeat X-Git-Tag: accepted/tizen/unified/20200820.213435~339 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F36%2F241536%2F1;p=platform%2Fcore%2Fuifw%2Flibds.git implement the skeleton methods of DSSeat At this time, the test case fails. Change-Id: Ib8b2c7a47168be836e5ab5db67ff0ce99e068599 --- diff --git a/src/DSSeat/DSSeat.cpp b/src/DSSeat/DSSeat.cpp index 559e703..ba66418 100644 --- a/src/DSSeat/DSSeat.cpp +++ b/src/DSSeat/DSSeat.cpp @@ -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 diff --git a/src/DSSeat/DSSeat.h b/src/DSSeat/DSSeat.h index c3e64ab..78f06b4 100644 --- a/src/DSSeat/DSSeat.h +++ b/src/DSSeat/DSSeat.h @@ -1,17 +1,24 @@ #ifndef _DSSEAT_H_ #define _DSSEAT_H_ +#include + 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 diff --git a/tests/DSInput-test.cpp b/tests/DSInput-test.cpp index 657803c..3e4f18c 100644 --- a/tests/DSInput-test.cpp +++ b/tests/DSInput-test.cpp @@ -18,3 +18,10 @@ TEST_F(DSInputTest, NewDSInput) delete input; ASSERT_TRUE(true); } + +TEST_F(DSInputTest, BasicMethods) +{ + DSInput input; + + EXPECT_TRUE(true); +} diff --git a/tests/DSSeat-test.cpp b/tests/DSSeat-test.cpp index 72c53d9..40128cd 100644 --- a/tests/DSSeat-test.cpp +++ b/tests/DSSeat-test.cpp @@ -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); +}