tests/ceftests/values_unittest.cc
// Test list value access on a different thread.
Test list value access on a different thread.
Test list value access on a different thread .
TEST(ValuesTest, ListAccessOtherThread) {
  CefRefPtr<CefListValue> value = CefListValue::Create();
  EXPECT_TRUE(value.get());
  EXPECT_TRUE(value->IsValid());
  EXPECT_FALSE(value->IsOwned());
  EXPECT_FALSE(value->IsReadOnly());
  char binary_data[] = "This is my test data";
  CefPostTask(TID_UI,
              new ListTask(value, binary_data, sizeof(binary_data) - 1));
  WaitForUIThread();
}
TEST ( ValuesTest , ListAccessOtherThread ) { CefRefPtr < CefListValue > value = CefListValue :: Create ( ) ; EXPECT_TRUE ( value . get ( ) ) ; EXPECT_TRUE ( value -> IsValid ( ) ) ; EXPECT_FALSE ( value -> IsOwned ( ) ) ; EXPECT_FALSE ( value -> IsReadOnly ( ) ) ; char binary_data [ ] = " " ; CefPostTask ( TID_UI , new ListTask ( value , binary_data , sizeof ( binary_data ) - 1 ) ) ; WaitForUIThread ( ) ; }
Test list value access on a different thread.
Test list value access on a different thread .
// Test on a different thread.