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

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

Issue 17392006: In components/autofill, move browser/ to core/browser/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase to fix conflicts Created 7 years, 6 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) 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 "components/autofill/browser/contact_info.h" 5 #include "components/autofill/core/browser/contact_info.h"
6 6
7 #include "base/basictypes.h" 7 #include "base/basictypes.h"
8 #include "base/strings/string_util.h" 8 #include "base/strings/string_util.h"
9 #include "base/strings/utf_string_conversions.h" 9 #include "base/strings/utf_string_conversions.h"
10 #include "components/autofill/browser/autofill_type.h" 10 #include "components/autofill/core/browser/autofill_type.h"
11 #include "components/autofill/browser/field_types.h" 11 #include "components/autofill/core/browser/field_types.h"
12 #include "testing/gtest/include/gtest/gtest.h" 12 #include "testing/gtest/include/gtest/gtest.h"
13 13
14 namespace autofill { 14 namespace autofill {
15 15
16 TEST(NameInfoTest, SetFullName) { 16 TEST(NameInfoTest, SetFullName) {
17 NameInfo name; 17 NameInfo name;
18 name.SetRawInfo(NAME_FULL, ASCIIToUTF16("Virgil")); 18 name.SetRawInfo(NAME_FULL, ASCIIToUTF16("Virgil"));
19 EXPECT_EQ(name.GetRawInfo(NAME_FIRST), ASCIIToUTF16("Virgil")); 19 EXPECT_EQ(name.GetRawInfo(NAME_FIRST), ASCIIToUTF16("Virgil"));
20 EXPECT_EQ(name.GetRawInfo(NAME_MIDDLE), base::string16()); 20 EXPECT_EQ(name.GetRawInfo(NAME_MIDDLE), base::string16());
21 EXPECT_EQ(name.GetRawInfo(NAME_LAST), base::string16()); 21 EXPECT_EQ(name.GetRawInfo(NAME_LAST), base::string16());
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
96 name.SetRawInfo(NAME_FIRST, ASCIIToUTF16("First")); 96 name.SetRawInfo(NAME_FIRST, ASCIIToUTF16("First"));
97 name.SetRawInfo(NAME_MIDDLE, ASCIIToUTF16("Middle")); 97 name.SetRawInfo(NAME_MIDDLE, ASCIIToUTF16("Middle"));
98 name.SetRawInfo(NAME_LAST, ASCIIToUTF16("Last")); 98 name.SetRawInfo(NAME_LAST, ASCIIToUTF16("Last"));
99 EXPECT_EQ(name.GetRawInfo(NAME_FIRST), ASCIIToUTF16("First")); 99 EXPECT_EQ(name.GetRawInfo(NAME_FIRST), ASCIIToUTF16("First"));
100 EXPECT_EQ(name.GetRawInfo(NAME_MIDDLE), ASCIIToUTF16("Middle")); 100 EXPECT_EQ(name.GetRawInfo(NAME_MIDDLE), ASCIIToUTF16("Middle"));
101 EXPECT_EQ(name.GetRawInfo(NAME_LAST), ASCIIToUTF16("Last")); 101 EXPECT_EQ(name.GetRawInfo(NAME_LAST), ASCIIToUTF16("Last"));
102 EXPECT_EQ(name.GetRawInfo(NAME_FULL), ASCIIToUTF16("First Middle Last")); 102 EXPECT_EQ(name.GetRawInfo(NAME_FULL), ASCIIToUTF16("First Middle Last"));
103 } 103 }
104 104
105 } // namespace autofill 105 } // namespace autofill
OLDNEW
« no previous file with comments | « components/autofill/core/browser/contact_info.cc ('k') | components/autofill/core/browser/credit_card.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698