chromium/chrome/browser/ui/autofill/payments/iban_bubble_controller_impl_unittest.cc

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

#include "chrome/browser/ui/autofill/payments/iban_bubble_controller_impl.h"

#include "base/test/metrics/histogram_tester.h"
#include "chrome/browser/ui/autofill/autofill_bubble_base.h"
#include "chrome/test/base/browser_with_test_window_test.h"
#include "components/autofill/core/browser/autofill_test_utils.h"
#include "components/autofill/core/browser/data_model/iban.h"
#include "components/autofill/core/browser/metrics/payments/iban_metrics.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"

namespace autofill {

class TestIbanBubbleControllerImpl : public IbanBubbleControllerImpl {};

class IbanBubbleControllerImplTest : public BrowserWithTestWindowTest {};

TEST_F(IbanBubbleControllerImplTest, LocalIbanSavedSuccessfully) {}

TEST_F(IbanBubbleControllerImplTest, Metrics_LocalIbanOffered) {}

TEST_F(IbanBubbleControllerImplTest, Metrics_LocalIbanResult_Accepted) {}

TEST_F(IbanBubbleControllerImplTest, Metrics_LocalIbanResult_Cancelled) {}

TEST_F(IbanBubbleControllerImplTest, Metrics_LocalIbanResult_NotInteracted) {}

TEST_F(IbanBubbleControllerImplTest, Metrics_LocalIbanResult_LostFocus) {}

TEST_F(IbanBubbleControllerImplTest, Metrics_LocalIbanSaved_WithNickname) {}

TEST_F(IbanBubbleControllerImplTest, Metrics_LocalIbanSaved_NoNickname) {}

// Test that confirmation prompt is auto-closed in 3 sec if the IBAN was
// successfully saved to the server.
TEST_F(IbanBubbleControllerImplTest, OnConfirmationPromptAutoClosed_Success) {}

// Test that fallback as local save confirmation prompt is not auto-closed in 3
// sec if the IBAN was not successfully saved to the server.
TEST_F(IbanBubbleControllerImplTest, OnConfirmationPromptAutoClosed_Fail) {}

}  // namespace autofill