Searched refs:TestNApiValue (Results 1 – 3 of 3) sorted by relevance
30 class TestNApiValue {32 TestNApiValue(int type, const void *value);33 ~TestNApiValue() {} in ~TestNApiValue()58 std::vector<TestNApiValue*> testValueList;
36 TestNApiValue g_callback(napi_function, nullptr);55 auto testValue = new TestNApiValue(type, value); in CreateNapiValue()71 TestNApiValue::TestNApiValue(int type, const void *value) in TestNApiValue() function in TestNApiValue118 if ((reinterpret_cast<TestNApiValue*>(value)) == nullptr) { in napi_typeof()121 if ((reinterpret_cast<TestNApiValue*>(value))->GetType() == TEST_NVALUE_TYPE_CONTEXT) { in napi_typeof()123 } else if ((reinterpret_cast<TestNApiValue*>(value))->GetType() == TEST_NVALUE_TYPE_UPGRADE) { in napi_typeof()125 …} else if ((reinterpret_cast<TestNApiValue*>(value))->GetType() == TEST_NVALUE_TYPE_UPDATE_POLICY)… in napi_typeof()128 *result = (napi_valuetype)(reinterpret_cast<TestNApiValue*>(value))->GetType(); in napi_typeof()238 TestNApiValue* testValue = reinterpret_cast<TestNApiValue*>(object); in napi_has_named_property()255 TestNApiValue* testValue = reinterpret_cast<TestNApiValue*>(object); in napi_get_named_property()[all …]
54 EXPECT_EQ((reinterpret_cast<TestNApiValue*>(ret))->intValue, (value)); in CHECK_RESULT_EQ()