chromium/components/autofill/core/browser/ui/payments/virtual_card_enroll_ui_model_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 "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 {

// Ensures default properties are set.
TEST(VirtualCardEnrollUiModelTest, CreateDefaultProperties) {}

struct CancelActionTextTestData {};

class VirtualCardEnrollUiModelCancelActionTextTest
    : public testing::TestWithParam<CancelActionTextTestData> {};

// Parametrized test ensures the cancel_action_text is set.
TEST_P(VirtualCardEnrollUiModelCancelActionTextTest, CancelActionText) {}

// Instantiates scenarios to test the cancel_action_text.
INSTANTIATE_TEST_SUITE_P();

// Ensures Create() copies the passed-in enrollment fields to the model.
TEST(VirtualCardEnrollUiModelEnrollmentFieldsTest, CopiesEnrollmentFields) {}

class MockVirtualCardEnrollUiModelObserver
    : public VirtualCardEnrollUiModel::Observer {};

class VirtualCardEnrollUiModelObserverTest : public ::testing::Test {};

// Ensure enrollment progress notifies observers.
TEST_F(VirtualCardEnrollUiModelObserverTest,
       SetEnrollmentProgressNotifiesWhenChanged) {}

// Ensure enrollment progress notifies observers.
TEST_F(VirtualCardEnrollUiModelObserverTest,
       SetEnrollmentProgressDoesNotNotifyWhenUnchanged) {}

}  // namespace autofill