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>
Wed, 30 Sep 2015 02:45:09 +0000 (02:45 +0000)
commitef976f5c60d28791c3289f1eef4f7787592f8913
tree4f8f8068f93b908c9fe81ab32282e5ea146e6778
parent07e60f187f5ef3952e79ea916a1ffb5df3f049b2
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>
(cherry picked from commit 244d7b436e11f8705c79165ba67d26d6db3b6d0a)
Reviewed-on: https://gerrit.iotivity.org/gerrit/3275
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