From 67bedf550b4943247c71d75b7fb2f317bba0debb Mon Sep 17 00:00:00 2001 From: Gabriel Schulhof Date: Fri, 5 Jun 2015 15:55:31 +0300 Subject: [PATCH] All: Build against 809b1b1e9be15724a6d756b403328a95894e639f --- binding.gyp | 5 ++++- js/client.observe.js | 2 +- js/server.observe.js | 2 +- src/enums.cc | 11 +++++------ tests/tests/simple-client.js | 2 +- 5 files changed, 12 insertions(+), 10 deletions(-) diff --git a/binding.gyp b/binding.gyp index 099a98c1..2aafb62a 100644 --- a/binding.gyp +++ b/binding.gyp @@ -4,7 +4,10 @@ " bind_OCEntityHandlerFlag() { Local returnValue = NanNew(); - returnValue->ForceSet(NanNew("OC_INIT_FLAG"), - NanNew(OC_INIT_FLAG), - static_cast(ReadOnly || DontDelete)); returnValue->ForceSet(NanNew("OC_REQUEST_FLAG"), NanNew(OC_REQUEST_FLAG), static_cast(ReadOnly || DontDelete)); @@ -43,6 +40,9 @@ static Local bind_OCEntityHandlerResult() { returnValue->ForceSet(NanNew("OC_EH_FORBIDDEN"), NanNew(OC_EH_FORBIDDEN), static_cast(ReadOnly || DontDelete)); + returnValue->ForceSet(NanNew("OC_EH_RESOURCE_NOT_FOUND"), + NanNew(OC_EH_RESOURCE_NOT_FOUND), + static_cast(ReadOnly || DontDelete)); return returnValue; } @@ -296,10 +296,9 @@ static Local bind_OCVirtualResources() { static Local bind_OCConnectivityType() { Local returnValue = NanNew(); - returnValue->ForceSet(NanNew("OC_ETHERNET"), - NanNew(OC_ETHERNET), + returnValue->ForceSet(NanNew("OC_IPV4"), NanNew(OC_IPV4), static_cast(ReadOnly || DontDelete)); - returnValue->ForceSet(NanNew("OC_WIFI"), NanNew(OC_WIFI), + returnValue->ForceSet(NanNew("OC_IPV6"), NanNew(OC_IPV6), static_cast(ReadOnly || DontDelete)); returnValue->ForceSet(NanNew("OC_EDR"), NanNew(OC_EDR), static_cast(ReadOnly || DontDelete)); diff --git a/tests/tests/simple-client.js b/tests/tests/simple-client.js index 913b474f..4d81c7cc 100644 --- a/tests/tests/simple-client.js +++ b/tests/tests/simple-client.js @@ -124,7 +124,7 @@ test( "Simple client", function( assert ) { // Make sure the callback was called with the right response assert.deepEqual( - JSON.parse( response.resJSONPayload ).oc[ 0 ], + JSON.parse( response.resJSONPayload ).oic[ 0 ], magicToken, "OCDoResource observation handler has received the " + "expected response" );