replace : iotivity -> iotivity-sec
[platform/upstream/iotivity.git] / resource / unittests / OCExceptionTest.cpp
index 3c4fcf0..921b45f 100644 (file)
@@ -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)
             {