tests/ceftests/values_unittest.cc
// Test dictionary value access on a different thread.
Test dictionary value access on a different thread.
Test dictionary value access on a different thread .
TEST(ValuesTest, DictionaryAccessOtherThread) {
  CefRefPtr<CefDictionaryValue> value = CefDictionaryValue::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 DictionaryTask(value, binary_data, sizeof(binary_data) - 1));
  WaitForUIThread();
}
TEST ( ValuesTest , DictionaryAccessOtherThread ) { CefRefPtr < CefDictionaryValue > value = CefDictionaryValue :: Create ( ) ; EXPECT_TRUE ( value . get ( ) ) ; EXPECT_TRUE ( value -> IsValid ( ) ) ; EXPECT_FALSE ( value -> IsOwned ( ) ) ; EXPECT_FALSE ( value -> IsReadOnly ( ) ) ; char binary_data [ ] = " " ; CefPostTask ( TID_UI , new DictionaryTask ( value , binary_data , sizeof ( binary_data ) - 1 ) ) ; WaitForUIThread ( ) ; }
Test dictionary value access on a different thread.
Test dictionary value access on a different thread .
// Test on a different thread.