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

Side by Side Diff: components/autofill/core/browser/phone_number_i18n_unittest.cc

Issue 1674373003: [libphonenumber] Change DEPS to track new github mirror, uprev library (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: README file Created 4 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 <stddef.h> 5 #include <stddef.h>
6 6
7 #include "base/macros.h" 7 #include "base/macros.h"
8 #include "base/message_loop/message_loop.h" 8 #include "base/message_loop/message_loop.h"
9 #include "base/strings/string16.h" 9 #include "base/strings/string16.h"
10 #include "base/strings/utf_string_conversions.h" 10 #include "base/strings/utf_string_conversions.h"
11 #include "components/autofill/core/browser/phone_number_i18n.h" 11 #include "components/autofill/core/browser/phone_number_i18n.h"
12 #include "testing/gtest/include/gtest/gtest.h" 12 #include "testing/gtest/include/gtest/gtest.h"
13 #include "third_party/libphonenumber/src/phonenumber_api.h" 13 #include "third_party/libphonenumber/phonenumber_api.h"
14 14
15 using base::ASCIIToUTF16; 15 using base::ASCIIToUTF16;
16 using base::UTF8ToUTF16; 16 using base::UTF8ToUTF16;
17 17
18 namespace autofill { 18 namespace autofill {
19 19
20 using i18n::NormalizePhoneNumber; 20 using i18n::NormalizePhoneNumber;
21 using i18n::ParsePhoneNumber; 21 using i18n::ParsePhoneNumber;
22 using i18n::ConstructPhoneNumber; 22 using i18n::ConstructPhoneNumber;
23 using i18n::PhoneNumbersMatch; 23 using i18n::PhoneNumbersMatch;
(...skipping 229 matching lines...) Expand 10 before | Expand all | Expand 10 after
253 "en-US")); 253 "en-US"));
254 254
255 // Different numbers don't match. 255 // Different numbers don't match.
256 EXPECT_FALSE(PhoneNumbersMatch(ASCIIToUTF16("14158889999"), 256 EXPECT_FALSE(PhoneNumbersMatch(ASCIIToUTF16("14158889999"),
257 ASCIIToUTF16("1415888"), 257 ASCIIToUTF16("1415888"),
258 "US", 258 "US",
259 "en-US")); 259 "en-US"));
260 } 260 }
261 261
262 } // namespace autofill 262 } // namespace autofill
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698