Beispiel #1
0
void handle_request_response()
{
    printf("Handle_request_response\n");

    CAResult_t res = CAHandleRequestResponse();
    if (CA_STATUS_OK != res)
    {
        printf("Handle request error, error code: %d\n", res);
    }
    else
    {
        printf("Handle request success\n");
    }
}
Beispiel #2
0
JNIEXPORT void JNICALL
Java_org_iotivity_ca_service_RMInterface_RMHandleRequestResponse(JNIEnv *env, jobject obj)
{
    LOGI("RMHandleRequestResponse");
    if(!env || !obj)
    {
        LOGI("Invalid input parameter");
        return;
    }

    if (CA_STATUS_OK != CAHandleRequestResponse())
    {
        LOGE("Could not handle request and response");
    }
}
Beispiel #3
0
void HandleRequestResponse()
{
    CAHandleRequestResponse();
}
// CAHandlerRequestResponse TC
// check return value
TEST_F(CATests, HandlerRequestResponseTest)
{
    EXPECT_EQ(CA_STATUS_OK, CAHandleRequestResponse());
}