chromium/chrome/browser/ui/autofill/test_autofill_popup_controller_autofill_client.h

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

#ifndef CHROME_BROWSER_UI_AUTOFILL_TEST_AUTOFILL_POPUP_CONTROLLER_AUTOFILL_CLIENT_H_
#define CHROME_BROWSER_UI_AUTOFILL_TEST_AUTOFILL_POPUP_CONTROLLER_AUTOFILL_CLIENT_H_

#include <concepts>
#include <memory>

#include "chrome/browser/ui/autofill/autofill_popup_controller_impl.h"
#include "chrome/browser/ui/autofill/autofill_popup_controller_impl_test_api.h"
#include "chrome/browser/ui/autofill/autofill_suggestion_controller.h"
#include "chrome/browser/ui/autofill/autofill_suggestion_controller_test_base.h"
#include "chrome/browser/ui/autofill/mock_autofill_popup_view.h"
#include "components/autofill/content/browser/test_content_autofill_client.h"
#include "components/autofill/core/browser/autofill_manager.h"
#include "testing/gmock/include/gmock/gmock.h"

namespace autofill {

// A modified `TestContentAutofillClient` that simulates the production behavior
// of the popup controller and popup view lifetimes on Desktop platforms.
template <typename Controller = AutofillSuggestionControllerForTest>
  requires(std::derived_from<Controller, AutofillPopupControllerImpl>)
class TestAutofillPopupControllerAutofillClient
    : public TestContentAutofillClient {};

}  // namespace autofill

#endif  // CHROME_BROWSER_UI_AUTOFILL_TEST_AUTOFILL_POPUP_CONTROLLER_AUTOFILL_CLIENT_H_