Reenable IPCA unit tests.
authorSoemin Tjong <stjong@microsoft.com>
Sun, 26 Mar 2017 22:28:44 +0000 (15:28 -0700)
committerDan Mihai <Daniel.Mihai@microsoft.com>
Thu, 30 Mar 2017 22:25:54 +0000 (22:25 +0000)
commit5c935d9240430485fdf2b27fbdcc20c02a12526b
treeff8c79826e75a7654441cd7a575af0703efc553b
parenta42f30b57382815919f3873fcd028aa30e2c71bd
Reenable IPCA unit tests.

Fix: https://jira.iotivity.org/browse/IOT-1960

Address a couple of items:
Make a snapshot of vector variables for calling back to apps to address
issue with vector update in the middle of callbacks.

Also, properly delete observe handles in the mock library when app
cancels resource observation.  Otherwise the unit tests slow down as
number of test iteration increases.

Change-Id: I0116deb534ddfaa8e29b84a942ba3d95c1986816
Signed-off-by: Soemin Tjong <stjong@microsoft.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/18181
Tested-by: jenkins-iotivity <jenkins@iotivity.org>
Reviewed-by: Alex Kelley <alexke@microsoft.com>
Reviewed-by: Dan Mihai <Daniel.Mihai@microsoft.com>
resource/IPCA/src/callback.cpp
resource/IPCA/src/inc/callback.h
resource/IPCA/src/inc/ocfframework.h
resource/IPCA/src/ocfframework.cpp
resource/IPCA/unittests/ipcaunittests.cpp
resource/IPCA/unittests/mockOC.cpp