DSSeat: add LCOV_EXCL for event functions 43/243543/1
authorJunseok, Kim <juns.kim@samsung.com>
Tue, 8 Sep 2020 02:31:40 +0000 (11:31 +0900)
committerSung-Jin Park <sj76.park@samsung.com>
Tue, 8 Sep 2020 03:32:36 +0000 (12:32 +0900)
Change-Id: If93d9a62ca14f7f0d0645b7ecbf82afa8beb191f
Signed-off-by: Junseok, Kim <juns.kim@samsung.com>
src/DSSeat/DSSeat.cpp

index 87e69fb..bc1470d 100644 (file)
@@ -203,6 +203,7 @@ void DSSeat::slotDeviceAdd(std::shared_ptr<DSInputDevice> device)
        }
 }
 
+/*LCOV_EXCL_START*/
 void DSSeat::slotDeviceRemove(std::shared_ptr<DSInputDevice> device)
 {
        DSLOG_INF("DSSeat", "");
@@ -248,6 +249,7 @@ void DSSeat::slotDeviceRemove(std::shared_ptr<DSInputDevice> device)
        if (capNeedUpdate)
                __dswlSeat->setCapability((DSWaylandSeat::seatCapability)cap);
 }
+/*LCOV_EXCL_STOP*/
 
 void DSSeat::addPointer()
 {
@@ -269,6 +271,7 @@ void DSSeat::addPointer()
        __numPointer++;
 }
 
+/*LCOV_EXCL_START*/
 void DSSeat::addKeyboard()
 {
        if (0 < __numKeyboard)
@@ -288,7 +291,9 @@ void DSSeat::addKeyboard()
 
        __numKeyboard++;
 }
+/*LCOV_EXCL_STOP*/
 
+/*LCOV_EXCL_START*/
 void DSSeat::addTouch()
 {
        if (0 < __numTouch)
@@ -308,7 +313,9 @@ void DSSeat::addTouch()
 
        __numTouch++;
 }
+/*LCOV_EXCL_STOP*/
 
+/*LCOV_EXCL_START*/
 void DSSeat::removePointer()
 {
        if (0 >= __numPointer)
@@ -330,7 +337,9 @@ void DSSeat::removePointer()
                __pointer = nullptr;
        }
 }
+/*LCOV_EXCL_STOP*/
 
+/*LCOV_EXCL_START*/
 void DSSeat::removeKeyboard()
 {
        if (0 >= __numKeyboard)
@@ -352,7 +361,9 @@ void DSSeat::removeKeyboard()
                __keyboard = nullptr;
        }
 }
+/*LCOV_EXCL_STOP*/
 
+/*LCOV_EXCL_START*/
 void DSSeat::removeTouch()
 {
        if (0 >= __numTouch)
@@ -374,6 +385,7 @@ void DSSeat::removeTouch()
                __touch = nullptr;
        }
 }
+/*LCOV_EXCL_STOP*/
 
 bool DSSeat::hasPointer()
 {
@@ -400,6 +412,7 @@ std::string DSSeat::getName()
        return __dswlSeat->getName();
 }
 
+/*LCOV_EXCL_START*/
 void DSSeat::__onKeyEvent(DSInputKeyboardEvent *ev)
 {
        if (__keyboard == nullptr)
@@ -411,7 +424,9 @@ void DSSeat::__onKeyEvent(DSInputKeyboardEvent *ev)
        __dswlSeat->setCurrentEventTime(ev->getTimestamp());
        __keyboard->processEvent(ev, nullptr);
 }
+/*LCOV_EXCL_STOP*/
 
+/*LCOV_EXCL_START*/
 void DSSeat::__onPointerEvent(DSInputMouseEvent *ev)
 {
        if (__pointer == nullptr)
@@ -463,7 +478,9 @@ void DSSeat::__onPointerEvent(DSInputMouseEvent *ev)
 
        __pointer->processEvent(ev, nullptr);
 }
+/*LCOV_EXCL_STOP*/
 
+/*LCOV_EXCL_START*/
 void DSSeat::__onTouchEvent(DSInputTouchEvent *ev)
 {
        int winX;
@@ -514,12 +531,16 @@ void DSSeat::__onTouchEvent(DSInputTouchEvent *ev)
        __dswlSeat->setCurrentEventTime(ev->getTimestamp());
        __touch->processEvent(ev, nullptr);
 }
+/*LCOV_EXCL_STOP*/
 
+/*LCOV_EXCL_START*/
 void DSSeat::__onWindowStackChanged(std::shared_ptr<DSWindow> topWindow)
 {
        __stackChanged = true;
 }
+/*LCOV_EXCL_STOP*/
 
+/*LCOV_EXCL_START*/
 void DSSeat::__onWindowCreated(std::shared_ptr<DSWindow> window)
 {
        DSLOG_INF("DSSeat", "window created : %p (%p)", window, window.get());
@@ -547,7 +568,9 @@ void DSSeat::__onWindowCreated(std::shared_ptr<DSWindow> window)
                }
        }
 }
+/*LCOV_EXCL_STOP*/
 
+/*LCOV_EXCL_START*/
 void DSSeat::__onWindowDestroy(std::shared_ptr<DSWindow> window)
 {
        DSLOG_INF("DSSeat", "window destroy : %p (%p)", window, window.get());
@@ -588,7 +611,9 @@ void DSSeat::__onWindowDestroy(std::shared_ptr<DSWindow> window)
                }
        }
 }
+/*LCOV_EXCL_STOP*/
 
+/*LCOV_EXCL_START*/
 Eina_Bool DSSeat::inputEventHandlerKey(void *data, int type, void *event)
 {
        DSInputKeyboardEvent *ev = static_cast< DSInputKeyboardEvent* >(event);
@@ -596,7 +621,9 @@ Eina_Bool DSSeat::inputEventHandlerKey(void *data, int type, void *event)
 
        return EINA_TRUE;
 }
+/*LCOV_EXCL_STOP*/
 
+/*LCOV_EXCL_START*/
 Eina_Bool DSSeat::inputEventHandlerMouse(void *data, int type, void *event)
 {
        DSInputMouseEvent *ev = static_cast< DSInputMouseEvent* >(event);
@@ -604,7 +631,9 @@ Eina_Bool DSSeat::inputEventHandlerMouse(void *data, int type, void *event)
 
        return EINA_TRUE;
 }
+/*LCOV_EXCL_STOP*/
 
+/*LCOV_EXCL_START*/
 Eina_Bool DSSeat::inputEventHandlerTouch(void *data, int type, void *event)
 {
        DSInputTouchEvent *ev = static_cast< DSInputTouchEvent* >(event);
@@ -612,6 +641,7 @@ Eina_Bool DSSeat::inputEventHandlerTouch(void *data, int type, void *event)
 
        return EINA_TRUE;
 }
+/*LCOV_EXCL_STOP*/
 
 std::shared_ptr<DSWindow> DSSeat::getTopWindow(std::shared_ptr<DSWindow> winExcl)
 {