chromium/components/autofill/core/browser/payments/virtual_card_enroll_metrics_logger_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/payments/virtual_card_enroll_metrics_logger.h"

#include "base/strings/strcat.h"
#include "base/test/bind.h"
#include "base/test/metrics/histogram_tester.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"

namespace autofill {

struct EnrollmentSourceVariation {};

class VirtualCardEnrollMetricsLoggerSourceTest
    : public ::testing::TestWithParam<EnrollmentSourceVariation> {};

static auto kEnrollmentSourceVariations =;

INSTANTIATE_TEST_SUITE_P();

// Expect CardArtImageAvailable to be recorded in OnCardArtAvailable().
TEST_P(VirtualCardEnrollMetricsLoggerSourceTest, LogsOnCardArtAvailable) {}

// Expect Shown to be recorded in OnShown().
TEST_P(VirtualCardEnrollMetricsLoggerSourceTest, LogsOnShown) {}

// Expect Shown to be recorded when `is_reshow` is set in OnShown().
TEST_P(VirtualCardEnrollMetricsLoggerSourceTest, LogsOnShownWhenIsReshow) {}

struct ReshowVariation {};

struct StrikesVariation {};

struct MetricVariation {};

class VirtualCardEnrollMetricsLoggerMetricsVariationsTest
    : public testing::TestWithParam<MetricVariation::TupleT> {};

INSTANTIATE_TEST_SUITE_P();

// Expect that Result is recorded in OnDismissed().
TEST_P(VirtualCardEnrollMetricsLoggerMetricsVariationsTest, LogsOnDismissed) {}

}  // namespace autofill