• Home
  • Raw
  • Download

Lines Matching refs:kName

687     static const char* kName = "val";  in RunObjectAccessorTest()  local
697 EXPECT_STREQ(kName, name.ToString().c_str()); in RunObjectAccessorTest()
715 EXPECT_STREQ(kName, name.ToString().c_str()); in RunObjectAccessorTest()
747 EXPECT_FALSE(object->HasValue(kName)); in RunObjectAccessorTest()
749 EXPECT_TRUE(object->SetValue(kName, V8_ACCESS_CONTROL_DEFAULT, in RunObjectAccessorTest()
752 EXPECT_TRUE(object->HasValue(kName)); in RunObjectAccessorTest()
754 EXPECT_TRUE(object->SetValue(kName, CefV8Value::CreateInt(kValue), in RunObjectAccessorTest()
760 CefRefPtr<CefV8Value> val = object->GetValue(kName); in RunObjectAccessorTest()
778 static const char* kName = "val"; in RunObjectAccessorExceptionTest() local
821 EXPECT_FALSE(object->HasValue(kName)); in RunObjectAccessorExceptionTest()
823 EXPECT_TRUE(object->SetValue(kName, V8_ACCESS_CONTROL_DEFAULT, in RunObjectAccessorExceptionTest()
826 EXPECT_TRUE(object->HasValue(kName)); in RunObjectAccessorExceptionTest()
828 EXPECT_FALSE(object->SetValue(kName, CefV8Value::CreateInt(1), in RunObjectAccessorExceptionTest()
839 CefRefPtr<CefV8Value> val = object->GetValue(kName); in RunObjectAccessorExceptionTest()
856 static const char* kName = "val"; in RunObjectAccessorFailTest() local
893 EXPECT_FALSE(object->HasValue(kName)); in RunObjectAccessorFailTest()
895 EXPECT_TRUE(object->SetValue(kName, V8_ACCESS_CONTROL_DEFAULT, in RunObjectAccessorFailTest()
898 EXPECT_TRUE(object->HasValue(kName)); in RunObjectAccessorFailTest()
900 EXPECT_TRUE(object->SetValue(kName, CefV8Value::CreateInt(1), in RunObjectAccessorFailTest()
905 CefRefPtr<CefV8Value> val = object->GetValue(kName); in RunObjectAccessorFailTest()
920 static const char* kName = "val"; in RunObjectAccessorReadOnlyTest() local
957 EXPECT_FALSE(object->HasValue(kName)); in RunObjectAccessorReadOnlyTest()
959 EXPECT_TRUE(object->SetValue(kName, V8_ACCESS_CONTROL_DEFAULT, in RunObjectAccessorReadOnlyTest()
962 EXPECT_TRUE(object->HasValue(kName)); in RunObjectAccessorReadOnlyTest()
964 EXPECT_TRUE(object->SetValue(kName, CefV8Value::CreateInt(1), in RunObjectAccessorReadOnlyTest()
969 CefRefPtr<CefV8Value> val = object->GetValue(kName); in RunObjectAccessorReadOnlyTest()
1188 static const char* kName = "val"; in RunObjectInterceptorFailTest() local
1264 EXPECT_FALSE(object->HasValue(kName)); in RunObjectInterceptorFailTest()
1269 CefRefPtr<CefV8Value> val1 = object->GetValue(kName); in RunObjectInterceptorFailTest()
1276 EXPECT_TRUE(object->SetValue(kName, CefV8Value::CreateInt(kValue1), in RunObjectInterceptorFailTest()
1281 val1 = object->GetValue(kName); in RunObjectInterceptorFailTest()
1317 static const char* kName = "val"; in RunObjectInterceptorExceptionTest() local
1392 EXPECT_FALSE(object->SetValue(kName, CefV8Value::CreateInt(1), in RunObjectInterceptorExceptionTest()
1404 CefRefPtr<CefV8Value> val1 = object->GetValue(kName); in RunObjectInterceptorExceptionTest()
1591 static const char* kName = "test_arg"; in RunObjectValueTest() local
1601 object->SetValue(kName, CefV8Value::CreateInt(kVal1), in RunObjectValueTest()
1605 test << "if (window." << kName << " != " << kVal1 << ") throw 'Fail';\n" in RunObjectValueTest()
1606 << "window." << kName << " = " << kVal2 << ";"; in RunObjectValueTest()
1615 CefRefPtr<CefV8Value> newval = object->GetValue(kName); in RunObjectValueTest()
1629 static const char* kName = "test_arg"; in RunObjectValueReadOnlyTest() local
1639 object->SetValue(kName, CefV8Value::CreateInt(kVal1), in RunObjectValueReadOnlyTest()
1643 test << "if (window." << kName << " != " << kVal1 << ") throw 'Fail';\n" in RunObjectValueReadOnlyTest()
1644 << "window." << kName << " = " << kVal2 << ";"; in RunObjectValueReadOnlyTest()
1653 CefRefPtr<CefV8Value> newval = object->GetValue(kName); in RunObjectValueReadOnlyTest()
1755 static const char* kName = "test_arg"; in RunObjectValueDeleteTest() local
1765 object->SetValue(kName, CefV8Value::CreateInt(kVal1), in RunObjectValueDeleteTest()
1769 test << "if (window." << kName << " != " << kVal1 << ") throw 'Fail';\n" in RunObjectValueDeleteTest()
1770 << "window." << kName << " = " << kVal2 in RunObjectValueDeleteTest()
1773 << kName << ";"; in RunObjectValueDeleteTest()
1782 CefRefPtr<CefV8Value> newval = object->GetValue(kName); in RunObjectValueDeleteTest()
1796 static const char* kName = "test_arg"; in RunObjectValueDontDeleteTest() local
1806 object->SetValue(kName, CefV8Value::CreateInt(kVal1), in RunObjectValueDontDeleteTest()
1810 test << "if (window." << kName << " != " << kVal1 << ") throw 'Fail';\n" in RunObjectValueDontDeleteTest()
1811 << "window." << kName << " = " << kVal2 in RunObjectValueDontDeleteTest()
1814 << kName << ";"; in RunObjectValueDontDeleteTest()
1823 CefRefPtr<CefV8Value> newval = object->GetValue(kName); in RunObjectValueDontDeleteTest()
1837 static const char* kName = ""; in RunObjectValueEmptyKeyTest() local
1846 EXPECT_FALSE(object->HasValue(kName)); in RunObjectValueEmptyKeyTest()
1848 object->SetValue(kName, CefV8Value::CreateInt(kVal), in RunObjectValueEmptyKeyTest()
1850 EXPECT_TRUE(object->HasValue(kName)); in RunObjectValueEmptyKeyTest()
1852 CefRefPtr<CefV8Value> newval = object->GetValue(kName); in RunObjectValueEmptyKeyTest()
1857 EXPECT_TRUE(object->DeleteValue(kName)); in RunObjectValueEmptyKeyTest()
1858 EXPECT_FALSE(object->HasValue(kName)); in RunObjectValueEmptyKeyTest()