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

Side by Side Diff: third_party/libaddressinput/chromium/addressinput_util_unittest.cc

Issue 386873002: Reland "Use upstream libaddressinput in Chrome." (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix iOS compile. Created 6 years, 5 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 | Annotate | Revision Log
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 "third_party/libaddressinput/chromium/addressinput_util.h" 5 #include "third_party/libaddressinput/chromium/addressinput_util.h"
6 6
7 #include "testing/gtest/include/gtest/gtest.h" 7 #include "testing/gtest/include/gtest/gtest.h"
8 #include "third_party/libaddressinput/chromium/cpp/include/libaddressinput/addre ss_data.h" 8 #include "third_party/libaddressinput/src/cpp/include/libaddressinput/address_da ta.h"
9 9
10 namespace autofill { 10 namespace autofill {
11 namespace addressinput { 11 namespace addressinput {
12 12
13 using ::i18n::addressinput::AddressData; 13 using ::i18n::addressinput::AddressData;
14 14
15 TEST(AddressinputUtilTest, AddressRequiresRegionCode) { 15 TEST(AddressinputUtilTest, AddressRequiresRegionCode) {
16 AddressData address; 16 AddressData address;
17 EXPECT_FALSE(HasAllRequiredFields(address)); 17 EXPECT_FALSE(HasAllRequiredFields(address));
18 } 18 }
(...skipping 13 matching lines...) Expand all
32 address.region_code = "US"; 32 address.region_code = "US";
33 address.postal_code = "90291"; 33 address.postal_code = "90291";
34 address.administrative_area = "CA"; 34 address.administrative_area = "CA";
35 address.locality = "Los Angeles"; 35 address.locality = "Los Angeles";
36 address.address_line.push_back("340 Main St."); 36 address.address_line.push_back("340 Main St.");
37 EXPECT_TRUE(HasAllRequiredFields(address)); 37 EXPECT_TRUE(HasAllRequiredFields(address));
38 } 38 }
39 39
40 } // namespace addressinput 40 } // namespace addressinput
41 } // namespace autofill 41 } // namespace autofill
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698