TEST(SRPProvisionTrustCertChainTest, SRPGetACLResourceNoDevice) { EXPECT_EQ(OC_STACK_INVALID_PARAM, SRPGetACLResource(NULL, NULL, provisioningCB)); }
/** * this function requests ACL information to resource. * * @param[in] ctx Application context would be returned in result callback. * @param[in] selectedDeviceInfo Selected target device. * @param[in] resultCallback callback provided by API user, callback will be called when provisioning request recieves a response from resource server. * @return OC_STACK_OK in case of success and other value otherwise. */ OCStackResult OCGetACLResource(void* ctx, const OCProvisionDev_t *selectedDeviceInfo, OCProvisionResultCB resultCallback) { return SRPGetACLResource(ctx, selectedDeviceInfo, resultCallback); }
TEST(SRPProvisionTrustCertChainTest, SRPGetACLResourceNoCallback) { EXPECT_EQ(OC_STACK_INVALID_CALLBACK, SRPGetACLResource(NULL, &pDev1, NULL)); }