Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(343)

Side by Side Diff: third_party/WebKit/Source/modules/payments/PaymentAddressTest.cpp

Issue 2700123003: DO NOT COMMIT: Results of running old (current) clang-format on Blink (Closed)
Patch Set: Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698