chromium/content/browser/webid/identity_registry_unittest.cc

// Copyright 2023 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "content/browser/webid/identity_registry.h"

#include "content/browser/webid/test/mock_modal_dialog_view_delegate.h"
#include "content/test/test_render_view_host.h"
#include "content/test/test_web_contents.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "url/gurl.h"
#include "url/origin.h"

NiceMock;

namespace content {

namespace {

constexpr char kRpUrl[] =;
constexpr char kIdpUrl[] =;

}  // namespace

class TestFederatedIdentityModalDialogViewDelegate
    : public NiceMock<MockModalDialogViewDelegate> {};

class IdentityRegistryTest : public RenderViewHostImplTestHarness {};

// If notifier origin and registry origin are same-origin, modal dialog should
// be closed.
TEST_F(IdentityRegistryTest, NotifierAndRegistrySameOrigin) {}

// If notifier origin and registry origin are cross-origin, modal dialog should
// remain open.
TEST_F(IdentityRegistryTest, NotifierAndRegistryCrossOrigin) {}

}  // namespace content