DSSeat: add initial code for DSSeat 13/241513/1
authorSooChan Lim <sc1.lim@samsung.com>
Mon, 8 Jun 2020 09:51:02 +0000 (18:51 +0900)
committerSung-Jin Park <sj76.park@samsung.com>
Thu, 20 Aug 2020 09:44:20 +0000 (18:44 +0900)
add initial DSSeat class and testcase for it.

Change-Id: Iaf71bad6c99506b85689259f94af6aaed70136a2

meson.build
src/lib/DSSeat/DSSeat.cpp [new file with mode: 0644]
src/lib/DSSeat/DSSeat.h [new file with mode: 0644]
tests/DSSeat-test.cpp [new file with mode: 0644]
tests/meson.build

index 8e08864..64e47ed 100644 (file)
@@ -50,6 +50,7 @@ src_libds = [
        'src/lib/DSOutput/DSOutput.cpp',
        'src/lib/DSInput/DSInput.cpp',
        'src/lib/DSCanvas/DSCanvas.cpp',
+       'src/lib/DSSeat/DSSeat.cpp',
        ]
 
 pkgconfig = import('pkgconfig')
diff --git a/src/lib/DSSeat/DSSeat.cpp b/src/lib/DSSeat/DSSeat.cpp
new file mode 100644 (file)
index 0000000..9f9a1cd
--- /dev/null
@@ -0,0 +1,12 @@
+#include "DSSeat.h"
+
+namespace display_server
+{
+       DSSeat::DSSeat()
+       {
+       }
+
+       DSSeat::~DSSeat()
+       {
+       }
+} // namespace display_server
\ No newline at end of file
diff --git a/src/lib/DSSeat/DSSeat.h b/src/lib/DSSeat/DSSeat.h
new file mode 100644 (file)
index 0000000..d15176f
--- /dev/null
@@ -0,0 +1,17 @@
+#ifndef _DSSEAT_H_
+#define _DSSEAT_H_
+
+namespace display_server
+{
+       class DSSeat
+       {
+       public:
+               DSSeat();
+               virtual ~DSSeat();
+
+       private:
+               /* data */
+       };
+}
+
+#endif
\ No newline at end of file
diff --git a/tests/DSSeat-test.cpp b/tests/DSSeat-test.cpp
new file mode 100644 (file)
index 0000000..a6c1e67
--- /dev/null
@@ -0,0 +1,18 @@
+#include "libds-tests.h"
+#include "DSSeat.h"
+
+using namespace display_server;
+
+class DSSeatTest : public ::testing::Test
+{
+public:
+       void SetUp(void) override {}
+       void TearDown(void) override {}
+};
+
+TEST_F(DSSeatTest, NewDSSeat)
+{
+       DSSeat *seat = new DSSeat;
+       delete seat;
+       ASSERT_TRUE(true);
+}
index 00c4b33..9d7fbfd 100644 (file)
@@ -6,6 +6,7 @@ incdir = include_directories(
        '../src/lib/DSOutput',
        '../src/lib/DSInput',
        '../src/lib/DSCanvas',
+       '../src/lib/DSSeat',
        )
 
 libds_unittests_src = [
@@ -19,6 +20,7 @@ libds_unittests_src = [
        'DSOutput-test.cpp',
        'DSInput-test.cpp',
        'DSCanvas-test.cpp',
+       'DSSeat-test.cpp',
        ]
 
 gmock_dep = dependency('gmock', method : 'pkg-config')