// 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_details_modifier.h" #include "base/values.h" #include "components/payments/core/payment_method_data.h" #include "testing/gtest/include/gtest/gtest.h" namespace payments { // Tests that serializing a default PaymentDetailsModifier yields the expected // result. TEST(PaymentRequestTest, EmptyPaymentDetailsModifierDictionary) { … } // Tests that serializing a populated PaymentDetailsModifier yields the expected // result. TEST(PaymentRequestTest, PopulatedDetailsModifierDictionary) { … } // Tests that two details modifier objects are not equal if their property // values differ or one is missing a value present in the other, and equal // otherwise. Doesn't test all properties of child objects, relying instead on // their respective tests. TEST(PaymentRequestTest, PaymentDetailsModifierEquality) { … } } // namespace payments