Modify ResourcePresenceUnitTest Code
authordoil.kwon <doil.kwon@samsung.com>
Mon, 27 Jul 2015 10:46:27 +0000 (19:46 +0900)
committerMadan Lanka <lanka.madan@samsung.com>
Mon, 27 Jul 2015 11:20:31 +0000 (11:20 +0000)
commitc04ceb4bcf6c51000283f51087f52686f108f389
tree3e8fd6e2d952c98ba2db1f521d666a55eeeb9cd8
parente0bd950e4c896f413eed02e9d1105a24b44e1dc0
Modify ResourcePresenceUnitTest Code

- There is Segmentation fault because it is used 'weak pointer' without non-pre used 'shared pointer'.
so ResourcePresence instance's type is changed 'low pointer' to 'shared pointer'

- ResourcePresence's logic was chaging. so UnitTest's logic was changing(used mocking api's order and number)

Change-Id: Ic7ab6ae24b4b7bcb671d11728d16d0031842e002
Signed-off-by: doil.kwon <doil.kwon@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/1935
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Madan Lanka <lanka.madan@samsung.com>
service/resource-encapsulation/src/resourceBroker/unittest/ResourcePresenceUnitTest.cpp