Add gtest for line coverage 31/237031/4
authorSeonah Moon <seonah1.moon@samsung.com>
Wed, 24 Jun 2020 06:38:32 +0000 (15:38 +0900)
committerSeonah Moon <seonah1.moon@samsung.com>
Wed, 24 Jun 2020 10:15:20 +0000 (19:15 +0900)
commit47b0f2399ffcd88faccbb5729ff0e14eb7609b0c
tree0b92f01fdefac63562c9ddbdb946127dac8316a3
parent0fd00ef40e406cd5875612e13bb40d7ec6b75310
Add gtest for line coverage

- Add testcases for sync API
- Remove LCOV macro
- Fix some bugs (memory leak, ...)

Change-Id: Ib57df16aa1c56e34a623fdb05e5cdb4f39c197cc
25 files changed:
CMakeLists.txt
packaging/capi-network-tethering.spec
src/tethering.c
src/tethering_client.c
src/tethering_private.c
tests/CMakeLists.txt [new file with mode: 0644]
tests/mocks/tethering_dummy_client.c [new file with mode: 0644]
tests/mocks/tethering_dummy_client.h [new file with mode: 0644]
tests/mocks/tethering_file.c [new file with mode: 0644]
tests/mocks/tethering_file.h [new file with mode: 0644]
tests/mocks/tethering_gdbus.c [new file with mode: 0644]
tests/mocks/tethering_gdbus.h [new file with mode: 0644]
tests/mocks/tethering_ioctl.c [new file with mode: 0644]
tests/mocks/tethering_memory.c [new file with mode: 0644]
tests/mocks/tethering_memory.h [new file with mode: 0644]
tests/mocks/tethering_system_info.c [new file with mode: 0644]
tests/mocks/tethering_system_info.h [new file with mode: 0644]
tests/mocks/tethering_vconf.c [new file with mode: 0644]
tests/mocks/tethering_vconf.h [new file with mode: 0644]
tests/tethering-gtest-client.cpp [new file with mode: 0755]
tests/tethering-gtest-common.cpp [new file with mode: 0755]
tests/tethering-gtest-main.cpp [new file with mode: 0755]
tests/tethering-gtest-wifi.cpp [new file with mode: 0755]
tools/CMakeLists.txt [moved from test/CMakeLists.txt with 100% similarity]
tools/tethering_test.c [moved from test/tethering_test.c with 100% similarity]