chromium/chrome/browser/cart/cart_discount_link_fetcher_unittest.cc

// Copyright 2021 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "chrome/browser/cart/cart_discount_link_fetcher.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"

namespace {
cart_db::ChromeCartContentProto BuildProto(
    const std::string& domain,
    const std::string& merchant_url,
    const std::string& merchant_id,
    const double last_used_timestamp,
    const std::string& rule_id,
    const std::string& merchant_rule_id,
    const std::string& raw_merchant_offer_id) {}

cart_db::ChromeCartContentProto BuildProtoWithPercentOff(
    const std::string& domain,
    const std::string& merchant_url,
    const std::string& merchant_id,
    const double last_used_timestamp,
    const std::string& rule_id,
    const std::string& merchant_rule_id,
    const std::string& raw_merchant_offer_id,
    const int percent_off) {}

cart_db::ChromeCartContentProto BuildProtoWithAmountOff(
    const std::string& domain,
    const std::string& merchant_url,
    const std::string& merchant_id,
    const double last_used_timestamp,
    const std::string& rule_id,
    const std::string& merchant_rule_id,
    const std::string& raw_merchant_offer_id,
    const std::string& currency_code,
    const std::string& units,
    const int nanos) {}

const char kMockMerchantA[] =;
const char kMockMerchantACartURL[] =;
const int kMockMerchantALastTimestamp =;
const char kMockMerchantAId[] =;
const char kMockMerchantARuleId[] =;
const char kMockMerchantARawMerchantOfferId[] =;
const int kMockMerchantAPercentOff =;
const char kMockMerchantAMoneyOffCurrency[] =;
const char kMockMerchantAMonneyOffUnits[] =;
const int kMockMerchantAMonneyOffNanos =;
}  // namespace

class CartDiscountLinkFetcherTest {};

TEST(CartDiscountLinkFetcherTest, TestGeneratePostData_PercentOff) {}

TEST(CartDiscountLinkFetcherTest, TestGeneratePostData_AmountOff) {}

TEST(CartDiscountLinkFetcherTest,
     TestGeneratePostData_OptionalRawMerchantOfferId) {}