#include "base/feature_list.h"
#include "base/functional/bind.h"
#include "base/functional/callback.h"
#include "base/test/bind.h"
#include "base/test/scoped_feature_list.h"
#include "content/public/browser/client_certificate_delegate.h"
#include "content/public/test/browser_test.h"
#include "content/public/test/browser_test_utils.h"
#include "content/public/test/content_browser_test.h"
#include "content/public/test/content_browser_test_utils.h"
#include "content/public/test/test_utils.h"
#include "content/shell/browser/shell.h"
#include "content/shell/browser/shell_content_browser_client.h"
#include "net/base/net_errors.h"
#include "net/ssl/client_cert_identity.h"
#include "net/ssl/ssl_server_config.h"
#include "net/test/embedded_test_server/connection_tracker.h"
#include "net/test/embedded_test_server/embedded_test_server.h"
#include "net/test/embedded_test_server/http_request.h"
#include "net/test/embedded_test_server/http_response.h"
#include "url/gurl.h"
namespace content {
const char kWorkerHttpBasicAuthPath[] = …;
std::unique_ptr<net::test_server::HttpResponse> HandleHttpAuthRequest(
const net::test_server::HttpRequest& request) { … }
class ServiceWorkerTlsTest : public ContentBrowserTest { … };
IN_PROC_BROWSER_TEST_F(ServiceWorkerTlsTest, ClientAuthFetchMainResource) { … }
IN_PROC_BROWSER_TEST_F(ServiceWorkerTlsTest,
ClientAuthFetchMainResourceAfterDestruction) { … }
IN_PROC_BROWSER_TEST_F(ServiceWorkerTlsTest, ClientAuthFetchSubResource) { … }
class ServiceWorkerBasicAuthTest : public ContentBrowserTest { … };
IN_PROC_BROWSER_TEST_F(ServiceWorkerBasicAuthTest,
BasicAuthPromptFetchMainResourceMainFrame) { … }
IN_PROC_BROWSER_TEST_F(ServiceWorkerBasicAuthTest,
BasicAuthPromptFetchMainResourceSubframe) { … }
IN_PROC_BROWSER_TEST_F(ServiceWorkerBasicAuthTest,
BasicAuthPromptFetchSubResource) { … }
}