From: Ziran Sun Date: Mon, 8 Aug 2016 13:30:50 +0000 (+0100) Subject: Change service type config in platform unit tests. X-Git-Tag: 1.3.0~1050^2~6 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=9e5ec0c850e5590728a0c14ff24b0b0d9c185c9e;p=platform%2Fupstream%2Fiotivity.git 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 --- 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(