summaryrefslogtreecommitdiff
path: root/test/js-native-api/common.h
diff options
context:
space:
mode:
Diffstat (limited to 'test/js-native-api/common.h')
-rw-r--r--test/js-native-api/common.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/js-native-api/common.h b/test/js-native-api/common.h
index b16f944771..a524e8c7a7 100644
--- a/test/js-native-api/common.h
+++ b/test/js-native-api/common.h
@@ -1,3 +1,5 @@
+#include <js_native_api.h>
+
// Empty value so that macros here are able to return NULL or void
#define NAPI_RETVAL_NOTHING // Intentionally blank #define
@@ -58,3 +60,12 @@
#define DECLARE_NAPI_GETTER(name, func) \
{ (name), NULL, NULL, (func), NULL, NULL, napi_default, NULL }
+
+void add_returned_status(napi_env env,
+ const char* key,
+ napi_value object,
+ char* expected_message,
+ napi_status expected_status,
+ napi_status actual_status);
+
+void add_last_status(napi_env env, const char* key, napi_value return_value);