// Copyright 2017 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/payments/core/payment_currency_amount.h" #include "base/values.h" #include "testing/gtest/include/gtest/gtest.h" namespace payments { // Tests the success case when populating a PaymentCurrencyAmount from a // dictionary. TEST(PaymentRequestTest, PaymentCurrencyAmountFromValueDictSuccess) { … } // Tests the failure case when populating a PaymentCurrencyAmount from a // dictionary. TEST(PaymentRequestTest, PaymentCurrencyAmountFromValueDictFailure) { … } // Tests that two currency amount objects are not equal if their property values // differ or one is missing a value present in the other, and equal otherwise. TEST(PaymentRequestTest, PaymentCurrencyAmountEquality) { … } // Tests that serializing a default PaymentCurrencyAmount yields the expected // result. TEST(PaymentRequestTest, EmptyPaymentCurrencyAmountDictionary) { … } // Tests that serializing a populated PaymentCurrencyAmount yields the expected // result. TEST(PaymentRequestTest, PopulatedCurrencyAmountDictionary) { … } } // namespace payments