Home
last modified time | relevance | path

Searched refs:TestNApiValue (Results 1 – 3 of 3) sorted by relevance

/base/update/updateservice/test/unittest/update_client/
Dclient_stub.h30 class TestNApiValue {
32 TestNApiValue(int type, const void *value);
33 ~TestNApiValue() {} in ~TestNApiValue()
58 std::vector<TestNApiValue*> testValueList;
Dclient_stub.cpp36 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 TestNApiValue
118 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 …]
Dclient_unittest.cpp54 EXPECT_EQ((reinterpret_cast<TestNApiValue*>(ret))->intValue, (value)); in CHECK_RESULT_EQ()