tests/ceftests/message_router_unittest.cc
// Test that pending queries can be canceled by closing the browser.
Test that pending queries can be canceled by closing the browser.
Test that pending queries can be canceled by closing the browser .
TEST(MessageRouterTest, MultiQuerySingleFrameCancelByClosingBrowser) {
  CefRefPtr<MultiQuerySingleFrameTestHandler> handler =
      new MultiQuerySingleFrameTestHandler(
          false, MultiQuerySingleFrameTestHandler::CANCEL_BY_CLOSING_BROWSER);
  MakeTestQueries(handler->GetManager(), false);
  handler->ExecuteTest();
  ReleaseAndWaitForDestructor(handler);
}
TEST ( MessageRouterTest , MultiQuerySingleFrameCancelByClosingBrowser ) { CefRefPtr < MultiQuerySingleFrameTestHandler > handler = new MultiQuerySingleFrameTestHandler ( false , MultiQuerySingleFrameTestHandler :: CANCEL_BY_CLOSING_BROWSER ) ; MakeTestQueries ( handler -> GetManager ( ) , false ) ; handler -> ExecuteTest ( ) ; ReleaseAndWaitForDestructor ( handler ) ; }
Test that pending queries can be canceled by closing the browser.
Test that pending queries can be canceled by closing the browser .