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

Unified Diff: third_party/libaddressinput/chromium/libaddressinput_util_unittest.cc

Issue 392633002: Remove libaddressinput_util.h (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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
« no previous file with comments | « third_party/libaddressinput/chromium/libaddressinput_util.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/libaddressinput/chromium/libaddressinput_util_unittest.cc
diff --git a/third_party/libaddressinput/chromium/libaddressinput_util_unittest.cc b/third_party/libaddressinput/chromium/libaddressinput_util_unittest.cc
deleted file mode 100644
index 23b0b938d43dc0108af4ef0b7817ecebd71309de..0000000000000000000000000000000000000000
--- a/third_party/libaddressinput/chromium/libaddressinput_util_unittest.cc
+++ /dev/null
@@ -1,41 +0,0 @@
-// Copyright 2014 The Chromium Authors. All rights reserved.
-// 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/libaddressinput_util.h"
-
-#include "testing/gtest/include/gtest/gtest.h"
-#include "third_party/libaddressinput/src/cpp/include/libaddressinput/address_data.h"
-
-namespace autofill {
-namespace addressinput {
-
-using ::i18n::addressinput::AddressData;
-
-TEST(RequiredFieldsTest, AddressRequiresRegionCode) {
- AddressData address;
- EXPECT_FALSE(HasAllRequiredFields(address));
-}
-
-TEST(RequiredFieldsTest, UsRequiresState) {
- AddressData address;
- address.region_code = "US";
- address.postal_code = "90291";
- // Leave state empty.
- address.locality = "Los Angeles";
- address.address_line.push_back("340 Main St.");
- EXPECT_FALSE(HasAllRequiredFields(address));
-}
-
-TEST(RequiredFieldsTest, CompleteAddressReturnsTrue) {
- AddressData address;
- address.region_code = "US";
- address.postal_code = "90291";
- address.administrative_area = "CA";
- address.locality = "Los Angeles";
- address.address_line.push_back("340 Main St.");
- EXPECT_TRUE(HasAllRequiredFields(address));
-}
-
-} // namespace addressinput
-} // namespace autofill
« no previous file with comments | « third_party/libaddressinput/chromium/libaddressinput_util.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698