chromium/components/autofill/core/browser/test_autofill_manager_waiter.cc

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

#include "components/autofill/core/browser/test_autofill_manager_waiter.h"

#include <vector>

#include "base/check_op.h"
#include "base/logging.h"
#include "base/memory/raw_ptr.h"
#include "base/strings/string_util.h"
#include "base/strings/stringprintf.h"
#include "base/test/scoped_run_loop_timeout.h"

namespace autofill {

TestAutofillManagerWaiter::State::State() = default;
TestAutofillManagerWaiter::State::~State() = default;

TestAutofillManagerWaiter::EventCount* TestAutofillManagerWaiter::State::Get(
    Event event) {}

TestAutofillManagerWaiter::EventCount&
TestAutofillManagerWaiter::State::GetOrCreate(Event event,
                                              const base::Location& location) {}

TestAutofillManagerWaiter::TestAutofillManagerWaiter(
    AutofillManager& manager,
    DenseSet<Event> relevant_events,
    base::Location location)
    :{}

TestAutofillManagerWaiter::~TestAutofillManagerWaiter() = default;

std::string TestAutofillManagerWaiter::DescribeState() const {}

size_t TestAutofillManagerWaiter::num_pending_events() const {}

size_t TestAutofillManagerWaiter::num_completed_relevant_events() const {}

void TestAutofillManagerWaiter::OnAutofillManagerStateChanged(
    AutofillManager& manager,
    AutofillManager::LifecycleState old_state,
    AutofillManager::LifecycleState new_state) {}

void TestAutofillManagerWaiter::OnBeforeLanguageDetermined(
    AutofillManager& manager) {}

void TestAutofillManagerWaiter::OnAfterLanguageDetermined(
    AutofillManager& manager) {}

void TestAutofillManagerWaiter::OnBeforeFormsSeen(
    AutofillManager& manager,
    base::span<const FormGlobalId> updated_forms,
    base::span<const FormGlobalId> removed_forms) {}

void TestAutofillManagerWaiter::OnAfterFormsSeen(
    AutofillManager& manager,
    base::span<const FormGlobalId> updated_forms,
    base::span<const FormGlobalId> removed_forms) {}

void TestAutofillManagerWaiter::OnBeforeCaretMovedInFormField(
    AutofillManager& manager,
    const FormGlobalId& form,
    const FieldGlobalId& field_id,
    const std::u16string& selection,
    const gfx::Rect& caret_bounds) {}

void TestAutofillManagerWaiter::OnAfterCaretMovedInFormField(
    AutofillManager& manager,
    const FormGlobalId& form,
    const FieldGlobalId& field_id,
    const std::u16string& selection,
    const gfx::Rect& caret_bounds) {}

void TestAutofillManagerWaiter::OnBeforeTextFieldDidChange(
    AutofillManager& manager,
    FormGlobalId form,
    FieldGlobalId field) {}

void TestAutofillManagerWaiter::OnAfterTextFieldDidChange(
    AutofillManager& manager,
    FormGlobalId form,
    FieldGlobalId field,
    const std::u16string& text_value) {}

void TestAutofillManagerWaiter::OnBeforeTextFieldDidScroll(
    AutofillManager& manager,
    FormGlobalId form,
    FieldGlobalId field) {}

void TestAutofillManagerWaiter::OnAfterTextFieldDidScroll(
    AutofillManager& manager,
    FormGlobalId form,
    FieldGlobalId field) {}

void TestAutofillManagerWaiter::OnBeforeSelectControlDidChange(
    AutofillManager& manager,
    FormGlobalId form,
    FieldGlobalId field) {}

void TestAutofillManagerWaiter::OnAfterSelectControlDidChange(
    AutofillManager& manager,
    FormGlobalId form,
    FieldGlobalId field) {}

void TestAutofillManagerWaiter::OnBeforeAskForValuesToFill(
    AutofillManager& manager,
    FormGlobalId form,
    FieldGlobalId field,
    const FormData& form_data) {}

void TestAutofillManagerWaiter::OnAfterAskForValuesToFill(
    AutofillManager& manager,
    FormGlobalId form,
    FieldGlobalId field) {}

void TestAutofillManagerWaiter::OnBeforeFocusOnFormField(
    AutofillManager& manager,
    FormGlobalId form,
    FieldGlobalId field) {}

void TestAutofillManagerWaiter::OnAfterFocusOnFormField(
    AutofillManager& manager,
    FormGlobalId form,
    FieldGlobalId field) {}

void TestAutofillManagerWaiter::OnBeforeDidFillAutofillFormData(
    AutofillManager& manager,
    FormGlobalId form) {}

void TestAutofillManagerWaiter::OnAfterDidFillAutofillFormData(
    AutofillManager& manager,
    FormGlobalId form) {}

void TestAutofillManagerWaiter::OnBeforeJavaScriptChangedAutofilledValue(
    AutofillManager& manager,
    FormGlobalId form,
    FieldGlobalId field) {}

void TestAutofillManagerWaiter::OnAfterJavaScriptChangedAutofilledValue(
    AutofillManager& manager,
    FormGlobalId form,
    FieldGlobalId field) {}

void TestAutofillManagerWaiter::OnFormSubmitted(AutofillManager& manager,
                                                const FormData& form) {}

void TestAutofillManagerWaiter::OnBeforeLoadedServerPredictions(
    AutofillManager& manager) {}

void TestAutofillManagerWaiter::OnAfterLoadedServerPredictions(
    AutofillManager& manager) {}

void TestAutofillManagerWaiter::Reset() {}

bool TestAutofillManagerWaiter::IsRelevant(Event event) const {}

void TestAutofillManagerWaiter::OnBefore(Event event,
                                         const base::Location& location) {}

void TestAutofillManagerWaiter::OnAfter(Event event,
                                        const base::Location& location) {}

testing::AssertionResult TestAutofillManagerWaiter::Wait(
    size_t num_expected_relevant_events,
    base::TimeDelta timeout,
    const base::Location& location) {}

const FormStructure* WaitForMatchingForm(
    AutofillManager* manager,
    base::RepeatingCallback<bool(const FormStructure&)> pred,
    base::TimeDelta timeout,
    const base::Location& location) {}

TestAutofillManagerSingleEventWaiter::TestAutofillManagerSingleEventWaiter(
    TestAutofillManagerSingleEventWaiter&&) = default;
TestAutofillManagerSingleEventWaiter&
TestAutofillManagerSingleEventWaiter::operator=(
    TestAutofillManagerSingleEventWaiter&&) = default;
TestAutofillManagerSingleEventWaiter::~TestAutofillManagerSingleEventWaiter() =
    default;

}  // namespace autofill