From 3e1e7340107bbbd6cffe4e4159b5fd2c5e1e9fc0 Mon Sep 17 00:00:00 2001 From: Ziran Sun Date: Tue, 23 Aug 2016 15:08:26 +0100 Subject: [PATCH] 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 --- resource/unittests/OCPlatformTest.cpp | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) 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, -- 2.7.4