Adjust provisioning unit test 93/24493/1
authorMats Wichmann <mats@linux.com>
Tue, 27 Mar 2018 18:20:38 +0000 (12:20 -0600)
committerMats Wichmann <mats@linux.com>
Tue, 27 Mar 2018 18:20:38 +0000 (12:20 -0600)
A test of registerDisplayPinCallback passes a null callback
argument, and a valid callback handler pointer argument,
but checks the resolt for OC_STACK_INVALID_PARAM (which
would be the case if the handler pointer was null) instead
of OC_STACK_INVALID_CALLBACK.

Change-Id: I9d5e529cc1e0da580f8cc853d6692ff8efb31b93
Signed-off-by: Mats Wichmann <mats@linux.com>
resource/provisioning/unittests/OCProvisioningTest.cpp

index 72ad5e8..3bd4054 100644 (file)
@@ -202,7 +202,7 @@ namespace OCProvisioningTest
     TEST(SetDisplayPinCBTest, RegisterDisplayPinCallbackTestNullCB)
     {
         DisplayPinCallbackHandle displayPinCallbackHandle;
-        EXPECT_EQ(OC_STACK_INVALID_PARAM, OCSecure::registerDisplayPinCallback(nullptr, &displayPinCallbackHandle));
+        EXPECT_EQ(OC_STACK_INVALID_CALLBACK, OCSecure::registerDisplayPinCallback(nullptr, &displayPinCallbackHandle));
     }