| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "modules/payments/PaymentAddress.h" | 5 #include "modules/payments/PaymentAddress.h" |
| 6 | 6 |
| 7 #include <utility> |
| 7 #include "testing/gtest/include/gtest/gtest.h" | 8 #include "testing/gtest/include/gtest/gtest.h" |
| 8 #include <utility> | |
| 9 | 9 |
| 10 namespace blink { | 10 namespace blink { |
| 11 namespace { | 11 namespace { |
| 12 | 12 |
| 13 TEST(PaymentAddressTest, ValuesAreCopiedOver) { | 13 TEST(PaymentAddressTest, ValuesAreCopiedOver) { |
| 14 payments::mojom::blink::PaymentAddressPtr input = | 14 payments::mojom::blink::PaymentAddressPtr input = |
| 15 payments::mojom::blink::PaymentAddress::New(); | 15 payments::mojom::blink::PaymentAddress::New(); |
| 16 input->country = "US"; | 16 input->country = "US"; |
| 17 input->address_line.push_back("340 Main St"); | 17 input->address_line.push_back("340 Main St"); |
| 18 input->address_line.push_back("BIN1"); | 18 input->address_line.push_back("BIN1"); |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 61 payments::mojom::blink::PaymentAddress::New(); | 61 payments::mojom::blink::PaymentAddress::New(); |
| 62 input->language_code = "en"; | 62 input->language_code = "en"; |
| 63 | 63 |
| 64 PaymentAddress output(std::move(input)); | 64 PaymentAddress output(std::move(input)); |
| 65 | 65 |
| 66 EXPECT_EQ("en", output.languageCode()); | 66 EXPECT_EQ("en", output.languageCode()); |
| 67 } | 67 } |
| 68 | 68 |
| 69 } // namespace | 69 } // namespace |
| 70 } // namespace blink | 70 } // namespace blink |
| OLD | NEW |