Update 'resource broker' unit test code.
authordoil.kwon <doil.kwon@samsung.com>
Thu, 30 Jul 2015 10:43:19 +0000 (19:43 +0900)
committerMadan Lanka <lanka.madan@samsung.com>
Fri, 31 Jul 2015 00:49:23 +0000 (00:49 +0000)
commitd428b94d60b37e7ee45f79156602fb5093c27fff
tree15d2450cc899803001baff187905d4ddc6b5bef5
parent337415689e7d6d95f2f736df4e7fac1feca3aa38
Update 'resource broker' unit test code.

1. whether is called timeoutCB correctly or not when is occurred timeover about 'subscribe' request.
2. whether is called subscribeCB correctly or not when is request 'subscribe'.
3. whether is called timeoutCB correctly or not when is occurred timeover about 'get' request.

and, modify some bug.
this bug is not occurred problem at previous version.but correct this point in order to upgrade our unitTest'
performance.

add license comment and delete white space.

add api for 'device presence' in order to get device_state' value.

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