Lines Matching refs:CefV8Value
262 CefRefPtr<CefV8Value> value = CefV8Value::CreateNull(); in RunNullCreateTest()
281 CefRefPtr<CefV8Value> value = CefV8Value::CreateBool(true); in RunBoolCreateTest()
301 CefRefPtr<CefV8Value> value = CefV8Value::CreateInt(12); in RunIntCreateTest()
323 CefRefPtr<CefV8Value> value = CefV8Value::CreateUInt(12); in RunUIntCreateTest()
345 CefRefPtr<CefV8Value> value = CefV8Value::CreateDouble(12.1223); in RunDoubleCreateTest()
381 CefRefPtr<CefV8Value> value = CefV8Value::CreateDate(date); in RunDateCreateTest()
404 CefRefPtr<CefV8Value> value = CefV8Value::CreateString("My string"); in RunStringCreateTest()
424 CefRefPtr<CefV8Value> value = CefV8Value::CreateString(CefString()); in RunEmptyStringCreateTest()
449 CefRefPtr<CefV8Value> value = CefV8Value::CreateArray(2); in RunArrayCreateTest()
479 CefRefPtr<CefV8Value> value = CefV8Value::CreateArray(0); in RunArrayValueTest()
488 EXPECT_TRUE(value->SetValue(0, CefV8Value::CreateInt(10))); in RunArrayValueTest()
498 EXPECT_TRUE(value->SetValue(1, CefV8Value::CreateInt(43))); in RunArrayValueTest()
557 CefRefPtr<CefV8Value> value = CefV8Value::CreateArrayBuffer( in RunArrayBufferTest()
596 CefRefPtr<CefV8Value> value; in RunArrayBufferValueTest()
604 CefV8Value::CreateArrayBuffer(static_data, sizeof(static_data), owner); in RunArrayBufferValueTest()
606 CefRefPtr<CefV8Value> object = context->GetGlobal(); in RunArrayBufferValueTest()
611 CefRefPtr<CefV8Value> retval; in RunArrayBufferValueTest()
632 CefRefPtr<CefV8Value> value = CefV8Value::CreateObject(nullptr, nullptr); in RunObjectCreateTest()
668 CefRefPtr<CefV8Value> value = CefV8Value::CreateObject(nullptr, nullptr); in RunObjectUserDataTest()
694 const CefRefPtr<CefV8Value> object, in RunObjectAccessorTest()
695 CefRefPtr<CefV8Value>& retval, in RunObjectAccessorTest()
706 retval = CefV8Value::CreateInt(value_); in RunObjectAccessorTest()
712 const CefRefPtr<CefV8Value> object, in RunObjectAccessorTest()
713 const CefRefPtr<CefV8Value> value, in RunObjectAccessorTest()
729 CefRefPtr<CefV8Value> object_; in RunObjectAccessorTest()
743 CefRefPtr<CefV8Value> object = CefV8Value::CreateObject(accessor, nullptr); in RunObjectAccessorTest()
754 EXPECT_TRUE(object->SetValue(kName, CefV8Value::CreateInt(kValue), in RunObjectAccessorTest()
760 CefRefPtr<CefV8Value> val = object->GetValue(kName); in RunObjectAccessorTest()
788 const CefRefPtr<CefV8Value> object, in RunObjectAccessorExceptionTest()
789 CefRefPtr<CefV8Value>& retval, in RunObjectAccessorExceptionTest()
797 const CefRefPtr<CefV8Value> object, in RunObjectAccessorExceptionTest()
798 const CefRefPtr<CefV8Value> value, in RunObjectAccessorExceptionTest()
818 CefRefPtr<CefV8Value> object = CefV8Value::CreateObject(accessor, nullptr); in RunObjectAccessorExceptionTest()
828 EXPECT_FALSE(object->SetValue(kName, CefV8Value::CreateInt(1), in RunObjectAccessorExceptionTest()
839 CefRefPtr<CefV8Value> val = object->GetValue(kName); in RunObjectAccessorExceptionTest()
862 const CefRefPtr<CefV8Value> object, in RunObjectAccessorFailTest()
863 CefRefPtr<CefV8Value>& retval, in RunObjectAccessorFailTest()
870 const CefRefPtr<CefV8Value> object, in RunObjectAccessorFailTest()
871 const CefRefPtr<CefV8Value> value, in RunObjectAccessorFailTest()
890 CefRefPtr<CefV8Value> object = CefV8Value::CreateObject(accessor, nullptr); in RunObjectAccessorFailTest()
900 EXPECT_TRUE(object->SetValue(kName, CefV8Value::CreateInt(1), in RunObjectAccessorFailTest()
905 CefRefPtr<CefV8Value> val = object->GetValue(kName); in RunObjectAccessorFailTest()
926 const CefRefPtr<CefV8Value> object, in RunObjectAccessorReadOnlyTest()
927 CefRefPtr<CefV8Value>& retval, in RunObjectAccessorReadOnlyTest()
934 const CefRefPtr<CefV8Value> object, in RunObjectAccessorReadOnlyTest()
935 const CefRefPtr<CefV8Value> value, in RunObjectAccessorReadOnlyTest()
954 CefRefPtr<CefV8Value> object = CefV8Value::CreateObject(accessor, nullptr); in RunObjectAccessorReadOnlyTest()
964 EXPECT_TRUE(object->SetValue(kName, CefV8Value::CreateInt(1), in RunObjectAccessorReadOnlyTest()
969 CefRefPtr<CefV8Value> val = object->GetValue(kName); in RunObjectAccessorReadOnlyTest()
998 const CefRefPtr<CefV8Value> object, in RunObjectInterceptorTest()
999 CefRefPtr<CefV8Value>& retval, in RunObjectInterceptorTest()
1012 retval = CefV8Value::CreateInt(value1_); in RunObjectInterceptorTest()
1015 retval = CefV8Value::CreateUInt(value2_); in RunObjectInterceptorTest()
1018 retval = CefV8Value::CreateString(value3_); in RunObjectInterceptorTest()
1025 const CefRefPtr<CefV8Value> object, in RunObjectInterceptorTest()
1026 CefRefPtr<CefV8Value>& retval, in RunObjectInterceptorTest()
1037 retval = CefV8Value::CreateInt(array_[index]); in RunObjectInterceptorTest()
1043 const CefRefPtr<CefV8Value> object, in RunObjectInterceptorTest()
1044 const CefRefPtr<CefV8Value> value, in RunObjectInterceptorTest()
1070 const CefRefPtr<CefV8Value> object, in RunObjectInterceptorTest()
1071 const CefRefPtr<CefV8Value> value, in RunObjectInterceptorTest()
1087 CefRefPtr<CefV8Value> object_; in RunObjectInterceptorTest()
1107 CefRefPtr<CefV8Value> object = in RunObjectInterceptorTest()
1108 CefV8Value::CreateObject(nullptr, interceptor); in RunObjectInterceptorTest()
1114 EXPECT_TRUE(object->SetValue(kName1, CefV8Value::CreateInt(kValue1), in RunObjectInterceptorTest()
1120 EXPECT_TRUE(object->SetValue(kName2, CefV8Value::CreateUInt(kValue2), in RunObjectInterceptorTest()
1126 EXPECT_TRUE(object->SetValue(kName3, CefV8Value::CreateString(kValue3), in RunObjectInterceptorTest()
1137 EXPECT_TRUE(object->SetValue(i, CefV8Value::CreateInt(kArray[i]))); in RunObjectInterceptorTest()
1144 CefRefPtr<CefV8Value> val1 = object->GetValue(kName1); in RunObjectInterceptorTest()
1152 CefRefPtr<CefV8Value> val2 = object->GetValue(kName2); in RunObjectInterceptorTest()
1160 CefRefPtr<CefV8Value> val3 = object->GetValue(kName3); in RunObjectInterceptorTest()
1169 CefRefPtr<CefV8Value> val = object->GetValue(i); in RunObjectInterceptorTest()
1200 const CefRefPtr<CefV8Value> object, in RunObjectInterceptorFailTest()
1201 CefRefPtr<CefV8Value>& retval, in RunObjectInterceptorFailTest()
1206 retval = CefV8Value::CreateInt(it->second); in RunObjectInterceptorFailTest()
1212 const CefRefPtr<CefV8Value> object, in RunObjectInterceptorFailTest()
1213 CefRefPtr<CefV8Value>& retval, in RunObjectInterceptorFailTest()
1218 retval = CefV8Value::CreateInt(it->second); in RunObjectInterceptorFailTest()
1224 const CefRefPtr<CefV8Value> object, in RunObjectInterceptorFailTest()
1225 const CefRefPtr<CefV8Value> value, in RunObjectInterceptorFailTest()
1234 const CefRefPtr<CefV8Value> object, in RunObjectInterceptorFailTest()
1235 const CefRefPtr<CefV8Value> value, in RunObjectInterceptorFailTest()
1260 CefRefPtr<CefV8Value> object = in RunObjectInterceptorFailTest()
1261 CefV8Value::CreateObject(nullptr, interceptor); in RunObjectInterceptorFailTest()
1269 CefRefPtr<CefV8Value> val1 = object->GetValue(kName); in RunObjectInterceptorFailTest()
1276 EXPECT_TRUE(object->SetValue(kName, CefV8Value::CreateInt(kValue1), in RunObjectInterceptorFailTest()
1292 CefRefPtr<CefV8Value> val2 = object->GetValue(kIndex); in RunObjectInterceptorFailTest()
1299 EXPECT_TRUE(object->SetValue(kIndex, CefV8Value::CreateInt(kValue2))); in RunObjectInterceptorFailTest()
1338 const CefRefPtr<CefV8Value> object, in RunObjectInterceptorExceptionTest()
1339 CefRefPtr<CefV8Value>& retval, in RunObjectInterceptorExceptionTest()
1347 const CefRefPtr<CefV8Value> object, in RunObjectInterceptorExceptionTest()
1348 CefRefPtr<CefV8Value>& retval, in RunObjectInterceptorExceptionTest()
1356 const CefRefPtr<CefV8Value> object, in RunObjectInterceptorExceptionTest()
1357 const CefRefPtr<CefV8Value> value, in RunObjectInterceptorExceptionTest()
1365 const CefRefPtr<CefV8Value> object, in RunObjectInterceptorExceptionTest()
1366 const CefRefPtr<CefV8Value> value, in RunObjectInterceptorExceptionTest()
1388 CefRefPtr<CefV8Value> object = in RunObjectInterceptorExceptionTest()
1389 CefV8Value::CreateObject(nullptr, interceptor); in RunObjectInterceptorExceptionTest()
1392 EXPECT_FALSE(object->SetValue(kName, CefV8Value::CreateInt(1), in RunObjectInterceptorExceptionTest()
1404 CefRefPtr<CefV8Value> val1 = object->GetValue(kName); in RunObjectInterceptorExceptionTest()
1416 EXPECT_FALSE(object->SetValue(kIndex, CefV8Value::CreateInt(1))); in RunObjectInterceptorExceptionTest()
1427 CefRefPtr<CefV8Value> val2 = object->GetValue(kIndex); in RunObjectInterceptorExceptionTest()
1454 const CefRefPtr<CefV8Value> object, in RunObjectInterceptorAndAccessorTest()
1455 CefRefPtr<CefV8Value>& retval, in RunObjectInterceptorAndAccessorTest()
1460 retval = CefV8Value::CreateInt(kInterceptorValue); in RunObjectInterceptorAndAccessorTest()
1466 const CefRefPtr<CefV8Value> object, in RunObjectInterceptorAndAccessorTest()
1467 CefRefPtr<CefV8Value>& retval, in RunObjectInterceptorAndAccessorTest()
1474 const CefRefPtr<CefV8Value> object, in RunObjectInterceptorAndAccessorTest()
1475 const CefRefPtr<CefV8Value> value, in RunObjectInterceptorAndAccessorTest()
1482 const CefRefPtr<CefV8Value> object, in RunObjectInterceptorAndAccessorTest()
1483 const CefRefPtr<CefV8Value> value, in RunObjectInterceptorAndAccessorTest()
1501 const CefRefPtr<CefV8Value> object, in RunObjectInterceptorAndAccessorTest()
1502 CefRefPtr<CefV8Value>& retval, in RunObjectInterceptorAndAccessorTest()
1505 retval = CefV8Value::CreateInt(kAccessorValue); in RunObjectInterceptorAndAccessorTest()
1510 const CefRefPtr<CefV8Value> object, in RunObjectInterceptorAndAccessorTest()
1511 const CefRefPtr<CefV8Value> value, in RunObjectInterceptorAndAccessorTest()
1532 CefRefPtr<CefV8Value> object = in RunObjectInterceptorAndAccessorTest()
1533 CefV8Value::CreateObject(accessor, interceptor); in RunObjectInterceptorAndAccessorTest()
1546 CefV8Value::CreateInt(kAccessorValue), in RunObjectInterceptorAndAccessorTest()
1555 CefV8Value::CreateInt(kInterceptorValue), in RunObjectInterceptorAndAccessorTest()
1564 CefRefPtr<CefV8Value> val1 = object->GetValue(kAccessorName); in RunObjectInterceptorAndAccessorTest()
1573 CefRefPtr<CefV8Value> val2 = object->GetValue(kInterceptorName); in RunObjectInterceptorAndAccessorTest()
1598 CefRefPtr<CefV8Value> object = context->GetGlobal(); in RunObjectValueTest()
1601 object->SetValue(kName, CefV8Value::CreateInt(kVal1), in RunObjectValueTest()
1608 CefRefPtr<CefV8Value> retval; in RunObjectValueTest()
1615 CefRefPtr<CefV8Value> newval = object->GetValue(kName); in RunObjectValueTest()
1636 CefRefPtr<CefV8Value> object = context->GetGlobal(); in RunObjectValueReadOnlyTest()
1639 object->SetValue(kName, CefV8Value::CreateInt(kVal1), in RunObjectValueReadOnlyTest()
1646 CefRefPtr<CefV8Value> retval; in RunObjectValueReadOnlyTest()
1653 CefRefPtr<CefV8Value> newval = object->GetValue(kName); in RunObjectValueReadOnlyTest()
1673 CefRefPtr<CefV8Value> object = context->GetGlobal(); in RunObjectValueEnumTest()
1676 CefRefPtr<CefV8Value> obj1 = CefV8Value::CreateObject(nullptr, nullptr); in RunObjectValueEnumTest()
1679 obj1->SetValue(kArgName, CefV8Value::CreateInt(0), in RunObjectValueEnumTest()
1690 CefRefPtr<CefV8Value> retval; in RunObjectValueEnumTest()
1697 CefRefPtr<CefV8Value> newval = obj1->GetValue(kArgName); in RunObjectValueEnumTest()
1717 CefRefPtr<CefV8Value> object = context->GetGlobal(); in RunObjectValueDontEnumTest()
1720 CefRefPtr<CefV8Value> obj1 = CefV8Value::CreateObject(nullptr, nullptr); in RunObjectValueDontEnumTest()
1723 obj1->SetValue(kArgName, CefV8Value::CreateInt(0), in RunObjectValueDontEnumTest()
1734 CefRefPtr<CefV8Value> retval; in RunObjectValueDontEnumTest()
1741 CefRefPtr<CefV8Value> newval = obj1->GetValue(kArgName); in RunObjectValueDontEnumTest()
1762 CefRefPtr<CefV8Value> object = context->GetGlobal(); in RunObjectValueDeleteTest()
1765 object->SetValue(kName, CefV8Value::CreateInt(kVal1), in RunObjectValueDeleteTest()
1775 CefRefPtr<CefV8Value> retval; in RunObjectValueDeleteTest()
1782 CefRefPtr<CefV8Value> newval = object->GetValue(kName); in RunObjectValueDeleteTest()
1803 CefRefPtr<CefV8Value> object = context->GetGlobal(); in RunObjectValueDontDeleteTest()
1806 object->SetValue(kName, CefV8Value::CreateInt(kVal1), in RunObjectValueDontDeleteTest()
1816 CefRefPtr<CefV8Value> retval; in RunObjectValueDontDeleteTest()
1823 CefRefPtr<CefV8Value> newval = object->GetValue(kName); in RunObjectValueDontDeleteTest()
1843 CefRefPtr<CefV8Value> object = context->GetGlobal(); in RunObjectValueEmptyKeyTest()
1848 object->SetValue(kName, CefV8Value::CreateInt(kVal), in RunObjectValueEmptyKeyTest()
1852 CefRefPtr<CefV8Value> newval = object->GetValue(kName); in RunObjectValueEmptyKeyTest()
1873 CefRefPtr<CefV8Value> object, in RunFunctionCreateTest()
1875 CefRefPtr<CefV8Value>& retval, in RunFunctionCreateTest()
1885 CefRefPtr<CefV8Value> value = CefV8Value::CreateFunction("f", new Handler); in RunFunctionCreateTest()
1919 CefRefPtr<CefV8Value> object, in RunFunctionHandlerTest()
1921 CefRefPtr<CefV8Value>& retval, in RunFunctionHandlerTest()
1934 retval = CefV8Value::CreateInt(kRetVal); in RunFunctionHandlerTest()
1942 CefRefPtr<CefV8Value> object_; in RunFunctionHandlerTest()
1954 CefRefPtr<CefV8Value> func = CefV8Value::CreateFunction(kFuncName, handler); in RunFunctionHandlerTest()
1957 CefRefPtr<CefV8Value> obj = CefV8Value::CreateObject(nullptr, nullptr); in RunFunctionHandlerTest()
1962 args.push_back(CefV8Value::CreateInt(kVal1)); in RunFunctionHandlerTest()
1963 args.push_back(CefV8Value::CreateInt(kVal2)); in RunFunctionHandlerTest()
1965 CefRefPtr<CefV8Value> retval = func->ExecuteFunction(obj, args); in RunFunctionHandlerTest()
1990 CefRefPtr<CefV8Value> object, in RunFunctionHandlerExceptionTest()
1992 CefRefPtr<CefV8Value>& retval, in RunFunctionHandlerExceptionTest()
2010 CefRefPtr<CefV8Value> func = CefV8Value::CreateFunction("myfunc", handler); in RunFunctionHandlerExceptionTest()
2015 CefRefPtr<CefV8Value> retval = func->ExecuteFunction(nullptr, args); in RunFunctionHandlerExceptionTest()
2036 CefRefPtr<CefV8Value> object, in RunFunctionHandlerFailTest()
2038 CefRefPtr<CefV8Value>& retval, in RunFunctionHandlerFailTest()
2055 CefRefPtr<CefV8Value> func = CefV8Value::CreateFunction("myfunc", handler); in RunFunctionHandlerFailTest()
2060 CefRefPtr<CefV8Value> retval = func->ExecuteFunction(nullptr, args); in RunFunctionHandlerFailTest()
2079 CefRefPtr<CefV8Value> object, in RunFunctionHandlerNoObjectTest()
2081 CefRefPtr<CefV8Value>& retval, in RunFunctionHandlerNoObjectTest()
2086 CefRefPtr<CefV8Value> global = context->GetGlobal(); in RunFunctionHandlerNoObjectTest()
2105 CefRefPtr<CefV8Value> func = CefV8Value::CreateFunction("myfunc", handler); in RunFunctionHandlerNoObjectTest()
2110 CefRefPtr<CefV8Value> retval = func->ExecuteFunction(nullptr, args); in RunFunctionHandlerNoObjectTest()
2128 CefRefPtr<CefV8Value> object, in RunFunctionHandlerWithContextTest()
2130 CefRefPtr<CefV8Value>& retval, in RunFunctionHandlerWithContextTest()
2152 CefRefPtr<CefV8Value> func = CefV8Value::CreateFunction("myfunc", handler); in RunFunctionHandlerWithContextTest()
2160 CefRefPtr<CefV8Value> retval = in RunFunctionHandlerWithContextTest()
2178 CefRefPtr<CefV8Value> object, in RunFunctionHandlerEmptyStringTest()
2180 CefRefPtr<CefV8Value>& retval, in RunFunctionHandlerEmptyStringTest()
2185 CefRefPtr<CefV8Value> global = context->GetGlobal(); in RunFunctionHandlerEmptyStringTest()
2193 retval = CefV8Value::CreateString(CefString()); in RunFunctionHandlerEmptyStringTest()
2210 CefRefPtr<CefV8Value> func = CefV8Value::CreateFunction("myfunc", handler); in RunFunctionHandlerEmptyStringTest()
2214 args.push_back(CefV8Value::CreateString(CefString())); in RunFunctionHandlerEmptyStringTest()
2216 CefRefPtr<CefV8Value> retval = func->ExecuteFunction(nullptr, args); in RunFunctionHandlerEmptyStringTest()
2233 CefRefPtr<CefV8Value> retval; in RunContextEvalTest()
2248 CefRefPtr<CefV8Value> retval; in RunContextEvalExceptionTest()
2263 CefRefPtr<CefV8Value> retval; in RunContextEvalCspBypassUnsafeEval()
2287 CefRefPtr<CefV8Value> retval; in RunContextEvalCspBypassSandbox()
2311 CefRefPtr<CefV8Value> retval; in RunContextEnteredTest()
2334 CefRefPtr<CefV8Value> object = context->GetGlobal(); in RunBindingTest()
2338 CefRefPtr<CefV8Value> value = object->GetValue("v8_binding_test"); in RunBindingTest()
2358 CefRefPtr<CefV8Value> object, in RunStackTraceTest()
2360 CefRefPtr<CefV8Value>& retval, in RunStackTraceTest()
2366 retval = CefV8Value::CreateInt(3); in RunStackTraceTest()
2383 CefRefPtr<CefV8Value> func = CefV8Value::CreateFunction(kFuncName, handler); in RunStackTraceTest()
2385 CefRefPtr<CefV8Value> obj = context->GetGlobal(); in RunStackTraceTest()
2389 CefRefPtr<CefV8Value> retval; in RunStackTraceTest()
2449 CefRefPtr<CefV8Value> object, in RunExtensionTest()
2451 CefRefPtr<CefV8Value>& retval, in RunExtensionTest()
2524 CefRefPtr<CefV8Value> object, in OnContextCreated()
2526 CefRefPtr<CefV8Value>& retval, in OnContextCreated()
2538 retval = CefV8Value::CreateInt(21); in OnContextCreated()
2553 CefRefPtr<CefV8Value> func = in OnContextCreated()
2554 CefV8Value::CreateFunction("v8_context_entered_test", handler); in OnContextCreated()
2557 CefRefPtr<CefV8Value> object = context->GetGlobal(); in OnContextCreated()
2566 CefRefPtr<CefV8Value> object = context->GetGlobal(); in OnContextCreated()
2568 EXPECT_TRUE(object->SetValue("v8_binding_test", CefV8Value::CreateInt(12), in OnContextCreated()
2578 CefRefPtr<CefV8Value> object, in OnContextCreated()
2580 CefRefPtr<CefV8Value>& retval, in OnContextCreated()
2602 CefRefPtr<CefV8Value> func = in OnContextCreated()
2603 CefV8Value::CreateFunction("notify_test_done", handler); in OnContextCreated()
2606 CefRefPtr<CefV8Value> object = context->GetGlobal(); in OnContextCreated()
2616 CefRefPtr<CefV8Value> object, in OnContextCreated()
2618 CefRefPtr<CefV8Value>& retval, in OnContextCreated()
2621 retval = CefV8Value::CreateBool(true); in OnContextCreated()
2635 CefRefPtr<CefV8Value> func = in OnContextCreated()
2636 CefV8Value::CreateFunction("v8_context_is_alive", handler); in OnContextCreated()
2639 CefRefPtr<CefV8Value> object = context->GetGlobal(); in OnContextCreated()
2704 CefRefPtr<CefV8Value> object, in DevToolsLoadHook()
2706 CefRefPtr<CefV8Value>& retval, in DevToolsLoadHook()
2711 retval = CefV8Value::CreateNull(); in DevToolsLoadHook()
2728 CefRefPtr<CefV8Value> func = CefV8Value::CreateFunction(kFuncName, handler); in DevToolsLoadHook()
2754 CefRefPtr<CefV8Value> retval; in DevToolsLoaded()
2792 CefRefPtr<CefV8Value> test_object_;