Change service type config in platform unit tests.
authorZiran Sun <ziran.sun@samsung.com>
Mon, 8 Aug 2016 13:30:50 +0000 (14:30 +0100)
committerPhil Coval <philippe.coval@osg.samsung.com>
Mon, 5 Dec 2016 09:42:26 +0000 (09:42 +0000)
Using ServiceType::OutofProc causes exception throw in
registerResource unit test. Replace with ServiceType::InProc.

Change-Id: I89ea8741c19af2567f9ae84dc88983a8e54fb64f
Signed-off-by: Ziran Sun <ziran.sun@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/10159
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Habib Virji <habib.virji@samsung.com>
Reviewed-by: Uze Choi <uzchoi@samsung.com>
Reviewed-by: Phil Coval <philippe.coval@osg.samsung.com>
resource/unittests/OCPlatformTest.cpp

index 8c8ef75..6d2d261 100644 (file)
@@ -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(