modify timing issue and add test case for DiscoveryManagerUnitTest
authordoil.kwon <doil.kwon@samsung.com>
Tue, 29 Sep 2015 06:59:05 +0000 (15:59 +0900)
committerMadan Lanka <lanka.madan@samsung.com>
Tue, 29 Sep 2015 11:03:23 +0000 (11:03 +0000)
commit244d7b436e11f8705c79165ba67d26d6db3b6d0a
tree1ebf621c7a39774e4da55364a16643fe24d7324d
parent1231ae73db59795d2571d9f67e7c6a72e0d443a9
modify timing issue and add test case for DiscoveryManagerUnitTest

- default waiting time is 3sec as each test.
- change discovery checking way from using sleep method to condition_variable.
: just unlock waiting mutex when is called callback function.
- request multiple discovery that have equal contents, and just one canceled.
  other request will be received callback function.

modify createId's logic for RCSDiscoveryManagerImpl.

modify Sconscript
- directory location for DiscoveryMaanger' unittest code is changed.

Change-Id: I3dfd5b1440959eac200746eba098ebd1ff93b69b
Signed-off-by: doil.kwon <doil.kwon@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/3249
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Madan Lanka <lanka.madan@samsung.com>
service/resource-encapsulation/SConscript
service/resource-encapsulation/include/RCSDiscoveryManager.h
service/resource-encapsulation/src/resourceClient/RCSDiscoveryManager.cpp
service/resource-encapsulation/src/resourceClient/RCSDiscoveryManagerImpl.cpp
service/resource-encapsulation/src/resourceClient/RCSDiscoveryManagerImpl.h
service/resource-encapsulation/unittests/DiscoveryManagerTest.cpp