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

Unified Diff: third_party/libaddressinput/chromium/libaddressinput_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 side-by-side diff with in-line comments
Download patch
Index: third_party/libaddressinput/chromium/libaddressinput_util_unittest.cc
diff --git a/third_party/libaddressinput/chromium/addressinput_util_unittest.cc b/third_party/libaddressinput/chromium/libaddressinput_util_unittest.cc
similarity index 74%
copy from third_party/libaddressinput/chromium/addressinput_util_unittest.cc
copy to third_party/libaddressinput/chromium/libaddressinput_util_unittest.cc
index 846f3d4a33281538e8d8a3c134771e72e29cc718..23b0b938d43dc0108af4ef0b7817ecebd71309de 100644
--- a/third_party/libaddressinput/chromium/addressinput_util_unittest.cc
+++ b/third_party/libaddressinput/chromium/libaddressinput_util_unittest.cc
@@ -2,22 +2,22 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "third_party/libaddressinput/chromium/addressinput_util.h"
+#include "third_party/libaddressinput/chromium/libaddressinput_util.h"
#include "testing/gtest/include/gtest/gtest.h"
-#include "third_party/libaddressinput/chromium/cpp/include/libaddressinput/address_data.h"
+#include "third_party/libaddressinput/src/cpp/include/libaddressinput/address_data.h"
namespace autofill {
namespace addressinput {
using ::i18n::addressinput::AddressData;
-TEST(AddressinputUtilTest, AddressRequiresRegionCode) {
+TEST(RequiredFieldsTest, AddressRequiresRegionCode) {
AddressData address;
EXPECT_FALSE(HasAllRequiredFields(address));
}
-TEST(AddressinputUtilTest, UsRequiresState) {
+TEST(RequiredFieldsTest, UsRequiresState) {
AddressData address;
address.region_code = "US";
address.postal_code = "90291";
@@ -27,7 +27,7 @@ TEST(AddressinputUtilTest, UsRequiresState) {
EXPECT_FALSE(HasAllRequiredFields(address));
}
-TEST(AddressinputUtilTest, CompleteAddressReturnsTrue) {
+TEST(RequiredFieldsTest, CompleteAddressReturnsTrue) {
AddressData address;
address.region_code = "US";
address.postal_code = "90291";

Powered by Google App Engine
This is Rietveld 408576698