From: SooChan Lim Date: Mon, 8 Jun 2020 10:09:56 +0000 (+0900) Subject: DSDisplayArea: add initial code for DSDisplayArea X-Git-Tag: accepted/tizen/unified/20200820.213435~360 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F15%2F241515%2F1;p=platform%2Fcore%2Fuifw%2Flibds.git DSDisplayArea: add initial code for DSDisplayArea add initial DSDisplayArea class and testcase for it. Change-Id: Ibf4d30c86c73e7cd06fd21eb2356d89e9ad10fe2 --- diff --git a/meson.build b/meson.build index cfdf325..5862b62 100644 --- a/meson.build +++ b/meson.build @@ -52,6 +52,7 @@ src_libds = [ 'src/lib/DSCanvas/DSCanvas.cpp', 'src/lib/DSSeat/DSSeat.cpp', 'src/lib/DSPolicyArea/DSPolicyArea.cpp', + 'src/lib/DSDisplayArea/DSDisplayArea.cpp', ] pkgconfig = import('pkgconfig') diff --git a/src/lib/DSDisplayArea/DSDisplayArea.cpp b/src/lib/DSDisplayArea/DSDisplayArea.cpp new file mode 100644 index 0000000..5cc684d --- /dev/null +++ b/src/lib/DSDisplayArea/DSDisplayArea.cpp @@ -0,0 +1,12 @@ +#include "DSDisplayArea.h" + +namespace display_server +{ + DSDisplayArea::DSDisplayArea() + { + } + + DSDisplayArea::~DSDisplayArea() + { + } +} // namespace display_server \ No newline at end of file diff --git a/src/lib/DSDisplayArea/DSDisplayArea.h b/src/lib/DSDisplayArea/DSDisplayArea.h new file mode 100644 index 0000000..4892ba1 --- /dev/null +++ b/src/lib/DSDisplayArea/DSDisplayArea.h @@ -0,0 +1,17 @@ +#ifndef _DSDISPLAYAREA_H_ +#define _DSDISPLAYAREA_H_ + +namespace display_server +{ + class DSDisplayArea + { + public: + DSDisplayArea(); + virtual ~DSDisplayArea(); + + private: + /* data */ + }; +} + +#endif \ No newline at end of file diff --git a/tests/DSDisplayArea-test.cpp b/tests/DSDisplayArea-test.cpp new file mode 100644 index 0000000..b36c29b --- /dev/null +++ b/tests/DSDisplayArea-test.cpp @@ -0,0 +1,18 @@ +#include "libds-tests.h" +#include "DSDisplayArea.h" + +using namespace display_server; + +class DSDisplayAreaTest : public ::testing::Test +{ +public: + void SetUp(void) override {} + void TearDown(void) override {} +}; + +TEST_F(DSDisplayAreaTest, NewDSDisplayArea) +{ + DSDisplayArea *displayArea = new DSDisplayArea; + delete displayArea; + ASSERT_TRUE(true); +} diff --git a/tests/meson.build b/tests/meson.build index fc6658d..46c197a 100644 --- a/tests/meson.build +++ b/tests/meson.build @@ -8,6 +8,7 @@ incdir = include_directories( '../src/lib/DSCanvas', '../src/lib/DSSeat', '../src/lib/DSPolicyArea', + '../src/lib/DSDisplayArea', ) libds_unittests_src = [ @@ -23,6 +24,7 @@ libds_unittests_src = [ 'DSCanvas-test.cpp', 'DSSeat-test.cpp', 'DSPolicyArea-test.cpp', + 'DSDisplayArea-test.cpp', ] gmock_dep = dependency('gmock', method : 'pkg-config')