#include "chrome/browser/webauthn/authenticator_request_scheduler.h"
#include "base/test/scoped_feature_list.h"
#include "chrome/browser/webauthn/chrome_authenticator_request_delegate.h"
#include "chrome/test/base/chrome_render_view_host_test_harness.h"
#include "content/public/browser/web_contents.h"
#include "content/public/test/prerender_test_util.h"
#include "content/public/test/web_contents_tester.h"
#include "third_party/blink/public/common/features.h"
class AuthenticatorRequestSchedulerTest
: public ChromeRenderViewHostTestHarness { … };
TEST_F(AuthenticatorRequestSchedulerTest,
SingleWebContents_AtMostOneSimultaneousRequest) { … }
TEST_F(AuthenticatorRequestSchedulerTest,
TwoWebContents_TwoSimultaneousRequests) { … }
class AuthenticatorRequestSchedulerFencedFramesTest
: public AuthenticatorRequestSchedulerTest { … };
TEST_F(AuthenticatorRequestSchedulerFencedFramesTest,
SingleWebContents_SimultaneousRequestInFencedFrame) { … }
class AuthenticatorRequestSchedulerPrerenderTest
: public AuthenticatorRequestSchedulerTest { … };
TEST_F(AuthenticatorRequestSchedulerPrerenderTest,
SingleWebContents_OneRequestInPrerendering) { … }