#include "components/commerce/core/commerce_heuristics_data.h"
#include "base/strings/string_util.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace commerce_heuristics {
namespace {
const char kHintHeuristicsJSONData[] = …;
const char kGlobalHeuristicsJSONData[] = …;
}
class CommerceHeuristicsDataTest : public testing::Test { … };
TEST_F(CommerceHeuristicsDataTest, TestVersion) { … }
TEST_F(CommerceHeuristicsDataTest, TestPopulateHintHeuristics_Success) { … }
TEST_F(CommerceHeuristicsDataTest, TestPopulateHeuristics_Failure) { … }
TEST_F(CommerceHeuristicsDataTest, TestGetMerchantName) { … }
TEST_F(CommerceHeuristicsDataTest, TestGetMerchantCartURL) { … }
TEST_F(CommerceHeuristicsDataTest, TestGetProductSkipPattern) { … }
TEST_F(CommerceHeuristicsDataTest, TestGetRuleDiscountPartnerMerchantPattern) { … }
TEST_F(CommerceHeuristicsDataTest,
TestGetCouponDiscountPartnerMerchantPattern) { … }
TEST_F(CommerceHeuristicsDataTest, TestGetNoDiscountMerchantPattern) { … }
TEST_F(CommerceHeuristicsDataTest, TestGetCartPageURLPattern) { … }
TEST_F(CommerceHeuristicsDataTest, TestGetCheckoutPageURLPattern) { … }
TEST_F(CommerceHeuristicsDataTest, TestGetPurchaseButtonTextPattern) { … }
TEST_F(CommerceHeuristicsDataTest, TestGetAddToCartRequestPattern) { … }
TEST_F(CommerceHeuristicsDataTest, TestGetCartPageURLPatternForDomain) { … }
TEST_F(CommerceHeuristicsDataTest, TestGetCheckoutPageURLPatternForDomain) { … }
TEST_F(CommerceHeuristicsDataTest, TestGetPurchasePageURLPatternForDomain) { … }
TEST_F(CommerceHeuristicsDataTest, TestGetSkipAddToCartPatternForDomain) { … }
TEST_F(CommerceHeuristicsDataTest, TestRepopulateHintData) { … }
TEST_F(CommerceHeuristicsDataTest, TestGetHintHeuristicsJSONForDomain) { … }
TEST_F(CommerceHeuristicsDataTest, TestGetGlobalHeuristicsJSON) { … }
TEST_F(CommerceHeuristicsDataTest, TestGetProductIDExtractionJSON) { … }
TEST_F(CommerceHeuristicsDataTest, TestGetCartProductExtractionScript) { … }
TEST_F(CommerceHeuristicsDataTest, TestGetDiscountFetchDelay) { … }
}