chromium/third_party/blink/renderer/modules/credentialmanagement/testing/internals_fed_cm.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 "third_party/blink/renderer/modules/credentialmanagement/testing/internals_fed_cm.h"

#include <optional>
#include <string>

#include "third_party/blink/public/common/thread_safe_browser_interface_broker_proxy.h"
#include "third_party/blink/public/mojom/webid/federated_auth_request_automation.mojom-blink.h"
#include "third_party/blink/public/platform/platform.h"
#include "third_party/blink/renderer/bindings/core/v8/script_promise.h"
#include "third_party/blink/renderer/bindings/core/v8/script_promise_resolver.h"
#include "third_party/blink/renderer/bindings/modules/v8/v8_dialog_button.h"
#include "third_party/blink/renderer/core/frame/local_dom_window.h"
#include "third_party/blink/renderer/platform/bindings/script_state.h"
#include "third_party/blink/renderer/platform/wtf/functional.h"
#include "third_party/blink/renderer/platform/wtf/text/wtf_string.h"

namespace blink {

namespace {

mojo::Remote<test::mojom::blink::FederatedAuthRequestAutomation>
CreateFedAuthRequestAutomation(ScriptState* script_state) {}

}  // namespace

// static
ScriptPromise<IDLString> InternalsFedCm::getFedCmDialogType(
    ScriptState* script_state,
    Internals&) {}

// static
ScriptPromise<IDLString> InternalsFedCm::getFedCmTitle(
    ScriptState* script_state,
    Internals&) {}

// static
ScriptPromise<IDLUndefined> InternalsFedCm::selectFedCmAccount(
    ScriptState* script_state,
    Internals&,
    int account_index,
    ExceptionState& exception_state) {}

// static
ScriptPromise<IDLUndefined> InternalsFedCm::dismissFedCmDialog(
    ScriptState* script_state,
    Internals&) {}

// static
ScriptPromise<IDLUndefined> InternalsFedCm::clickFedCmDialogButton(
    ScriptState* script_state,
    Internals&,
    const V8DialogButton& v8_button) {}

}  // namespace blink