#include <memory>
#include <ostream>
#include <string>
#include <utility>
#include "base/functional/callback_forward.h"
#include "base/memory/raw_ptr.h"
#include "base/run_loop.h"
#include "base/test/bind.h"
#include "base/test/scoped_feature_list.h"
#include "content/browser/webid/federated_auth_request_impl.h"
#include "content/browser/webid/test/delegated_idp_network_request_manager.h"
#include "content/browser/webid/test/mock_api_permission_delegate.h"
#include "content/browser/webid/test/mock_auto_reauthn_permission_delegate.h"
#include "content/browser/webid/test/mock_identity_registry.h"
#include "content/browser/webid/test/mock_identity_request_dialog_controller.h"
#include "content/browser/webid/test/mock_idp_network_request_manager.h"
#include "content/browser/webid/test/mock_modal_dialog_view_delegate.h"
#include "content/browser/webid/test/mock_permission_delegate.h"
#include "content/public/common/content_features.h"
#include "content/test/test_render_view_host.h"
#include "content/test/test_web_contents.h"
#include "mojo/public/cpp/bindings/remote.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "third_party/blink/public/mojom/webid/federated_auth_request.mojom.h"
#include "ui/base/page_transition_types.h"
#include "url/gurl.h"
#include "url/origin.h"
ApiPermissionStatus;
RegisterIdpStatus;
_;
NiceMock;
Return;
StrictMock;
namespace content {
namespace {
constexpr char kIdpUrl[] = …;
class TestApiPermissionDelegate : public MockApiPermissionDelegate { … };
}
class FederatedAuthRequestImplRegistryTest
: public RenderViewHostImplTestHarness { … };
TEST_F(FederatedAuthRequestImplRegistryTest, RegistersIdPSuccessfully) { … }
TEST_F(FederatedAuthRequestImplRegistryTest,
RegistersIdPDeniedWithoutUserActivation) { … }
TEST_F(FederatedAuthRequestImplRegistryTest, RegistersWithoutFeature) { … }
TEST_F(FederatedAuthRequestImplRegistryTest, RegistersCrossOriginNotAllowed) { … }
TEST_F(FederatedAuthRequestImplRegistryTest, UnregistersWithoutFeature) { … }
TEST_F(FederatedAuthRequestImplRegistryTest, UnregisterAcrossOrigin) { … }
TEST_F(FederatedAuthRequestImplRegistryTest, UnregistersIdP) { … }
}