From f6db906d6a8c0c7565f570dd0a88dc7d6ad680e2 Mon Sep 17 00:00:00 2001 From: "Junseok, Kim" Date: Tue, 8 Sep 2020 11:32:01 +0900 Subject: [PATCH] DSTouch: add LCOV_EXCL for event functions Change-Id: I93abbda15d38e9746f474eb2461bd40e42af3220 Signed-off-by: Junseok, Kim --- src/DSSeat/DSTouch.cpp | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/DSSeat/DSTouch.cpp b/src/DSSeat/DSTouch.cpp index 37b17fb..a9fe988 100644 --- a/src/DSSeat/DSTouch.cpp +++ b/src/DSSeat/DSTouch.cpp @@ -49,6 +49,7 @@ DSTouch::DSTouch(DSSeat *seat, DSWaylandTouch *touch) DSTouch::~DSTouch() {} +/*LCOV_EXCL_START*/ void DSTouch::processEvent(DSInputTouchEvent *ev, void *data) { //TODO : get touchFocus and send event to it via DSWaylandTouch instance @@ -80,7 +81,9 @@ void DSTouch::processEvent(DSInputTouchEvent *ev, void *data) touchMove(ev->getIndex(), ev->getWinX(), ev->getWinY()); } } +/*LCOV_EXCL_STOP*/ +/*LCOV_EXCL_START*/ void DSTouch::touchDown(int32_t id, int x, int y) { if (__touchFocus && __dswlTouch) @@ -88,7 +91,9 @@ void DSTouch::touchDown(int32_t id, int x, int y) __dswlTouch->sendDown(id, x, y); } } +/*LCOV_EXCL_STOP*/ +/*LCOV_EXCL_START*/ void DSTouch::touchUp(int32_t id) { if (__touchFocus && __dswlTouch) @@ -96,7 +101,9 @@ void DSTouch::touchUp(int32_t id) __dswlTouch->sendUp(id); } } +/*LCOV_EXCL_STOP*/ +/*LCOV_EXCL_START*/ void DSTouch::touchMove(int32_t id, int x, int y) { if (__touchFocus && __dswlTouch) @@ -104,7 +111,9 @@ void DSTouch::touchMove(int32_t id, int x, int y) __dswlTouch->sendMotion(id, x, y); } } +/*LCOV_EXCL_STOP*/ +/*LCOV_EXCL_START*/ void DSTouch::setFocus(std::shared_ptr window) { if (!window) @@ -135,7 +144,9 @@ void DSTouch::setFocus(std::shared_ptr window) __dswlTouch->setFocus(waylandSurface); } +/*LCOV_EXCL_STOP*/ +/*LCOV_EXCL_START*/ void DSTouch::resetFocus() { if (__touchFocus) @@ -147,6 +158,7 @@ void DSTouch::resetFocus() if (__dswlTouch) __dswlTouch->resetFocus(); } +/*LCOV_EXCL_STOP*/ std::shared_ptr DSTouch::getFocus() { -- 2.7.4