chromium/components/autofill/core/browser/form_forest_test_api.h

// 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.

#ifndef COMPONENTS_AUTOFILL_CORE_BROWSER_FORM_FOREST_TEST_API_H_
#define COMPONENTS_AUTOFILL_CORE_BROWSER_FORM_FOREST_TEST_API_H_

#include "base/containers/stack.h"
#include "base/memory/raw_ref.h"
#include "components/autofill/core/browser/form_forest.h"

namespace autofill::internal {

// Exposes some testing (and debugging) operations for FormForest.
class FormForestTestApi {};

template <typename UnaryFunction>
void FormForestTestApi::TraverseTrees(base::stack<FrameForm>& frontier,
                                      UnaryFunction fun) {}

inline FormForestTestApi test_api(FormForest& form_forest) {}

}  // namespace autofill::internal

#endif  // COMPONENTS_AUTOFILL_CORE_BROWSER_FORM_FOREST_TEST_API_H_