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

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

Issue 12434004: Move remaining Autofill code to //components/autofill. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix long lines Created 7 years, 9 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 "base/message_loop.h" 5 #include "base/message_loop.h"
6 #include "base/string16.h" 6 #include "base/string16.h"
7 #include "base/utf_string_conversions.h" 7 #include "base/utf_string_conversions.h"
8 #include "chrome/browser/autofill/phone_number_i18n.h" 8 #include "components/autofill/browser/phone_number_i18n.h"
9 #include "content/public/test/test_browser_thread.h" 9 #include "content/public/test/test_browser_thread.h"
10 #include "testing/gtest/include/gtest/gtest.h" 10 #include "testing/gtest/include/gtest/gtest.h"
11 #include "third_party/libphonenumber/src/phonenumber_api.h" 11 #include "third_party/libphonenumber/src/phonenumber_api.h"
12 12
13 using autofill_i18n::NormalizePhoneNumber; 13 using autofill_i18n::NormalizePhoneNumber;
14 using autofill_i18n::ParsePhoneNumber; 14 using autofill_i18n::ParsePhoneNumber;
15 using autofill_i18n::ConstructPhoneNumber; 15 using autofill_i18n::ConstructPhoneNumber;
16 using autofill_i18n::PhoneNumbersMatch; 16 using autofill_i18n::PhoneNumbersMatch;
17 using content::BrowserThread; 17 using content::BrowserThread;
18 18
(...skipping 344 matching lines...) Expand 10 before | Expand all | Expand 10 after
363 // Partial matches don't count. 363 // Partial matches don't count.
364 EXPECT_FALSE(PhoneNumbersMatch(ASCIIToUTF16("14158889999"), 364 EXPECT_FALSE(PhoneNumbersMatch(ASCIIToUTF16("14158889999"),
365 ASCIIToUTF16("8889999"), 365 ASCIIToUTF16("8889999"),
366 "US")); 366 "US"));
367 367
368 // Different numbers don't match. 368 // Different numbers don't match.
369 EXPECT_FALSE(PhoneNumbersMatch(ASCIIToUTF16("14158889999"), 369 EXPECT_FALSE(PhoneNumbersMatch(ASCIIToUTF16("14158889999"),
370 ASCIIToUTF16("1415888"), 370 ASCIIToUTF16("1415888"),
371 "US")); 371 "US"));
372 } 372 }
OLDNEW
« no previous file with comments | « components/autofill/browser/phone_number_i18n.cc ('k') | components/autofill/browser/phone_number_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698