From: Ziran Sun Date: Tue, 23 Aug 2016 14:08:26 +0000 (+0100) Subject: Enable disabled Configure unit tests in OCPlatformTest. X-Git-Tag: 1.2.0+RC3~196 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=3e1e7340107bbbd6cffe4e4159b5fd2c5e1e9fc0;p=platform%2Fupstream%2Fiotivity.git Enable disabled Configure unit tests in OCPlatformTest. Since all the functionalities called in these unit tests are now available, enable these tests. Verification via local tests has been done before enable any of these tests. Change-Id: Ie5086e3394460452dd92199629017b30f1ef0030 Signed-off-by: Ziran Sun Reviewed-on: https://gerrit.iotivity.org/gerrit/10809 Tested-by: jenkins-iotivity Reviewed-by: Sungkyu Ko Reviewed-by: Habib Virji --- diff --git a/resource/unittests/OCPlatformTest.cpp b/resource/unittests/OCPlatformTest.cpp index 0fea345..f671cd3 100644 --- a/resource/unittests/OCPlatformTest.cpp +++ b/resource/unittests/OCPlatformTest.cpp @@ -163,10 +163,7 @@ namespace OCPlatformTest return resourceHandle; } - //Configure - // Enable it when the stack throw an exception - // https://jira.iotivity.org/browse/IOT-428 - TEST(ConfigureTest, DISABLED_ConfigureInvalidModeType) + TEST(ConfigureTest, ConfigureInvalidModeType) { PlatformConfig cfg { OC::ServiceType::InProc, @@ -179,9 +176,7 @@ namespace OCPlatformTest EXPECT_ANY_THROW(OCPlatform::setDefaultDeviceEntityHandler(NULL)); } - // Enable it when the stack throw an exception - // https://jira.iotivity.org/browse/IOT-428 - TEST(ConfigureTest, DISABLED_ConfigureInvalidServiceType) + TEST(ConfigureTest, ConfigureInvalidServiceType) { PlatformConfig cfg { (OC::ServiceType)99, @@ -194,9 +189,7 @@ namespace OCPlatformTest EXPECT_ANY_THROW(OCPlatform::setDefaultDeviceEntityHandler(NULL)); } - // Enable it when the stack throw an exception - // https://jira.iotivity.org/browse/IOT-428 - TEST(ConfigureTest, DISABLED_ConfigureClientOutProc) + TEST(ConfigureTest, ConfigureClientOutProc) { PlatformConfig cfg { OC::ServiceType::OutOfProc,