4
#include "unity-webapps-binding.h"
5
#include "unity-webapps-binding-test.h"
6
#include "test_common.h"
7
#include "wrapped-ptr-type.h"
9
static bool func_reached = false;
10
static void on_func_reached(void)
16
unity_webapps_permissions_is_integration_allowed_test(void)
18
unity_webapps_binding_test_set_test_mode_on (on_func_reached);
20
// handle argument count
27
NULL_TO_NPVARIANT(args[0]);
29
unity_webapps_binding_permissions_is_integration_allowed (NULL
30
, (NPObject *) &tobject
32
, sizeof(args)/sizeof(args[0]));
34
if (!tobject.exceptioncalled || func_reached)
46
// check that function is reached w/ proper args
57
unity_webapps_binding_permissions_is_integration_allowed (NULL
58
, (NPObject *) &tobject
60
, sizeof(args)/sizeof(args[0]));
72
int main (int argc, char **argv)
74
if (unity_webapps_permissions_is_integration_allowed_test())