#include <memory>
#include <tuple>
#include "base/functional/bind.h"
#include "base/strings/utf_string_conversions.h"
#include "base/test/scoped_feature_list.h"
#include "base/test/task_environment.h"
#include "base/time/time.h"
#include "components/autofill/core/browser/autofill_test_utils.h"
#include "components/autofill/core/browser/payments/autofill_offer_manager.h"
#include "components/autofill/core/browser/test_autofill_client.h"
#include "components/autofill/core/browser/test_personal_data_manager.h"
#include "components/autofill/core/browser/ui/suggestion.h"
#include "components/autofill/core/browser/webdata/autofill_webdata_service.h"
#include "components/autofill/core/common/autofill_clock.h"
#include "components/autofill/core/common/autofill_payments_features.h"
#include "components/strings/grit/components_strings.h"
#include "components/sync/test/test_sync_service.h"
#include "services/network/public/cpp/shared_url_loader_factory.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "ui/base/l10n/l10n_util.h"
#include "url/gurl.h"
ElementsAre;
Pair;
Pointee;
namespace autofill {
namespace {
const char kTestGuid[] = …;
const char kTestGuid2[] = …;
const char kTestNumber[] = …;
const char kTestUrl[] = …;
const char kTestUrlWithParam[] = …;
const char kOfferDetailsUrl[] = …;
}
class AutofillOfferManagerTest : public testing::Test { … };
TEST_F(AutofillOfferManagerTest, GetCardLinkedOffersMap_EligibleCashback) { … }
TEST_F(AutofillOfferManagerTest, GetCardLinkedOffersMap_ExpiredOffer) { … }
TEST_F(AutofillOfferManagerTest, GetCardLinkedOffersMap_WrongUrl) { … }
TEST_F(AutofillOfferManagerTest, GetCardLinkedOffersMap_OnlyCardLinkedOffers) { … }
TEST_F(AutofillOfferManagerTest, IsUrlEligible) { … }
TEST_F(AutofillOfferManagerTest, GetOfferForUrl_ReturnNothingWhenFindNoMatch) { … }
TEST_F(AutofillOfferManagerTest,
GetOfferForUrl_ReturnCorrectOfferWhenFindMatch) { … }
}