chromium/ui/base/test/test_dialog_model_host.cc

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

#include "ui/base/test/test_dialog_model_host.h"

#include "ui/base/models/dialog_model.h"

namespace ui {

namespace {

DialogModel::Button* GetButton(DialogModel* dialog_model,
                               TestDialogModelHost::ButtonId button_id,
                               base::PassKey<DialogModelHost> pass_key) {}

}  // namespace

TestDialogModelHost::TestDialogModelHost(
    std::unique_ptr<DialogModel> dialog_model)
    :{}

TestDialogModelHost::~TestDialogModelHost() = default;

// These are static methods rather than a method on the host because this needs
// to result with the destruction of the host.
void TestDialogModelHost::Accept(std::unique_ptr<TestDialogModelHost> host) {}

void TestDialogModelHost::Cancel(std::unique_ptr<TestDialogModelHost> host) {}

void TestDialogModelHost::Close(std::unique_ptr<TestDialogModelHost> host) {}

void TestDialogModelHost::DestroyWithoutAction(
    std::unique_ptr<TestDialogModelHost> host) {}

void TestDialogModelHost::TriggerExtraButton(const ui::Event& event) {}

DialogModelTextfield* TestDialogModelHost::FindSingleTextfield() {}

void TestDialogModelHost::SetSingleTextfieldText(std::u16string text) {}

// Bypasses PassKey() requirement for accessing accelerators().
const base::flat_set<Accelerator>& TestDialogModelHost::GetAccelerators(
    ButtonId button_id) {}

const std::u16string& TestDialogModelHost::GetLabel(ButtonId button_id) {}

ElementIdentifier TestDialogModelHost::GetId(ButtonId button_id) {}

ElementIdentifier TestDialogModelHost::GetInitiallyFocusedField() {}

void TestDialogModelHost::Close() {}

void TestDialogModelHost::OnDialogButtonChanged() {}

}  // namespace ui