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

Side by Side Diff: chrome/browser/autofill/phone_number_unittest.cc

Issue 3058027: Add #include utf_string_conversions.h to all files that use ASCIIToWide and... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 10 years, 4 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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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/utf_string_conversions.h"
5 #include "chrome/browser/autofill/home_phone_number.h" 6 #include "chrome/browser/autofill/home_phone_number.h"
6 #include "chrome/browser/autofill/phone_number.h" 7 #include "chrome/browser/autofill/phone_number.h"
7 #include "testing/gtest/include/gtest/gtest.h" 8 #include "testing/gtest/include/gtest/gtest.h"
8 9
9 class PhoneNumberTest : public testing::Test { 10 class PhoneNumberTest : public testing::Test {
10 public: 11 public:
11 PhoneNumberTest() {} 12 PhoneNumberTest() {}
12 13
13 void set_whole_number(PhoneNumber* phone_number, 14 void set_whole_number(PhoneNumber* phone_number,
14 const string16& whole_number) { 15 const string16& whole_number) {
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after
137 EXPECT_TRUE(IsCityCode(&phone_number, ASCIIToUTF16(test_number))); 138 EXPECT_TRUE(IsCityCode(&phone_number, ASCIIToUTF16(test_number)));
138 } 139 }
139 if (i > 2) { 140 if (i > 2) {
140 EXPECT_FALSE(IsCountryCode(&phone_number, ASCIIToUTF16(test_number))); 141 EXPECT_FALSE(IsCountryCode(&phone_number, ASCIIToUTF16(test_number)));
141 } else { 142 } else {
142 EXPECT_TRUE(IsCountryCode(&phone_number, ASCIIToUTF16(test_number))); 143 EXPECT_TRUE(IsCountryCode(&phone_number, ASCIIToUTF16(test_number)));
143 } 144 }
144 } 145 }
145 } 146 }
146 147
OLDNEW
« no previous file with comments | « chrome/browser/autofill/phone_field_unittest.cc ('k') | chrome/browser/autofill/select_control_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698