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

Change-Id: Id99ad0553f0541190554b8b32d0d9fb8d79ed784

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

index 73d54af..8e08864 100644 (file)
@@ -49,6 +49,7 @@ src_libds = [
        'src/lib/DSCompositor/DSCompositor.cpp',
        'src/lib/DSOutput/DSOutput.cpp',
        'src/lib/DSInput/DSInput.cpp',
+       'src/lib/DSCanvas/DSCanvas.cpp',
        ]
 
 pkgconfig = import('pkgconfig')
diff --git a/src/lib/DSCanvas/DSCanvas.cpp b/src/lib/DSCanvas/DSCanvas.cpp
new file mode 100644 (file)
index 0000000..ad02a95
--- /dev/null
@@ -0,0 +1,12 @@
+#include "DSCanvas.h"
+
+namespace display_server
+{
+       DSCanvas::DSCanvas()
+       {
+       }
+
+       DSCanvas::~DSCanvas()
+       {
+       }
+} // namespace display_server
\ No newline at end of file
diff --git a/src/lib/DSCanvas/DSCanvas.h b/src/lib/DSCanvas/DSCanvas.h
new file mode 100644 (file)
index 0000000..f0e69aa
--- /dev/null
@@ -0,0 +1,17 @@
+#ifndef _DSCANVAS_H_
+#define _DSCANVAS_H_
+
+namespace display_server
+{
+       class DSCanvas
+       {
+       public:
+               DSCanvas();
+               virtual ~DSCanvas();
+
+       private:
+               /* data */
+       };
+}
+
+#endif
\ No newline at end of file
diff --git a/tests/DSCanvas-test.cpp b/tests/DSCanvas-test.cpp
new file mode 100644 (file)
index 0000000..ac1f5ed
--- /dev/null
@@ -0,0 +1,18 @@
+#include "libds-tests.h"
+#include "DSCanvas.h"
+
+using namespace display_server;
+
+class DSCanvasTest : public ::testing::Test
+{
+public:
+       void SetUp(void) override {}
+       void TearDown(void) override {}
+};
+
+TEST_F(DSCanvasTest, NewDSCanvas)
+{
+       DSCanvas *canvas = new DSCanvas;
+       delete canvas;
+       ASSERT_TRUE(true);
+}
index 0ede0e7..00c4b33 100644 (file)
@@ -5,6 +5,7 @@ incdir = include_directories(
        '../src/lib/DSCompositor',
        '../src/lib/DSOutput',
        '../src/lib/DSInput',
+       '../src/lib/DSCanvas',
        )
 
 libds_unittests_src = [
@@ -17,6 +18,7 @@ libds_unittests_src = [
        'DSCompositor-test.cpp',
        'DSOutput-test.cpp',
        'DSInput-test.cpp',
+       'DSCanvas-test.cpp',
        ]
 
 gmock_dep = dependency('gmock', method : 'pkg-config')