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

Side by Side Diff: chrome/browser/autofill/phone_field_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/scoped_ptr.h" 5 #include "base/scoped_ptr.h"
6 #include "base/scoped_vector.h" 6 #include "base/scoped_vector.h"
7 #include "base/utf_string_conversions.h"
7 #include "chrome/browser/autofill/phone_field.h" 8 #include "chrome/browser/autofill/phone_field.h"
8 #include "testing/gtest/include/gtest/gtest.h" 9 #include "testing/gtest/include/gtest/gtest.h"
9 #include "webkit/glue/form_field.h" 10 #include "webkit/glue/form_field.h"
10 11
11 namespace { 12 namespace {
12 13
13 class PhoneFieldTest : public testing::Test { 14 class PhoneFieldTest : public testing::Test {
14 public: 15 public:
15 PhoneFieldTest() {} 16 PhoneFieldTest() {}
16 17
(...skipping 224 matching lines...) Expand 10 before | Expand all | Expand 10 after
241 EXPECT_EQ(PHONE_HOME_CITY_CODE, field_type_map_[ASCIIToUTF16("areacode1")]); 242 EXPECT_EQ(PHONE_HOME_CITY_CODE, field_type_map_[ASCIIToUTF16("areacode1")]);
242 ASSERT_TRUE( 243 ASSERT_TRUE(
243 field_type_map_.find(ASCIIToUTF16("prefix1")) != field_type_map_.end()); 244 field_type_map_.find(ASCIIToUTF16("prefix1")) != field_type_map_.end());
244 EXPECT_EQ(PHONE_HOME_NUMBER, field_type_map_[ASCIIToUTF16("prefix1")]); 245 EXPECT_EQ(PHONE_HOME_NUMBER, field_type_map_[ASCIIToUTF16("prefix1")]);
245 ASSERT_TRUE( 246 ASSERT_TRUE(
246 field_type_map_.find(ASCIIToUTF16("suffix1")) != field_type_map_.end()); 247 field_type_map_.find(ASCIIToUTF16("suffix1")) != field_type_map_.end());
247 EXPECT_EQ(PHONE_HOME_NUMBER, field_type_map_[ASCIIToUTF16("suffix1")]); 248 EXPECT_EQ(PHONE_HOME_NUMBER, field_type_map_[ASCIIToUTF16("suffix1")]);
248 } 249 }
249 250
250 } // namespace 251 } // namespace
OLDNEW
« no previous file with comments | « chrome/browser/autofill/phone_field.cc ('k') | chrome/browser/autofill/phone_number_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698