#include "components/autofill/core/browser/ui/payments/virtual_card_enroll_ui_model.h"
#include "components/autofill/core/browser/autofill_test_utils.h"
#include "components/autofill/core/browser/payments/test_legal_message_line.h"
#include "components/strings/grit/components_strings.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "ui/base/l10n/l10n_util.h"
namespace autofill {
TEST(VirtualCardEnrollUiModelTest, CreateDefaultProperties) { … }
struct CancelActionTextTestData { … };
class VirtualCardEnrollUiModelCancelActionTextTest
: public testing::TestWithParam<CancelActionTextTestData> { … };
TEST_P(VirtualCardEnrollUiModelCancelActionTextTest, CancelActionText) { … }
INSTANTIATE_TEST_SUITE_P(…);
TEST(VirtualCardEnrollUiModelEnrollmentFieldsTest, CopiesEnrollmentFields) { … }
class MockVirtualCardEnrollUiModelObserver
: public VirtualCardEnrollUiModel::Observer { … };
class VirtualCardEnrollUiModelObserverTest : public ::testing::Test { … };
TEST_F(VirtualCardEnrollUiModelObserverTest,
SetEnrollmentProgressNotifiesWhenChanged) { … }
TEST_F(VirtualCardEnrollUiModelObserverTest,
SetEnrollmentProgressDoesNotNotifyWhenUnchanged) { … }
}