X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=resource%2Funittests%2FOCExceptionTest.cpp;h=921b45f1261735de03e2e0b0eaa5884f498ad44e;hb=7f00f942c39b7bc27c7eeecf213a239c3fe4173c;hp=3c4fcf0694bcbf975ef834af323fac462d4a9705;hpb=edcfc3d2329da7b914771c0dcff5f42c9b74fd93;p=platform%2Fupstream%2Fiotivity.git diff --git a/resource/unittests/OCExceptionTest.cpp b/resource/unittests/OCExceptionTest.cpp index 3c4fcf0..921b45f 100644 --- a/resource/unittests/OCExceptionTest.cpp +++ b/resource/unittests/OCExceptionTest.cpp @@ -66,17 +66,26 @@ namespace OC OC_STACK_INVALID_JSON, OC_STACK_UNAUTHORIZED_REQ, OC_STACK_TOO_LARGE_REQ, - OC_STACK_PRESENCE_STOPPED, - OC_STACK_PRESENCE_TIMEOUT, - OC_STACK_PRESENCE_DO_NOT_HANDLE, - OC_STACK_ERROR, OC_STACK_PDM_IS_NOT_INITIALIZED, OC_STACK_DUPLICATE_UUID, OC_STACK_INCONSISTENT_DB, + OC_STACK_SVR_DB_NOT_EXIST, OC_STACK_AUTHENTICATION_FAILURE, OC_STACK_NOT_ALLOWED_OXM, + OC_STACK_PRESENCE_STOPPED, + OC_STACK_PRESENCE_TIMEOUT, + OC_STACK_PRESENCE_DO_NOT_HANDLE, + OC_STACK_USER_DENIED_REQ, + OC_STACK_NOT_ACCEPTABLE, + OC_STACK_METHOD_NOT_ALLOWED, OC_STACK_FORBIDDEN_REQ, - OC_STACK_INTERNAL_SERVER_ERROR + OC_STACK_INTERNAL_SERVER_ERROR, + OC_STACK_NOT_IMPLEMENTED, + OC_STACK_BAD_GATEWAY, + OC_STACK_SERVICE_UNAVAILABLE, + OC_STACK_GATEWAY_TIMEOUT, + OC_STACK_PROXY_NOT_SUPPORTED, + OC_STACK_ERROR }; std::string resultMessages[]= @@ -114,17 +123,26 @@ namespace OC OC::Exception::INVALID_REPRESENTATION, OC::Exception::UNAUTHORIZED_REQUEST, OC::Exception::TOO_LARGE_REQ, - OC::Exception::PRESENCE_STOPPED, - OC::Exception::PRESENCE_TIMEOUT, - OC::Exception::PRESENCE_NOT_HANDLED, - OC::Exception::GENERAL_FAULT, OC::Exception::PDM_DB_NOT_INITIALIZED, OC::Exception::DUPLICATE_UUID, OC::Exception::INCONSISTENT_DB, + OC::Exception::SVR_DB_NOT_EXIST, OC::Exception::AUTHENTICATION_FAILURE, OC::Exception::NOT_ALLOWED_OXM, + OC::Exception::PRESENCE_STOPPED, + OC::Exception::PRESENCE_TIMEOUT, + OC::Exception::PRESENCE_NOT_HANDLED, + OC::Exception::USER_DENIED_REQ, + OC::Exception::NOT_ACCEPTABLE, + OC::Exception::METHOD_NOT_ALLOWED, OC::Exception::FORBIDDEN_REQ, - OC::Exception::INTERNAL_SERVER_ERROR + OC::Exception::INTERNAL_SERVER_ERROR, + OC::Exception::NOT_IMPLEMENTED, + OC::Exception::BAD_GATEWAY, + OC::Exception::SERVICE_UNAVAILABLE, + OC::Exception::GATEWAY_TIMEOUT, + OC::Exception::PROXY_NOT_SUPPORTED, + OC::Exception::GENERAL_FAULT }; TEST(OCExceptionTest, ReasonCodeMatches) {