[CONPRO-1337] Disabled Presence Feature
[platform/upstream/iotivity.git] / resource / unittests / OCExceptionTest.cpp
index efe51dd..d95d320 100644 (file)
@@ -37,6 +37,7 @@ namespace OC
                 OC_STACK_RESOURCE_CREATED,
                 OC_STACK_RESOURCE_DELETED,
                 OC_STACK_CONTINUE,
+                OC_STACK_RESOURCE_CHANGED,
                 OC_STACK_INVALID_URI,
                 OC_STACK_INVALID_QUERY,
                 OC_STACK_INVALID_IP,
@@ -64,14 +65,29 @@ namespace OC
                 OC_STACK_INVALID_DEVICE_INFO,
                 OC_STACK_INVALID_JSON,
                 OC_STACK_UNAUTHORIZED_REQ,
-                OC_STACK_PRESENCE_STOPPED,
-                OC_STACK_PRESENCE_TIMEOUT,
-                OC_STACK_PRESENCE_DO_NOT_HANDLE,
-                OC_STACK_ERROR,
+                OC_STACK_TOO_LARGE_REQ,
                 OC_STACK_PDM_IS_NOT_INITIALIZED,
                 OC_STACK_DUPLICATE_UUID,
                 OC_STACK_INCONSISTENT_DB,
-                OC_STACK_AUTHENTICATION_FAILURE
+                OC_STACK_SVR_DB_NOT_EXIST,
+                OC_STACK_AUTHENTICATION_FAILURE,
+                OC_STACK_NOT_ALLOWED_OXM,
+#ifdef WITH_PRESENCE
+                OC_STACK_PRESENCE_STOPPED,
+                OC_STACK_PRESENCE_TIMEOUT,
+                OC_STACK_PRESENCE_DO_NOT_HANDLE,
+#endif
+                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_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[]=
@@ -80,6 +96,7 @@ namespace OC
                 OC::Exception::RESOURCE_CREATED,
                 OC::Exception::RESOURCE_DELETED,
                 OC::Exception::STACK_CONTINUE,
+                OC::Exception::RESOURCE_CHANGED,
                 OC::Exception::INVALID_URI,
                 OC::Exception::INVALID_QUERY,
                 OC::Exception::INVALID_IP,
@@ -107,14 +124,27 @@ namespace OC
                 OC::Exception::INVALID_DEVICE_INFO,
                 OC::Exception::INVALID_REPRESENTATION,
                 OC::Exception::UNAUTHORIZED_REQUEST,
-                OC::Exception::PRESENCE_STOPPED,
-                OC::Exception::PRESENCE_TIMEOUT,
-                OC::Exception::PRESENCE_NOT_HANDLED,
-                OC::Exception::GENERAL_FAULT,
+                OC::Exception::TOO_LARGE_REQ,
                 OC::Exception::PDM_DB_NOT_INITIALIZED,
                 OC::Exception::DUPLICATE_UUID,
                 OC::Exception::INCONSISTENT_DB,
-                OC::Exception::AUTHENTICATION_FAILURE
+                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::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)
             {