tests/ceftests/preference_unittest.cc
// Verify default preference values on a custom context.
Verify default preference values on a custom context.
Verify default preference values on a custom context .
TEST(PreferenceTest, CustomDefaults) {
  CefRefPtr<CefWaitableEvent> event =
      CefWaitableEvent::CreateWaitableEvent(true, false);
  CefRequestContextSettings settings;
  CefRefPtr<CefRequestContext> context = CefRequestContext::CreateContext(
      settings, new TestRequestContextHandler(event));
  EXPECT_TRUE(context.get());
  event->Wait();
  ValidateDefaults(context, false, event);
  event->Wait();
}
TEST ( PreferenceTest , CustomDefaults ) { CefRefPtr < CefWaitableEvent > event = CefWaitableEvent :: CreateWaitableEvent ( true , false ) ; CefRequestContextSettings settings ; CefRefPtr < CefRequestContext > context = CefRequestContext :: CreateContext ( settings , new TestRequestContextHandler ( event ) ) ; EXPECT_TRUE ( context . get ( ) ) ; event -> Wait ( ) ; ValidateDefaults ( context , false , event ) ; event -> Wait ( ) ; }
Verify default preference values on a custom context.
Verify default preference values on a custom context .
// Wait for the context to be fully initialized.