From 9e5ec0c850e5590728a0c14ff24b0b0d9c185c9e Mon Sep 17 00:00:00 2001 From: Ziran Sun Date: Mon, 8 Aug 2016 14:30:50 +0100 Subject: [PATCH] Change service type config in platform unit tests. Using ServiceType::OutofProc causes exception throw in registerResource unit test. Replace with ServiceType::InProc. Change-Id: I89ea8741c19af2567f9ae84dc88983a8e54fb64f Signed-off-by: Ziran Sun Reviewed-on: https://gerrit.iotivity.org/gerrit/10159 Tested-by: jenkins-iotivity Reviewed-by: Habib Virji Reviewed-by: Uze Choi Reviewed-by: Phil Coval --- resource/unittests/OCPlatformTest.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/resource/unittests/OCPlatformTest.cpp b/resource/unittests/OCPlatformTest.cpp index 8c8ef75..6d2d261 100644 --- a/resource/unittests/OCPlatformTest.cpp +++ b/resource/unittests/OCPlatformTest.cpp @@ -130,7 +130,7 @@ namespace OCPlatformTest OCResourceHandle RegisterResource(std::string uri, std::string type, std::string iface) { PlatformConfig cfg - { OC::ServiceType::OutOfProc, OC::ModeType::Server, "0.0.0.0", 0, + { OC::ServiceType::InProc, OC::ModeType::Server, "0.0.0.0", 0, OC::QualityOfService::LowQos, &gps }; OCPlatform::Configure(cfg); EXPECT_EQ(OC_STACK_OK,OCPlatform::registerResource( @@ -142,7 +142,7 @@ namespace OCPlatformTest OCResourceHandle RegisterResource(std::string uri, std::string type) { PlatformConfig cfg - { OC::ServiceType::OutOfProc, OC::ModeType::Server, "0.0.0.0", 0, + { OC::ServiceType::InProc, OC::ModeType::Server, "0.0.0.0", 0, OC::QualityOfService::LowQos, &gps }; OCPlatform::Configure(cfg); EXPECT_EQ(OC_STACK_OK, OCPlatform::registerResource( @@ -154,7 +154,7 @@ namespace OCPlatformTest OCResourceHandle RegisterResource(std::string uri) { PlatformConfig cfg - { OC::ServiceType::OutOfProc, OC::ModeType::Server, "0.0.0.0", 0, + { OC::ServiceType::InProc, OC::ModeType::Server, "0.0.0.0", 0, OC::QualityOfService::LowQos, &gps }; OCPlatform::Configure(cfg); EXPECT_EQ(OC_STACK_OK, OCPlatform::registerResource( -- 2.7.4