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