#include "base/functional/bind.h"
#include "base/test/metrics/histogram_tester.h"
#include "base/test/mock_callback.h"
#include "chrome/browser/ui/autofill/payments/mandatory_reauth_bubble_controller_impl.h"
#include "chrome/browser/ui/autofill/payments/mandatory_reauth_ui.h"
#include "chrome/browser/ui/browser.h"
#include "chrome/browser/ui/views/autofill/payments/dialog_view_ids.h"
#include "chrome/browser/ui/views/autofill/payments/mandatory_reauth_confirmation_bubble_view.h"
#include "chrome/browser/ui/views/autofill/payments/mandatory_reauth_icon_view.h"
#include "chrome/browser/ui/views/autofill/payments/mandatory_reauth_opt_in_bubble_view.h"
#include "chrome/browser/ui/views/frame/browser_view.h"
#include "chrome/browser/ui/views/frame/toolbar_button_provider.h"
#include "chrome/test/base/in_process_browser_test.h"
#include "components/autofill/core/browser/autofill_test_utils.h"
#include "components/autofill/core/browser/metrics/payments/mandatory_reauth_metrics.h"
#include "content/public/test/browser_test.h"
#include "ui/events/base_event_utils.h"
#include "ui/views/controls/styled_label.h"
#include "ui/views/test/widget_test.h"
namespace autofill {
class MandatoryReauthBubbleViewUiTest : public InProcessBrowserTest { … };
IN_PROC_BROWSER_TEST_F(MandatoryReauthBubbleViewUiTest, ShowBubble) { … }
IN_PROC_BROWSER_TEST_F(MandatoryReauthBubbleViewUiTest,
ClickOptInCancelButton) { … }
IN_PROC_BROWSER_TEST_F(MandatoryReauthBubbleViewUiTest, ClickOptInOkButton) { … }
IN_PROC_BROWSER_TEST_F(MandatoryReauthBubbleViewUiTest, ClickOptInCloseButton) { … }
IN_PROC_BROWSER_TEST_F(MandatoryReauthBubbleViewUiTest, ReshowOptInBubble) { … }
IN_PROC_BROWSER_TEST_F(MandatoryReauthBubbleViewUiTest,
ReshowConfirmationBubble) { … }
IN_PROC_BROWSER_TEST_F(MandatoryReauthBubbleViewUiTest,
ClickConfirmationCloseButton) { … }
IN_PROC_BROWSER_TEST_F(MandatoryReauthBubbleViewUiTest,
ClickConfirmationSettingsLink) { … }
}