Support configuration of the CefTestServer certificate type (see issue #3348)

This commit is contained in:
Marshall Greenblatt
2022-08-04 12:37:12 -04:00
parent dcd4a0077c
commit 18dac30874
13 changed files with 86 additions and 28 deletions

View File

@ -71,8 +71,10 @@ class CefTestServer : public CefBaseRefCounted {
///
// Create and start a new test server that binds to |port|. If |port| is 0 an
// available port number will be selected. If |https_server| is true the
// server will be HTTPS, otherwise it will be HTTP. Returns the newly created
// server object on success, or nullptr if the server cannot be started.
// server will be HTTPS, otherwise it will be HTTP. When |https_server| is
// true the |https_cert_type| value is used to configure the certificate type.
// Returns the newly created server object on success, or nullptr if the
// server cannot be started.
//
// A new thread will be created for each CreateAndStart call (the "dedicated
// server thread"). It is therefore recommended to use a different
@ -86,6 +88,7 @@ class CefTestServer : public CefBaseRefCounted {
static CefRefPtr<CefTestServer> CreateAndStart(
uint16 port,
bool https_server,
cef_test_cert_type_t https_cert_type,
CefRefPtr<CefTestServerHandler> handler);
///