DSInput: set LOCV_EXEC block for DSInput 43/242943/1
authorjeon <jhyuni.kang@samsung.com>
Tue, 1 Sep 2020 10:36:59 +0000 (19:36 +0900)
committerSung-Jin Park <sj76.park@samsung.com>
Wed, 2 Sep 2020 05:17:08 +0000 (14:17 +0900)
Change-Id: Ib956805f0796b9ba6ce0798e1f21a1147b2acf2b

src/DSInput/DSInput.cpp
src/DSInput/DSLibinput.cpp

index f86c9cf..c5b745c 100644 (file)
@@ -63,6 +63,7 @@ void DSInputPrivate::PostDeviceRemoveEvent(std::string seat, std::string name, s
        pub->deviceRemove(name, identifier, devClass, DSInput::NoneSubclass);
 }
 
+/*LCOV_EXCL_START*/
 void DSInputPrivate::PostKeyboardEvent(int keycode, bool pressed, std::string devIdentifier, DSInput::DeviceClass devClass, uint32_t timestamp)
 {
        DS_GET_PUB(DSInput);
@@ -96,6 +97,7 @@ void DSInputPrivate::PostTouchEvent(int index, int x, int y, DSInputEvent::Type
        else if (type == DSInputEvent::TouchUpEvent)
                pub->touchUp(index, x, y, devIdentifier, devClass, timestamp);
 }
+/*LCOV_EXCL_STOP*/
 
 int DSInput::DS_INPUT_EVENT_KEY_DOWN = 0;
 int DSInput::DS_INPUT_EVENT_KEY_UP = 0;
@@ -216,6 +218,7 @@ void DSInput::deviceRemove(std::string name, std::string identifier, DSInput::De
        delete device;
 }
 
+/*LCOV_EXCL_START*/
 DSInputDevice *DSInput::findDevice(std::string devIdentifier, DSInput::DeviceClass devClass)
 {
        for (auto dev : devList)
@@ -301,7 +304,7 @@ void DSInput::touchUp(int index, int x, int y, std::string devIdentifier, DSInpu
        DSInputTouchEvent *ev = new DSInputTouchEvent(std::make_shared<DSInputDevice>(*device), DSInputEvent::TouchUpEvent, timestamp, index, x, y);
        ecore_event_add(DS_INPUT_EVENT_TOUCH_UP, (void *)ev, nullptr, nullptr);
 }
-
+/*LCOV_EXCL_STOP*/
 
 void DSInput::registerCallbackDeviceAdd(DSObject *slot, std::function<void(std::shared_ptr<DSInputDevice>)> func)
 {
index 7e7ede9..c81f61e 100644 (file)
@@ -106,6 +106,7 @@ Eina_Bool DSLibinput::__handleEvents(void *data, Ecore_Fd_Handler *hdlr)
                        case LIBINPUT_EVENT_DEVICE_REMOVED:
                                dsLibinput->__processDeviceRemoveEvent(event);
                                break;
+/*LCOV_EXCL_START*/
                        case LIBINPUT_EVENT_KEYBOARD_KEY:
                                dsLibinput->__processKeyboardKeyEvent(event);
                                break;
@@ -141,6 +142,7 @@ Eina_Bool DSLibinput::__handleEvents(void *data, Ecore_Fd_Handler *hdlr)
                                break;
                        default:
                                break;
+/*LCOV_EXCL_STOP*/
                }
                libinput_event_destroy(event);
        }
@@ -201,6 +203,7 @@ void DSLibinput::__processDeviceRemoveEvent(struct ::libinput_event *event)
        }
 }
 
+/*LCOV_EXCL_START*/
 void DSLibinput::__processKeyboardKeyEvent(struct:: libinput_event *event)
 {
        struct:: libinput_event_keyboard *keyboard_event = libinput_event_get_keyboard_event(event);
@@ -325,5 +328,6 @@ void DSLibinput::__processTouchAuxDataEvent(struct ::libinput_event *event)
 {
        ;
 }
+/*LCOV_EXCL_STOP*/
 
 } // namespace display_server