tests/ceftests/preference_unittest.cc
TEST(PreferenceTest, GlobalSetGet) {
  CefRefPtr<CefWaitableEvent> event =
      CefWaitableEvent::CreateWaitableEvent(true, false);

  CefRefPtr<CefRequestContext> context = CefRequestContext::GetGlobalContext();
  EXPECT_TRUE(context.get());

  ValidateSetGet(context, event);
  event->Wait();

  // Reset to the default values.
  ValidateDefaults(context, true, event);
  event->Wait();
}
// Verify setting/getting preference values on the global context.
Verify setting/getting preference values on the global context.
Verify setting / getting preference values on the global context .
TEST(PreferenceTest, GlobalSetGet) {
  CefRefPtr<CefWaitableEvent> event =
      CefWaitableEvent::CreateWaitableEvent(true, false);
  CefRefPtr<CefRequestContext> context = CefRequestContext::GetGlobalContext();
  EXPECT_TRUE(context.get());
  ValidateSetGet(context, event);
  event->Wait();
  ValidateDefaults(context, true, event);
  event->Wait();
}
TEST ( PreferenceTest , GlobalSetGet ) { CefRefPtr < CefWaitableEvent > event = CefWaitableEvent :: CreateWaitableEvent ( true , false ) ; CefRefPtr < CefRequestContext > context = CefRequestContext :: GetGlobalContext ( ) ; EXPECT_TRUE ( context . get ( ) ) ; ValidateSetGet ( context , event ) ; event -> Wait ( ) ; ValidateDefaults ( context , true , event ) ; event -> Wait ( ) ; }
Verify setting/getting preference values on the global context.
Verify setting / getting preference values on the global context .
// Reset to the default values.