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

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

Issue 6775005: iwyu: Cleanup in the following files: (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Unit test fixes. Created 9 years, 8 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
« no previous file with comments | « chrome/browser/autofill/form_field_unittest.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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/memory/scoped_ptr.h" 5 #include "base/memory/scoped_ptr.h"
6 #include "base/memory/scoped_vector.h" 6 #include "base/memory/scoped_vector.h"
7 #include "base/utf_string_conversions.h" 7 #include "base/utf_string_conversions.h"
8 #include "chrome/browser/autofill/autofill_field.h"
8 #include "chrome/browser/autofill/phone_field.h" 9 #include "chrome/browser/autofill/phone_field.h"
9 #include "testing/gtest/include/gtest/gtest.h" 10 #include "testing/gtest/include/gtest/gtest.h"
10 #include "webkit/glue/form_field.h" 11 #include "webkit/glue/form_field.h"
11 12
12 namespace { 13 namespace {
13 14
14 class PhoneFieldTest : public testing::Test { 15 class PhoneFieldTest : public testing::Test {
15 public: 16 public:
16 PhoneFieldTest() {} 17 PhoneFieldTest() {}
17 18
(...skipping 335 matching lines...) Expand 10 before | Expand all | Expand 10 after
353 EXPECT_EQ(PHONE_FAX_CITY_CODE, field_type_map_[ASCIIToUTF16("areacode1")]); 354 EXPECT_EQ(PHONE_FAX_CITY_CODE, field_type_map_[ASCIIToUTF16("areacode1")]);
354 ASSERT_TRUE( 355 ASSERT_TRUE(
355 field_type_map_.find(ASCIIToUTF16("prefix1")) != field_type_map_.end()); 356 field_type_map_.find(ASCIIToUTF16("prefix1")) != field_type_map_.end());
356 EXPECT_EQ(PHONE_FAX_NUMBER, field_type_map_[ASCIIToUTF16("prefix1")]); 357 EXPECT_EQ(PHONE_FAX_NUMBER, field_type_map_[ASCIIToUTF16("prefix1")]);
357 ASSERT_TRUE( 358 ASSERT_TRUE(
358 field_type_map_.find(ASCIIToUTF16("suffix1")) != field_type_map_.end()); 359 field_type_map_.find(ASCIIToUTF16("suffix1")) != field_type_map_.end());
359 EXPECT_EQ(PHONE_FAX_NUMBER, field_type_map_[ASCIIToUTF16("suffix1")]); 360 EXPECT_EQ(PHONE_FAX_NUMBER, field_type_map_[ASCIIToUTF16("suffix1")]);
360 } 361 }
361 362
362 } // namespace 363 } // namespace
OLDNEW
« no previous file with comments | « chrome/browser/autofill/form_field_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698