#include "chrome/browser/ui/webid/identity_dialog_controller.h"
#include "base/functional/callback_helpers.h"
#include "base/test/mock_callback.h"
#include "base/test/task_environment.h"
#include "chrome/browser/ui/webid/account_selection_view.h"
#include "chrome/test/base/chrome_render_view_host_test_harness.h"
#include "components/permissions/permission_request_manager.h"
#include "components/permissions/test/mock_permission_prompt_factory.h"
#include "components/permissions/test/mock_permission_request.h"
#include "content/public/browser/identity_request_account.h"
#include "content/public/browser/identity_request_dialog_controller.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 "url/gurl.h"
#include "url/origin.h"
constexpr char kTopFrameEtldPlusOne[] = …;
constexpr char kIdpEtldPlusOne[] = …;
class MockAccountSelectionView : public AccountSelectionView { … };
class IdentityDialogControllerTest : public ChromeRenderViewHostTestHarness { … };
TEST_F(IdentityDialogControllerTest, Accept) { … }
TEST_F(IdentityDialogControllerTest, Deny) { … }
TEST_F(IdentityDialogControllerTest, Dismiss) { … }
TEST_F(IdentityDialogControllerTest, OnAccountSelectedButtonCallsDismiss) { … }
TEST_F(IdentityDialogControllerTest, OnAccountSelectedWidgetResetsDismiss) { … }
TEST_F(IdentityDialogControllerTest, NoTabDoesNotCrash) { … }